[2025-04-22 00:00:04] Production.INFO: next invoice date [2025-04-22 00:00:04] Production.INFO: 2025-05-22 [2025-04-22 00:00:04] Production.INFO: getdaysdiff [2025-04-22 00:00:04] Production.INFO: +30 [2025-04-22 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (253,16,1,30,30,'RMScheduler',2025-04-22 00:00:04,1,0,,,0) [2025-04-22 00:00:04] Production.INFO: next invoice date [2025-04-22 00:00:04] Production.INFO: 2025-05-22 [2025-04-22 00:00:04] Production.INFO: getdaysdiff [2025-04-22 00:00:04] Production.INFO: +30 [2025-04-22 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (253,13,2,30,30,'RMScheduler',2025-04-22 00:00:04,1,0,,,0) [2025-04-22 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:00:06 [end_date_ymd] => 2025-04-22 00:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:00:06' and `end` < '2025-04-22 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-04-22 00:00:19] Production.INFO: count ==881 [2025-04-22 00:00:19] Production.ERROR: pbx CDR StartTime 2025-04-21 21:00:06 - End Time 2025-04-22 00:00:06 [2025-04-22 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961124', 'tblTempUsageDetail_20' ) start [2025-04-22 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961124', 'tblTempUsageDetail_20' ) end [2025-04-22 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961124', 'tblTempVendorCDR_20' ) start [2025-04-22 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961124', 'tblTempVendorCDR_20' ) end [2025-04-22 00:00:19] Production.INFO: ProcessCDR(1,14961124,1,1,2) [2025-04-22 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961124', 'tblTempUsageDetail_20' ) start [2025-04-22 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961124', 'tblTempUsageDetail_20' ) end [2025-04-22 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:00:23] Production.INFO: ==32077== Releasing lock... [2025-04-22 00:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:00:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-22 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:01:05 [end_date_ymd] => 2025-04-22 00:01:05 [RateCDR] => 1 ) [2025-04-22 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:01:05' and `end` < '2025-04-22 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:01:18] Production.INFO: count ==421 [2025-04-22 00:01:19] Production.ERROR: pbx CDR StartTime 2025-04-21 21:01:05 - End Time 2025-04-22 00:01:05 [2025-04-22 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961129', 'tblTempUsageDetail_20' ) start [2025-04-22 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961129', 'tblTempUsageDetail_20' ) end [2025-04-22 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961129', 'tblTempVendorCDR_20' ) start [2025-04-22 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961129', 'tblTempVendorCDR_20' ) end [2025-04-22 00:01:19] Production.INFO: ProcessCDR(1,14961129,1,1,2) [2025-04-22 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961129', 'tblTempUsageDetail_20' ) start [2025-04-22 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961129', 'tblTempUsageDetail_20' ) end [2025-04-22 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:01:25] Production.INFO: ==32165== Releasing lock... [2025-04-22 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:01:25] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:02:05 [end_date_ymd] => 2025-04-22 00:02:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:02:05' and `end` < '2025-04-22 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-04-22 00:02:18] Production.INFO: count ==416 [2025-04-22 00:02:19] Production.ERROR: pbx CDR StartTime 2025-04-21 21:02:05 - End Time 2025-04-22 00:02:05 [2025-04-22 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961134', 'tblTempUsageDetail_20' ) start [2025-04-22 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961134', 'tblTempUsageDetail_20' ) end [2025-04-22 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961134', 'tblTempVendorCDR_20' ) start [2025-04-22 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961134', 'tblTempVendorCDR_20' ) end [2025-04-22 00:02:19] Production.INFO: ProcessCDR(1,14961134,1,1,2) [2025-04-22 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961134', 'tblTempUsageDetail_20' ) start [2025-04-22 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961134', 'tblTempUsageDetail_20' ) end [2025-04-22 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:02:22] Production.INFO: ==32241== Releasing lock... [2025-04-22 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:02:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:03:05 [end_date_ymd] => 2025-04-22 00:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:03:05' and `end` < '2025-04-22 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-04-22 00:03:18] Production.INFO: count ==416 [2025-04-22 00:03:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:03:05 - End Time 2025-04-22 00:03:05 [2025-04-22 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961139', 'tblTempUsageDetail_20' ) start [2025-04-22 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961139', 'tblTempUsageDetail_20' ) end [2025-04-22 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961139', 'tblTempVendorCDR_20' ) start [2025-04-22 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961139', 'tblTempVendorCDR_20' ) end [2025-04-22 00:03:18] Production.INFO: ProcessCDR(1,14961139,1,1,2) [2025-04-22 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961139', 'tblTempUsageDetail_20' ) start [2025-04-22 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961139', 'tblTempUsageDetail_20' ) end [2025-04-22 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:03:21] Production.INFO: ==32354== Releasing lock... [2025-04-22 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:03:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:04:05 [end_date_ymd] => 2025-04-22 00:04:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:04:05' and `end` < '2025-04-22 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-04-22 00:04:18] Production.INFO: count ==417 [2025-04-22 00:04:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:04:05 - End Time 2025-04-22 00:04:05 [2025-04-22 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961144', 'tblTempUsageDetail_20' ) start [2025-04-22 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961144', 'tblTempUsageDetail_20' ) end [2025-04-22 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961144', 'tblTempVendorCDR_20' ) start [2025-04-22 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961144', 'tblTempVendorCDR_20' ) end [2025-04-22 00:04:18] Production.INFO: ProcessCDR(1,14961144,1,1,2) [2025-04-22 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961144', 'tblTempUsageDetail_20' ) start [2025-04-22 00:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961144', 'tblTempUsageDetail_20' ) end [2025-04-22 00:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:04:23] Production.INFO: ==32428== Releasing lock... [2025-04-22 00:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:04:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:05:05 [end_date_ymd] => 2025-04-22 00:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:05:05' and `end` < '2025-04-22 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-04-22 00:05:33] Production.INFO: count ==415 [2025-04-22 00:05:33] Production.ERROR: pbx CDR StartTime 2025-04-21 21:05:05 - End Time 2025-04-22 00:05:05 [2025-04-22 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961149', 'tblTempUsageDetail_20' ) start [2025-04-22 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961149', 'tblTempUsageDetail_20' ) end [2025-04-22 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961149', 'tblTempVendorCDR_20' ) start [2025-04-22 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961149', 'tblTempVendorCDR_20' ) end [2025-04-22 00:05:33] Production.INFO: ProcessCDR(1,14961149,1,1,2) [2025-04-22 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961149', 'tblTempUsageDetail_20' ) start [2025-04-22 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961149', 'tblTempUsageDetail_20' ) end [2025-04-22 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:05:37] Production.INFO: ==32499== Releasing lock... [2025-04-22 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:05:37] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:06:05 [end_date_ymd] => 2025-04-22 00:06:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:06:05' and `end` < '2025-04-22 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-04-22 00:06:26] Production.INFO: count ==415 [2025-04-22 00:06:26] Production.ERROR: pbx CDR StartTime 2025-04-21 21:06:05 - End Time 2025-04-22 00:06:05 [2025-04-22 00:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961154', 'tblTempUsageDetail_20' ) start [2025-04-22 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961154', 'tblTempUsageDetail_20' ) end [2025-04-22 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961154', 'tblTempVendorCDR_20' ) start [2025-04-22 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961154', 'tblTempVendorCDR_20' ) end [2025-04-22 00:06:26] Production.INFO: ProcessCDR(1,14961154,1,1,2) [2025-04-22 00:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961154', 'tblTempUsageDetail_20' ) start [2025-04-22 00:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961154', 'tblTempUsageDetail_20' ) end [2025-04-22 00:06:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:06:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:06:29] Production.INFO: ==32569== Releasing lock... [2025-04-22 00:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:06:29] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:07:05 [end_date_ymd] => 2025-04-22 00:07:05 [RateCDR] => 1 ) [2025-04-22 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:07:05' and `end` < '2025-04-22 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:07:22] Production.INFO: count ==413 [2025-04-22 00:07:22] Production.ERROR: pbx CDR StartTime 2025-04-21 21:07:05 - End Time 2025-04-22 00:07:05 [2025-04-22 00:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961159', 'tblTempUsageDetail_20' ) start [2025-04-22 00:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961159', 'tblTempUsageDetail_20' ) end [2025-04-22 00:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961159', 'tblTempVendorCDR_20' ) start [2025-04-22 00:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961159', 'tblTempVendorCDR_20' ) end [2025-04-22 00:07:22] Production.INFO: ProcessCDR(1,14961159,1,1,2) [2025-04-22 00:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961159', 'tblTempUsageDetail_20' ) start [2025-04-22 00:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961159', 'tblTempUsageDetail_20' ) end [2025-04-22 00:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:07:26] Production.INFO: ==32647== Releasing lock... [2025-04-22 00:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:07:26] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:08:05 [end_date_ymd] => 2025-04-22 00:08:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:08:05' and `end` < '2025-04-22 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-04-22 00:08:19] Production.INFO: count ==406 [2025-04-22 00:08:19] Production.ERROR: pbx CDR StartTime 2025-04-21 21:08:05 - End Time 2025-04-22 00:08:05 [2025-04-22 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961164', 'tblTempUsageDetail_20' ) start [2025-04-22 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961164', 'tblTempUsageDetail_20' ) end [2025-04-22 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961164', 'tblTempVendorCDR_20' ) start [2025-04-22 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961164', 'tblTempVendorCDR_20' ) end [2025-04-22 00:08:19] Production.INFO: ProcessCDR(1,14961164,1,1,2) [2025-04-22 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961164', 'tblTempUsageDetail_20' ) start [2025-04-22 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961164', 'tblTempUsageDetail_20' ) end [2025-04-22 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:08:22] Production.INFO: ==32724== Releasing lock... [2025-04-22 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:08:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:09:05 [end_date_ymd] => 2025-04-22 00:09:05 [RateCDR] => 1 ) [2025-04-22 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:09:05' and `end` < '2025-04-22 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:09:18] Production.INFO: count ==404 [2025-04-22 00:09:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:09:05 - End Time 2025-04-22 00:09:05 [2025-04-22 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961169', 'tblTempUsageDetail_20' ) start [2025-04-22 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961169', 'tblTempUsageDetail_20' ) end [2025-04-22 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961169', 'tblTempVendorCDR_20' ) start [2025-04-22 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961169', 'tblTempVendorCDR_20' ) end [2025-04-22 00:09:18] Production.INFO: ProcessCDR(1,14961169,1,1,2) [2025-04-22 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961169', 'tblTempUsageDetail_20' ) start [2025-04-22 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961169', 'tblTempUsageDetail_20' ) end [2025-04-22 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:09:21] Production.INFO: ==335== Releasing lock... [2025-04-22 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:09:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:10:06 [end_date_ymd] => 2025-04-22 00:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:10:06' and `end` < '2025-04-22 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-04-22 00:10:19] Production.INFO: count ==412 [2025-04-22 00:10:19] Production.ERROR: pbx CDR StartTime 2025-04-21 21:10:06 - End Time 2025-04-22 00:10:06 [2025-04-22 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961175', 'tblTempUsageDetail_20' ) start [2025-04-22 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961175', 'tblTempUsageDetail_20' ) end [2025-04-22 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961175', 'tblTempVendorCDR_20' ) start [2025-04-22 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961175', 'tblTempVendorCDR_20' ) end [2025-04-22 00:10:19] Production.INFO: ProcessCDR(1,14961175,1,1,2) [2025-04-22 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961175', 'tblTempUsageDetail_20' ) start [2025-04-22 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961175', 'tblTempUsageDetail_20' ) end [2025-04-22 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:10:23] Production.INFO: ==422== Releasing lock... [2025-04-22 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:10:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:11:05 [end_date_ymd] => 2025-04-22 00:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:11:05' and `end` < '2025-04-22 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-04-22 00:11:18] Production.INFO: count ==427 [2025-04-22 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:11:05 - End Time 2025-04-22 00:11:05 [2025-04-22 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961180', 'tblTempUsageDetail_20' ) start [2025-04-22 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961180', 'tblTempUsageDetail_20' ) end [2025-04-22 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961180', 'tblTempVendorCDR_20' ) start [2025-04-22 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961180', 'tblTempVendorCDR_20' ) end [2025-04-22 00:11:19] Production.INFO: ProcessCDR(1,14961180,1,1,2) [2025-04-22 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961180', 'tblTempUsageDetail_20' ) start [2025-04-22 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961180', 'tblTempUsageDetail_20' ) end [2025-04-22 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:11:22] Production.INFO: ==500== Releasing lock... [2025-04-22 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:11:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:12:05 [end_date_ymd] => 2025-04-22 00:12:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:12:05' and `end` < '2025-04-22 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-04-22 00:12:18] Production.INFO: count ==419 [2025-04-22 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:12:05 - End Time 2025-04-22 00:12:05 [2025-04-22 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961185', 'tblTempUsageDetail_20' ) start [2025-04-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961185', 'tblTempUsageDetail_20' ) end [2025-04-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961185', 'tblTempVendorCDR_20' ) start [2025-04-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961185', 'tblTempVendorCDR_20' ) end [2025-04-22 00:12:18] Production.INFO: ProcessCDR(1,14961185,1,1,2) [2025-04-22 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961185', 'tblTempUsageDetail_20' ) start [2025-04-22 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961185', 'tblTempUsageDetail_20' ) end [2025-04-22 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:12:21] Production.INFO: ==575== Releasing lock... [2025-04-22 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:12:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:13:05 [end_date_ymd] => 2025-04-22 00:13:05 [RateCDR] => 1 ) [2025-04-22 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:13:05' and `end` < '2025-04-22 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:13:17] Production.INFO: count ==415 [2025-04-22 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:13:05 - End Time 2025-04-22 00:13:05 [2025-04-22 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961190', 'tblTempUsageDetail_20' ) start [2025-04-22 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961190', 'tblTempUsageDetail_20' ) end [2025-04-22 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961190', 'tblTempVendorCDR_20' ) start [2025-04-22 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961190', 'tblTempVendorCDR_20' ) end [2025-04-22 00:13:18] Production.INFO: ProcessCDR(1,14961190,1,1,2) [2025-04-22 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961190', 'tblTempUsageDetail_20' ) start [2025-04-22 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961190', 'tblTempUsageDetail_20' ) end [2025-04-22 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:13:21] Production.INFO: ==677== Releasing lock... [2025-04-22 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:13:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:14:05 [end_date_ymd] => 2025-04-22 00:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:14:05' and `end` < '2025-04-22 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-04-22 00:14:18] Production.INFO: count ==418 [2025-04-22 00:14:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:14:05 - End Time 2025-04-22 00:14:05 [2025-04-22 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961195', 'tblTempUsageDetail_20' ) start [2025-04-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961195', 'tblTempUsageDetail_20' ) end [2025-04-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961195', 'tblTempVendorCDR_20' ) start [2025-04-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961195', 'tblTempVendorCDR_20' ) end [2025-04-22 00:14:18] Production.INFO: ProcessCDR(1,14961195,1,1,2) [2025-04-22 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961195', 'tblTempUsageDetail_20' ) start [2025-04-22 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961195', 'tblTempUsageDetail_20' ) end [2025-04-22 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:14:22] Production.INFO: ==765== Releasing lock... [2025-04-22 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:14:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:15:05 [end_date_ymd] => 2025-04-22 00:15:05 [RateCDR] => 1 ) [2025-04-22 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:15:05' and `end` < '2025-04-22 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:15:18] Production.INFO: count ==413 [2025-04-22 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:15:05 - End Time 2025-04-22 00:15:05 [2025-04-22 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961200', 'tblTempUsageDetail_20' ) start [2025-04-22 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961200', 'tblTempUsageDetail_20' ) end [2025-04-22 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961200', 'tblTempVendorCDR_20' ) start [2025-04-22 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961200', 'tblTempVendorCDR_20' ) end [2025-04-22 00:15:18] Production.INFO: ProcessCDR(1,14961200,1,1,2) [2025-04-22 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961200', 'tblTempUsageDetail_20' ) start [2025-04-22 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961200', 'tblTempUsageDetail_20' ) end [2025-04-22 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:15:21] Production.INFO: ==835== Releasing lock... [2025-04-22 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:15:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:16:05 [end_date_ymd] => 2025-04-22 00:16:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:16:05' and `end` < '2025-04-22 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-04-22 00:16:18] Production.INFO: count ==417 [2025-04-22 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:16:05 - End Time 2025-04-22 00:16:05 [2025-04-22 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961205', 'tblTempUsageDetail_20' ) start [2025-04-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961205', 'tblTempUsageDetail_20' ) end [2025-04-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961205', 'tblTempVendorCDR_20' ) start [2025-04-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961205', 'tblTempVendorCDR_20' ) end [2025-04-22 00:16:18] Production.INFO: ProcessCDR(1,14961205,1,1,2) [2025-04-22 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961205', 'tblTempUsageDetail_20' ) start [2025-04-22 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961205', 'tblTempUsageDetail_20' ) end [2025-04-22 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:16:22] Production.INFO: ==910== Releasing lock... [2025-04-22 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:16:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:17:05 [end_date_ymd] => 2025-04-22 00:17:05 [RateCDR] => 1 ) [2025-04-22 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:17:05' and `end` < '2025-04-22 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:17:18] Production.INFO: count ==418 [2025-04-22 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:17:05 - End Time 2025-04-22 00:17:05 [2025-04-22 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961210', 'tblTempUsageDetail_20' ) start [2025-04-22 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961210', 'tblTempUsageDetail_20' ) end [2025-04-22 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961210', 'tblTempVendorCDR_20' ) start [2025-04-22 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961210', 'tblTempVendorCDR_20' ) end [2025-04-22 00:17:18] Production.INFO: ProcessCDR(1,14961210,1,1,2) [2025-04-22 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961210', 'tblTempUsageDetail_20' ) start [2025-04-22 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961210', 'tblTempUsageDetail_20' ) end [2025-04-22 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:17:21] Production.INFO: ==980== Releasing lock... [2025-04-22 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:17:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:18:05 [end_date_ymd] => 2025-04-22 00:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:18:05' and `end` < '2025-04-22 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-04-22 00:18:18] Production.INFO: count ==410 [2025-04-22 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:18:05 - End Time 2025-04-22 00:18:05 [2025-04-22 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961215', 'tblTempUsageDetail_20' ) start [2025-04-22 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961215', 'tblTempUsageDetail_20' ) end [2025-04-22 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961215', 'tblTempVendorCDR_20' ) start [2025-04-22 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961215', 'tblTempVendorCDR_20' ) end [2025-04-22 00:18:18] Production.INFO: ProcessCDR(1,14961215,1,1,2) [2025-04-22 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961215', 'tblTempUsageDetail_20' ) start [2025-04-22 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961215', 'tblTempUsageDetail_20' ) end [2025-04-22 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:18:22] Production.INFO: ==1092== Releasing lock... [2025-04-22 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:19:05 [end_date_ymd] => 2025-04-22 00:19:05 [RateCDR] => 1 ) [2025-04-22 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:19:05' and `end` < '2025-04-22 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:19:17] Production.INFO: count ==408 [2025-04-22 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:19:05 - End Time 2025-04-22 00:19:05 [2025-04-22 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961220', 'tblTempUsageDetail_20' ) start [2025-04-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961220', 'tblTempUsageDetail_20' ) end [2025-04-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961220', 'tblTempVendorCDR_20' ) start [2025-04-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961220', 'tblTempVendorCDR_20' ) end [2025-04-22 00:19:18] Production.INFO: ProcessCDR(1,14961220,1,1,2) [2025-04-22 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961220', 'tblTempUsageDetail_20' ) start [2025-04-22 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961220', 'tblTempUsageDetail_20' ) end [2025-04-22 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:19:21] Production.INFO: ==1170== Releasing lock... [2025-04-22 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:20:06 [end_date_ymd] => 2025-04-22 00:20:06 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:20:06' and `end` < '2025-04-22 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-04-22 00:20:19] Production.INFO: count ==418 [2025-04-22 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-21 21:20:06 - End Time 2025-04-22 00:20:06 [2025-04-22 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961225', 'tblTempUsageDetail_20' ) start [2025-04-22 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961225', 'tblTempUsageDetail_20' ) end [2025-04-22 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961225', 'tblTempVendorCDR_20' ) start [2025-04-22 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961225', 'tblTempVendorCDR_20' ) end [2025-04-22 00:20:19] Production.INFO: ProcessCDR(1,14961225,1,1,2) [2025-04-22 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961225', 'tblTempUsageDetail_20' ) start [2025-04-22 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961225', 'tblTempUsageDetail_20' ) end [2025-04-22 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:20:23] Production.INFO: ==1264== Releasing lock... [2025-04-22 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:20:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:21:05 [end_date_ymd] => 2025-04-22 00:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:21:05' and `end` < '2025-04-22 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-04-22 00:21:17] Production.INFO: count ==428 [2025-04-22 00:21:17] Production.ERROR: pbx CDR StartTime 2025-04-21 21:21:05 - End Time 2025-04-22 00:21:05 [2025-04-22 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961231', 'tblTempUsageDetail_20' ) start [2025-04-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961231', 'tblTempUsageDetail_20' ) end [2025-04-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961231', 'tblTempVendorCDR_20' ) start [2025-04-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961231', 'tblTempVendorCDR_20' ) end [2025-04-22 00:21:18] Production.INFO: ProcessCDR(1,14961231,1,1,2) [2025-04-22 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961231', 'tblTempUsageDetail_20' ) start [2025-04-22 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961231', 'tblTempUsageDetail_20' ) end [2025-04-22 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:21:22] Production.INFO: ==1349== Releasing lock... [2025-04-22 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:21:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-22 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:22:05 [end_date_ymd] => 2025-04-22 00:22:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:22:05' and `end` < '2025-04-22 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-04-22 00:22:18] Production.INFO: count ==425 [2025-04-22 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:22:05 - End Time 2025-04-22 00:22:05 [2025-04-22 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961236', 'tblTempUsageDetail_20' ) start [2025-04-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961236', 'tblTempUsageDetail_20' ) end [2025-04-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961236', 'tblTempVendorCDR_20' ) start [2025-04-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961236', 'tblTempVendorCDR_20' ) end [2025-04-22 00:22:18] Production.INFO: ProcessCDR(1,14961236,1,1,2) [2025-04-22 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961236', 'tblTempUsageDetail_20' ) start [2025-04-22 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961236', 'tblTempUsageDetail_20' ) end [2025-04-22 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:22:23] Production.INFO: ==1424== Releasing lock... [2025-04-22 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:23:05 [end_date_ymd] => 2025-04-22 00:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:23:05' and `end` < '2025-04-22 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-04-22 00:23:17] Production.INFO: count ==424 [2025-04-22 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:23:05 - End Time 2025-04-22 00:23:05 [2025-04-22 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961241', 'tblTempUsageDetail_20' ) start [2025-04-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961241', 'tblTempUsageDetail_20' ) end [2025-04-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961241', 'tblTempVendorCDR_20' ) start [2025-04-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961241', 'tblTempVendorCDR_20' ) end [2025-04-22 00:23:18] Production.INFO: ProcessCDR(1,14961241,1,1,2) [2025-04-22 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961241', 'tblTempUsageDetail_20' ) start [2025-04-22 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961241', 'tblTempUsageDetail_20' ) end [2025-04-22 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:23:21] Production.INFO: ==1499== Releasing lock... [2025-04-22 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:24:05 [end_date_ymd] => 2025-04-22 00:24:05 [RateCDR] => 1 ) [2025-04-22 00: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-04-21 21:24:05' and `end` < '2025-04-22 00: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-04-22 00:24:18] Production.INFO: count ==426 [2025-04-22 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:24:05 - End Time 2025-04-22 00:24:05 [2025-04-22 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961246', 'tblTempUsageDetail_20' ) start [2025-04-22 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961246', 'tblTempUsageDetail_20' ) end [2025-04-22 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961246', 'tblTempVendorCDR_20' ) start [2025-04-22 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961246', 'tblTempVendorCDR_20' ) end [2025-04-22 00:24:18] Production.INFO: ProcessCDR(1,14961246,1,1,2) [2025-04-22 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961246', 'tblTempUsageDetail_20' ) start [2025-04-22 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961246', 'tblTempUsageDetail_20' ) end [2025-04-22 00:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:24:23] Production.INFO: ==1610== Releasing lock... [2025-04-22 00:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:24:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:25:05 [end_date_ymd] => 2025-04-22 00:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:25:05' and `end` < '2025-04-22 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-04-22 00:25:18] Production.INFO: count ==420 [2025-04-22 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:25:05 - End Time 2025-04-22 00:25:05 [2025-04-22 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961251', 'tblTempUsageDetail_20' ) start [2025-04-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961251', 'tblTempUsageDetail_20' ) end [2025-04-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961251', 'tblTempVendorCDR_20' ) start [2025-04-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961251', 'tblTempVendorCDR_20' ) end [2025-04-22 00:25:18] Production.INFO: ProcessCDR(1,14961251,1,1,2) [2025-04-22 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961251', 'tblTempUsageDetail_20' ) start [2025-04-22 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961251', 'tblTempUsageDetail_20' ) end [2025-04-22 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:25:21] Production.INFO: ==1686== Releasing lock... [2025-04-22 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:26:05 [end_date_ymd] => 2025-04-22 00:26:05 [RateCDR] => 1 ) [2025-04-22 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:26:05' and `end` < '2025-04-22 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:26:18] Production.INFO: count ==417 [2025-04-22 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:26:05 - End Time 2025-04-22 00:26:05 [2025-04-22 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961256', 'tblTempUsageDetail_20' ) start [2025-04-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961256', 'tblTempUsageDetail_20' ) end [2025-04-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961256', 'tblTempVendorCDR_20' ) start [2025-04-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961256', 'tblTempVendorCDR_20' ) end [2025-04-22 00:26:18] Production.INFO: ProcessCDR(1,14961256,1,1,2) [2025-04-22 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961256', 'tblTempUsageDetail_20' ) start [2025-04-22 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961256', 'tblTempUsageDetail_20' ) end [2025-04-22 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:26:21] Production.INFO: ==1757== Releasing lock... [2025-04-22 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:26:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:27:06 [end_date_ymd] => 2025-04-22 00:27:06 [RateCDR] => 1 ) [2025-04-22 00: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-04-21 21:27:06' and `end` < '2025-04-22 00: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-04-22 00:27:18] Production.INFO: count ==418 [2025-04-22 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:27:06 - End Time 2025-04-22 00:27:06 [2025-04-22 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961261', 'tblTempUsageDetail_20' ) start [2025-04-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961261', 'tblTempUsageDetail_20' ) end [2025-04-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961261', 'tblTempVendorCDR_20' ) start [2025-04-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961261', 'tblTempVendorCDR_20' ) end [2025-04-22 00:27:18] Production.INFO: ProcessCDR(1,14961261,1,1,2) [2025-04-22 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961261', 'tblTempUsageDetail_20' ) start [2025-04-22 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961261', 'tblTempUsageDetail_20' ) end [2025-04-22 00:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:27:23] Production.INFO: ==1838== Releasing lock... [2025-04-22 00:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:27:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:28:05 [end_date_ymd] => 2025-04-22 00:28:05 [RateCDR] => 1 ) [2025-04-22 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:28:05' and `end` < '2025-04-22 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:28:18] Production.INFO: count ==420 [2025-04-22 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:28:05 - End Time 2025-04-22 00:28:05 [2025-04-22 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961266', 'tblTempUsageDetail_20' ) start [2025-04-22 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961266', 'tblTempUsageDetail_20' ) end [2025-04-22 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961266', 'tblTempVendorCDR_20' ) start [2025-04-22 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961266', 'tblTempVendorCDR_20' ) end [2025-04-22 00:28:18] Production.INFO: ProcessCDR(1,14961266,1,1,2) [2025-04-22 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961266', 'tblTempUsageDetail_20' ) start [2025-04-22 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961266', 'tblTempUsageDetail_20' ) end [2025-04-22 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:28:22] Production.INFO: ==1911== Releasing lock... [2025-04-22 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:28:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:29:05 [end_date_ymd] => 2025-04-22 00:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:29:05' and `end` < '2025-04-22 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-04-22 00:29:18] Production.INFO: count ==421 [2025-04-22 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:29:05 - End Time 2025-04-22 00:29:05 [2025-04-22 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961271', 'tblTempUsageDetail_20' ) start [2025-04-22 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961271', 'tblTempUsageDetail_20' ) end [2025-04-22 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961271', 'tblTempVendorCDR_20' ) start [2025-04-22 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961271', 'tblTempVendorCDR_20' ) end [2025-04-22 00:29:18] Production.INFO: ProcessCDR(1,14961271,1,1,2) [2025-04-22 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961271', 'tblTempUsageDetail_20' ) start [2025-04-22 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961271', 'tblTempUsageDetail_20' ) end [2025-04-22 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:29:22] Production.INFO: ==1984== Releasing lock... [2025-04-22 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:30:06 [end_date_ymd] => 2025-04-22 00:30:06 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:30:06' and `end` < '2025-04-22 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-04-22 00:30:18] Production.INFO: count ==430 [2025-04-22 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-21 21:30:06 - End Time 2025-04-22 00:30:06 [2025-04-22 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961277', 'tblTempUsageDetail_20' ) start [2025-04-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961277', 'tblTempUsageDetail_20' ) end [2025-04-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961277', 'tblTempVendorCDR_20' ) start [2025-04-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961277', 'tblTempVendorCDR_20' ) end [2025-04-22 00:30:19] Production.INFO: ProcessCDR(1,14961277,1,1,2) [2025-04-22 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961277', 'tblTempUsageDetail_20' ) start [2025-04-22 00:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961277', 'tblTempUsageDetail_20' ) end [2025-04-22 00:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:30:24] Production.INFO: ==2063== Releasing lock... [2025-04-22 00:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:30:24] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:31:05 [end_date_ymd] => 2025-04-22 00:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:31:05' and `end` < '2025-04-22 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-04-22 00:31:18] Production.INFO: count ==425 [2025-04-22 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:31:05 - End Time 2025-04-22 00:31:05 [2025-04-22 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961282', 'tblTempUsageDetail_20' ) start [2025-04-22 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961282', 'tblTempUsageDetail_20' ) end [2025-04-22 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961282', 'tblTempVendorCDR_20' ) start [2025-04-22 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961282', 'tblTempVendorCDR_20' ) end [2025-04-22 00:31:18] Production.INFO: ProcessCDR(1,14961282,1,1,2) [2025-04-22 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961282', 'tblTempUsageDetail_20' ) start [2025-04-22 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961282', 'tblTempUsageDetail_20' ) end [2025-04-22 00:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:31:23] Production.INFO: ==2146== Releasing lock... [2025-04-22 00:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:31:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:32:05 [end_date_ymd] => 2025-04-22 00:32:05 [RateCDR] => 1 ) [2025-04-22 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:32:05' and `end` < '2025-04-22 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:32:17] Production.INFO: count ==425 [2025-04-22 00:32:17] Production.ERROR: pbx CDR StartTime 2025-04-21 21:32:05 - End Time 2025-04-22 00:32:05 [2025-04-22 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961287', 'tblTempUsageDetail_20' ) start [2025-04-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961287', 'tblTempUsageDetail_20' ) end [2025-04-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961287', 'tblTempVendorCDR_20' ) start [2025-04-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961287', 'tblTempVendorCDR_20' ) end [2025-04-22 00:32:17] Production.INFO: ProcessCDR(1,14961287,1,1,2) [2025-04-22 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961287', 'tblTempUsageDetail_20' ) start [2025-04-22 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961287', 'tblTempUsageDetail_20' ) end [2025-04-22 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:32:21] Production.INFO: ==2223== Releasing lock... [2025-04-22 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:32:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:33:05 [end_date_ymd] => 2025-04-22 00:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:33:05' and `end` < '2025-04-22 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-04-22 00:33:18] Production.INFO: count ==423 [2025-04-22 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:33:05 - End Time 2025-04-22 00:33:05 [2025-04-22 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961292', 'tblTempUsageDetail_20' ) start [2025-04-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961292', 'tblTempUsageDetail_20' ) end [2025-04-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961292', 'tblTempVendorCDR_20' ) start [2025-04-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961292', 'tblTempVendorCDR_20' ) end [2025-04-22 00:33:18] Production.INFO: ProcessCDR(1,14961292,1,1,2) [2025-04-22 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961292', 'tblTempUsageDetail_20' ) start [2025-04-22 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961292', 'tblTempUsageDetail_20' ) end [2025-04-22 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:33:22] Production.INFO: ==2294== Releasing lock... [2025-04-22 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:33:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:34:04 [end_date_ymd] => 2025-04-22 00:34:04 [RateCDR] => 1 ) [2025-04-22 00:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:34:04' and `end` < '2025-04-22 00:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:34:17] Production.INFO: count ==413 [2025-04-22 00:34:17] Production.ERROR: pbx CDR StartTime 2025-04-21 21:34:04 - End Time 2025-04-22 00:34:04 [2025-04-22 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961297', 'tblTempUsageDetail_20' ) start [2025-04-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961297', 'tblTempUsageDetail_20' ) end [2025-04-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961297', 'tblTempVendorCDR_20' ) start [2025-04-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961297', 'tblTempVendorCDR_20' ) end [2025-04-22 00:34:17] Production.INFO: ProcessCDR(1,14961297,1,1,2) [2025-04-22 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961297', 'tblTempUsageDetail_20' ) start [2025-04-22 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961297', 'tblTempUsageDetail_20' ) end [2025-04-22 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:34:21] Production.INFO: ==2408== Releasing lock... [2025-04-22 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:35:05 [end_date_ymd] => 2025-04-22 00:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:35:05' and `end` < '2025-04-22 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-04-22 00:35:18] Production.INFO: count ==412 [2025-04-22 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:35:05 - End Time 2025-04-22 00:35:05 [2025-04-22 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961302', 'tblTempUsageDetail_20' ) start [2025-04-22 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961302', 'tblTempUsageDetail_20' ) end [2025-04-22 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961302', 'tblTempVendorCDR_20' ) start [2025-04-22 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961302', 'tblTempVendorCDR_20' ) end [2025-04-22 00:35:18] Production.INFO: ProcessCDR(1,14961302,1,1,2) [2025-04-22 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961302', 'tblTempUsageDetail_20' ) start [2025-04-22 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961302', 'tblTempUsageDetail_20' ) end [2025-04-22 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:35:21] Production.INFO: ==2478== Releasing lock... [2025-04-22 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:36:05 [end_date_ymd] => 2025-04-22 00:36:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:36:05' and `end` < '2025-04-22 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-04-22 00:36:17] Production.INFO: count ==410 [2025-04-22 00:36:17] Production.ERROR: pbx CDR StartTime 2025-04-21 21:36:05 - End Time 2025-04-22 00:36:05 [2025-04-22 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961307', 'tblTempUsageDetail_20' ) start [2025-04-22 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961307', 'tblTempUsageDetail_20' ) end [2025-04-22 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961307', 'tblTempVendorCDR_20' ) start [2025-04-22 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961307', 'tblTempVendorCDR_20' ) end [2025-04-22 00:36:17] Production.INFO: ProcessCDR(1,14961307,1,1,2) [2025-04-22 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961307', 'tblTempUsageDetail_20' ) start [2025-04-22 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961307', 'tblTempUsageDetail_20' ) end [2025-04-22 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:36:21] Production.INFO: ==2560== Releasing lock... [2025-04-22 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:36:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:37:05 [end_date_ymd] => 2025-04-22 00:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:37:05' and `end` < '2025-04-22 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-04-22 00:37:18] Production.INFO: count ==409 [2025-04-22 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:37:05 - End Time 2025-04-22 00:37:05 [2025-04-22 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961312', 'tblTempUsageDetail_20' ) start [2025-04-22 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961312', 'tblTempUsageDetail_20' ) end [2025-04-22 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961312', 'tblTempVendorCDR_20' ) start [2025-04-22 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961312', 'tblTempVendorCDR_20' ) end [2025-04-22 00:37:18] Production.INFO: ProcessCDR(1,14961312,1,1,2) [2025-04-22 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961312', 'tblTempUsageDetail_20' ) start [2025-04-22 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961312', 'tblTempUsageDetail_20' ) end [2025-04-22 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:37:22] Production.INFO: ==2643== Releasing lock... [2025-04-22 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:37:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:38:05 [end_date_ymd] => 2025-04-22 00:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:38:05' and `end` < '2025-04-22 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-04-22 00:38:18] Production.INFO: count ==408 [2025-04-22 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:38:05 - End Time 2025-04-22 00:38:05 [2025-04-22 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961317', 'tblTempUsageDetail_20' ) start [2025-04-22 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961317', 'tblTempUsageDetail_20' ) end [2025-04-22 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961317', 'tblTempVendorCDR_20' ) start [2025-04-22 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961317', 'tblTempVendorCDR_20' ) end [2025-04-22 00:38:18] Production.INFO: ProcessCDR(1,14961317,1,1,2) [2025-04-22 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961317', 'tblTempUsageDetail_20' ) start [2025-04-22 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961317', 'tblTempUsageDetail_20' ) end [2025-04-22 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:38:22] Production.INFO: ==2728== Releasing lock... [2025-04-22 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:38:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:39:05 [end_date_ymd] => 2025-04-22 00:39:05 [RateCDR] => 1 ) [2025-04-22 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:39:05' and `end` < '2025-04-22 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:39:18] Production.INFO: count ==407 [2025-04-22 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:39:05 - End Time 2025-04-22 00:39:05 [2025-04-22 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961322', 'tblTempUsageDetail_20' ) start [2025-04-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961322', 'tblTempUsageDetail_20' ) end [2025-04-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961322', 'tblTempVendorCDR_20' ) start [2025-04-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961322', 'tblTempVendorCDR_20' ) end [2025-04-22 00:39:18] Production.INFO: ProcessCDR(1,14961322,1,1,2) [2025-04-22 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961322', 'tblTempUsageDetail_20' ) start [2025-04-22 00:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961322', 'tblTempUsageDetail_20' ) end [2025-04-22 00:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:39:23] Production.INFO: ==2809== Releasing lock... [2025-04-22 00:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:39:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:40:07 [end_date_ymd] => 2025-04-22 00:40:07 [RateCDR] => 1 ) [2025-04-22 00: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-04-21 21:40:07' and `end` < '2025-04-22 00: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-04-22 00:40:20] Production.INFO: count ==415 [2025-04-22 00:40:20] Production.ERROR: pbx CDR StartTime 2025-04-21 21:40:07 - End Time 2025-04-22 00:40:07 [2025-04-22 00:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961328', 'tblTempUsageDetail_20' ) start [2025-04-22 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961328', 'tblTempUsageDetail_20' ) end [2025-04-22 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961328', 'tblTempVendorCDR_20' ) start [2025-04-22 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961328', 'tblTempVendorCDR_20' ) end [2025-04-22 00:40:20] Production.INFO: ProcessCDR(1,14961328,1,1,2) [2025-04-22 00:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961328', 'tblTempUsageDetail_20' ) start [2025-04-22 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961328', 'tblTempUsageDetail_20' ) end [2025-04-22 00:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:40:25] Production.INFO: ==2894== Releasing lock... [2025-04-22 00:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:40:25] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:41:05 [end_date_ymd] => 2025-04-22 00:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:41:05' and `end` < '2025-04-22 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-04-22 00:41:18] Production.INFO: count ==421 [2025-04-22 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:41:05 - End Time 2025-04-22 00:41:05 [2025-04-22 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961333', 'tblTempUsageDetail_20' ) start [2025-04-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961333', 'tblTempUsageDetail_20' ) end [2025-04-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961333', 'tblTempVendorCDR_20' ) start [2025-04-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961333', 'tblTempVendorCDR_20' ) end [2025-04-22 00:41:18] Production.INFO: ProcessCDR(1,14961333,1,1,2) [2025-04-22 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961333', 'tblTempUsageDetail_20' ) start [2025-04-22 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961333', 'tblTempUsageDetail_20' ) end [2025-04-22 00:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:41:23] Production.INFO: ==2989== Releasing lock... [2025-04-22 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:41:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:42:05 [end_date_ymd] => 2025-04-22 00:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:42:05' and `end` < '2025-04-22 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-04-22 00:42:18] Production.INFO: count ==422 [2025-04-22 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:42:05 - End Time 2025-04-22 00:42:05 [2025-04-22 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961338', 'tblTempUsageDetail_20' ) start [2025-04-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961338', 'tblTempUsageDetail_20' ) end [2025-04-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961338', 'tblTempVendorCDR_20' ) start [2025-04-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961338', 'tblTempVendorCDR_20' ) end [2025-04-22 00:42:18] Production.INFO: ProcessCDR(1,14961338,1,1,2) [2025-04-22 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961338', 'tblTempUsageDetail_20' ) start [2025-04-22 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961338', 'tblTempUsageDetail_20' ) end [2025-04-22 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:42:22] Production.INFO: ==3083== Releasing lock... [2025-04-22 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:43:05 [end_date_ymd] => 2025-04-22 00:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:43:05' and `end` < '2025-04-22 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-04-22 00:43:17] Production.INFO: count ==419 [2025-04-22 00:43:17] Production.ERROR: pbx CDR StartTime 2025-04-21 21:43:05 - End Time 2025-04-22 00:43:05 [2025-04-22 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961343', 'tblTempUsageDetail_20' ) start [2025-04-22 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961343', 'tblTempUsageDetail_20' ) end [2025-04-22 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961343', 'tblTempVendorCDR_20' ) start [2025-04-22 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961343', 'tblTempVendorCDR_20' ) end [2025-04-22 00:43:17] Production.INFO: ProcessCDR(1,14961343,1,1,2) [2025-04-22 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961343', 'tblTempUsageDetail_20' ) start [2025-04-22 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961343', 'tblTempUsageDetail_20' ) end [2025-04-22 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:43:21] Production.INFO: ==3163== Releasing lock... [2025-04-22 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:43:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:44:06 [end_date_ymd] => 2025-04-22 00:44:06 [RateCDR] => 1 ) [2025-04-22 00:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:44:06' and `end` < '2025-04-22 00: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-04-22 00:44:18] Production.INFO: count ==419 [2025-04-22 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:44:06 - End Time 2025-04-22 00:44:06 [2025-04-22 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961348', 'tblTempUsageDetail_20' ) start [2025-04-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961348', 'tblTempUsageDetail_20' ) end [2025-04-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961348', 'tblTempVendorCDR_20' ) start [2025-04-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961348', 'tblTempVendorCDR_20' ) end [2025-04-22 00:44:18] Production.INFO: ProcessCDR(1,14961348,1,1,2) [2025-04-22 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961348', 'tblTempUsageDetail_20' ) start [2025-04-22 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961348', 'tblTempUsageDetail_20' ) end [2025-04-22 00:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:44:23] Production.INFO: ==3253== Releasing lock... [2025-04-22 00:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:44:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:45:05 [end_date_ymd] => 2025-04-22 00:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:45:05' and `end` < '2025-04-22 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-04-22 00:45:18] Production.INFO: count ==416 [2025-04-22 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:45:05 - End Time 2025-04-22 00:45:05 [2025-04-22 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961353', 'tblTempUsageDetail_20' ) start [2025-04-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961353', 'tblTempUsageDetail_20' ) end [2025-04-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961353', 'tblTempVendorCDR_20' ) start [2025-04-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961353', 'tblTempVendorCDR_20' ) end [2025-04-22 00:45:18] Production.INFO: ProcessCDR(1,14961353,1,1,2) [2025-04-22 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961353', 'tblTempUsageDetail_20' ) start [2025-04-22 00:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961353', 'tblTempUsageDetail_20' ) end [2025-04-22 00:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:45:23] Production.INFO: ==3334== Releasing lock... [2025-04-22 00:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:45:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:46:05 [end_date_ymd] => 2025-04-22 00:46:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:46:05' and `end` < '2025-04-22 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-04-22 00:46:18] Production.INFO: count ==415 [2025-04-22 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:46:05 - End Time 2025-04-22 00:46:05 [2025-04-22 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961358', 'tblTempUsageDetail_20' ) start [2025-04-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961358', 'tblTempUsageDetail_20' ) end [2025-04-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961358', 'tblTempVendorCDR_20' ) start [2025-04-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961358', 'tblTempVendorCDR_20' ) end [2025-04-22 00:46:18] Production.INFO: ProcessCDR(1,14961358,1,1,2) [2025-04-22 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961358', 'tblTempUsageDetail_20' ) start [2025-04-22 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961358', 'tblTempUsageDetail_20' ) end [2025-04-22 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:46:22] Production.INFO: ==3416== Releasing lock... [2025-04-22 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:46:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:47:05 [end_date_ymd] => 2025-04-22 00:47:05 [RateCDR] => 1 ) [2025-04-22 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:47:05' and `end` < '2025-04-22 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:47:17] Production.INFO: count ==418 [2025-04-22 00:47:17] Production.ERROR: pbx CDR StartTime 2025-04-21 21:47:05 - End Time 2025-04-22 00:47:05 [2025-04-22 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961363', 'tblTempUsageDetail_20' ) start [2025-04-22 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961363', 'tblTempUsageDetail_20' ) end [2025-04-22 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961363', 'tblTempVendorCDR_20' ) start [2025-04-22 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961363', 'tblTempVendorCDR_20' ) end [2025-04-22 00:47:17] Production.INFO: ProcessCDR(1,14961363,1,1,2) [2025-04-22 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961363', 'tblTempUsageDetail_20' ) start [2025-04-22 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961363', 'tblTempUsageDetail_20' ) end [2025-04-22 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:47:21] Production.INFO: ==3503== Releasing lock... [2025-04-22 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:47:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:48:05 [end_date_ymd] => 2025-04-22 00:48:05 [RateCDR] => 1 ) [2025-04-22 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:48:05' and `end` < '2025-04-22 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:48:18] Production.INFO: count ==417 [2025-04-22 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:48:05 - End Time 2025-04-22 00:48:05 [2025-04-22 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961368', 'tblTempUsageDetail_20' ) start [2025-04-22 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961368', 'tblTempUsageDetail_20' ) end [2025-04-22 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961368', 'tblTempVendorCDR_20' ) start [2025-04-22 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961368', 'tblTempVendorCDR_20' ) end [2025-04-22 00:48:18] Production.INFO: ProcessCDR(1,14961368,1,1,2) [2025-04-22 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961368', 'tblTempUsageDetail_20' ) start [2025-04-22 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961368', 'tblTempUsageDetail_20' ) end [2025-04-22 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:48:21] Production.INFO: ==3579== Releasing lock... [2025-04-22 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:48:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:49:05 [end_date_ymd] => 2025-04-22 00:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:49:05' and `end` < '2025-04-22 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-04-22 00:49:18] Production.INFO: count ==418 [2025-04-22 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:49:05 - End Time 2025-04-22 00:49:05 [2025-04-22 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961373', 'tblTempUsageDetail_20' ) start [2025-04-22 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961373', 'tblTempUsageDetail_20' ) end [2025-04-22 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961373', 'tblTempVendorCDR_20' ) start [2025-04-22 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961373', 'tblTempVendorCDR_20' ) end [2025-04-22 00:49:18] Production.INFO: ProcessCDR(1,14961373,1,1,2) [2025-04-22 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961373', 'tblTempUsageDetail_20' ) start [2025-04-22 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961373', 'tblTempUsageDetail_20' ) end [2025-04-22 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:49:22] Production.INFO: ==3690== Releasing lock... [2025-04-22 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:49:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:50:06 [end_date_ymd] => 2025-04-22 00:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:50:06' and `end` < '2025-04-22 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-04-22 00:50:18] Production.INFO: count ==424 [2025-04-22 00:50:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:50:06 - End Time 2025-04-22 00:50:06 [2025-04-22 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961379', 'tblTempUsageDetail_20' ) start [2025-04-22 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961379', 'tblTempUsageDetail_20' ) end [2025-04-22 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961379', 'tblTempVendorCDR_20' ) start [2025-04-22 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961379', 'tblTempVendorCDR_20' ) end [2025-04-22 00:50:18] Production.INFO: ProcessCDR(1,14961379,1,1,2) [2025-04-22 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961379', 'tblTempUsageDetail_20' ) start [2025-04-22 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961379', 'tblTempUsageDetail_20' ) end [2025-04-22 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:50:22] Production.INFO: ==3764== Releasing lock... [2025-04-22 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:50:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:51:06 [end_date_ymd] => 2025-04-22 00:51:06 [RateCDR] => 1 ) [2025-04-22 00: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-04-21 21:51:06' and `end` < '2025-04-22 00: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-04-22 00:51:18] Production.INFO: count ==429 [2025-04-22 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:51:06 - End Time 2025-04-22 00:51:06 [2025-04-22 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961384', 'tblTempUsageDetail_20' ) start [2025-04-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961384', 'tblTempUsageDetail_20' ) end [2025-04-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961384', 'tblTempVendorCDR_20' ) start [2025-04-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961384', 'tblTempVendorCDR_20' ) end [2025-04-22 00:51:18] Production.INFO: ProcessCDR(1,14961384,1,1,2) [2025-04-22 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961384', 'tblTempUsageDetail_20' ) start [2025-04-22 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961384', 'tblTempUsageDetail_20' ) end [2025-04-22 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:51:22] Production.INFO: ==3843== Releasing lock... [2025-04-22 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:51:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:52:05 [end_date_ymd] => 2025-04-22 00:52:05 [RateCDR] => 1 ) [2025-04-22 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:52:05' and `end` < '2025-04-22 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:52:18] Production.INFO: count ==430 [2025-04-22 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:52:05 - End Time 2025-04-22 00:52:05 [2025-04-22 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961389', 'tblTempUsageDetail_20' ) start [2025-04-22 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961389', 'tblTempUsageDetail_20' ) end [2025-04-22 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961389', 'tblTempVendorCDR_20' ) start [2025-04-22 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961389', 'tblTempVendorCDR_20' ) end [2025-04-22 00:52:18] Production.INFO: ProcessCDR(1,14961389,1,1,2) [2025-04-22 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961389', 'tblTempUsageDetail_20' ) start [2025-04-22 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961389', 'tblTempUsageDetail_20' ) end [2025-04-22 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:52:21] Production.INFO: ==3917== Releasing lock... [2025-04-22 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:52:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:53:05 [end_date_ymd] => 2025-04-22 00:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:53:05' and `end` < '2025-04-22 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-04-22 00:53:18] Production.INFO: count ==425 [2025-04-22 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:53:05 - End Time 2025-04-22 00:53:05 [2025-04-22 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961394', 'tblTempUsageDetail_20' ) start [2025-04-22 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961394', 'tblTempUsageDetail_20' ) end [2025-04-22 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961394', 'tblTempVendorCDR_20' ) start [2025-04-22 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961394', 'tblTempVendorCDR_20' ) end [2025-04-22 00:53:18] Production.INFO: ProcessCDR(1,14961394,1,1,2) [2025-04-22 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961394', 'tblTempUsageDetail_20' ) start [2025-04-22 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961394', 'tblTempUsageDetail_20' ) end [2025-04-22 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:53:21] Production.INFO: ==3995== Releasing lock... [2025-04-22 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:54:05 [end_date_ymd] => 2025-04-22 00:54:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:54:05' and `end` < '2025-04-22 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-04-22 00:54:18] Production.INFO: count ==412 [2025-04-22 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:54:05 - End Time 2025-04-22 00:54:05 [2025-04-22 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961399', 'tblTempUsageDetail_20' ) start [2025-04-22 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961399', 'tblTempUsageDetail_20' ) end [2025-04-22 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961399', 'tblTempVendorCDR_20' ) start [2025-04-22 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961399', 'tblTempVendorCDR_20' ) end [2025-04-22 00:54:18] Production.INFO: ProcessCDR(1,14961399,1,1,2) [2025-04-22 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961399', 'tblTempUsageDetail_20' ) start [2025-04-22 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961399', 'tblTempUsageDetail_20' ) end [2025-04-22 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:54:21] Production.INFO: ==4077== Releasing lock... [2025-04-22 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:54:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:55:06 [end_date_ymd] => 2025-04-22 00:55:06 [RateCDR] => 1 ) [2025-04-22 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:55:06' and `end` < '2025-04-22 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:55:18] Production.INFO: count ==408 [2025-04-22 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:55:06 - End Time 2025-04-22 00:55:06 [2025-04-22 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961404', 'tblTempUsageDetail_20' ) start [2025-04-22 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961404', 'tblTempUsageDetail_20' ) end [2025-04-22 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961404', 'tblTempVendorCDR_20' ) start [2025-04-22 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961404', 'tblTempVendorCDR_20' ) end [2025-04-22 00:55:18] Production.INFO: ProcessCDR(1,14961404,1,1,2) [2025-04-22 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961404', 'tblTempUsageDetail_20' ) start [2025-04-22 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961404', 'tblTempUsageDetail_20' ) end [2025-04-22 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:55:22] Production.INFO: ==4149== Releasing lock... [2025-04-22 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:55:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:56:05 [end_date_ymd] => 2025-04-22 00:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:56:05' and `end` < '2025-04-22 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-04-22 00:56:17] Production.INFO: count ==407 [2025-04-22 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:56:05 - End Time 2025-04-22 00:56:05 [2025-04-22 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961409', 'tblTempUsageDetail_20' ) start [2025-04-22 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961409', 'tblTempUsageDetail_20' ) end [2025-04-22 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961409', 'tblTempVendorCDR_20' ) start [2025-04-22 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961409', 'tblTempVendorCDR_20' ) end [2025-04-22 00:56:18] Production.INFO: ProcessCDR(1,14961409,1,1,2) [2025-04-22 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961409', 'tblTempUsageDetail_20' ) start [2025-04-22 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961409', 'tblTempUsageDetail_20' ) end [2025-04-22 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:56:21] Production.INFO: ==4218== Releasing lock... [2025-04-22 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:56:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:57:05 [end_date_ymd] => 2025-04-22 00:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:57:05' and `end` < '2025-04-22 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-04-22 00:57:18] Production.INFO: count ==404 [2025-04-22 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:57:05 - End Time 2025-04-22 00:57:05 [2025-04-22 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961414', 'tblTempUsageDetail_20' ) start [2025-04-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961414', 'tblTempUsageDetail_20' ) end [2025-04-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961414', 'tblTempVendorCDR_20' ) start [2025-04-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961414', 'tblTempVendorCDR_20' ) end [2025-04-22 00:57:18] Production.INFO: ProcessCDR(1,14961414,1,1,2) [2025-04-22 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961414', 'tblTempUsageDetail_20' ) start [2025-04-22 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961414', 'tblTempUsageDetail_20' ) end [2025-04-22 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:57:21] Production.INFO: ==4297== Releasing lock... [2025-04-22 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:58:05 [end_date_ymd] => 2025-04-22 00:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 21:58:05' and `end` < '2025-04-22 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-04-22 00:58:18] Production.INFO: count ==404 [2025-04-22 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:58:05 - End Time 2025-04-22 00:58:05 [2025-04-22 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961419', 'tblTempUsageDetail_20' ) start [2025-04-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961419', 'tblTempUsageDetail_20' ) end [2025-04-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961419', 'tblTempVendorCDR_20' ) start [2025-04-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961419', 'tblTempVendorCDR_20' ) end [2025-04-22 00:58:18] Production.INFO: ProcessCDR(1,14961419,1,1,2) [2025-04-22 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961419', 'tblTempUsageDetail_20' ) start [2025-04-22 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961419', 'tblTempUsageDetail_20' ) end [2025-04-22 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:58:23] Production.INFO: ==4375== Releasing lock... [2025-04-22 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:58:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 21:59:05 [end_date_ymd] => 2025-04-22 00:59:05 [RateCDR] => 1 ) [2025-04-22 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 21:59:05' and `end` < '2025-04-22 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 00:59:18] Production.INFO: count ==406 [2025-04-22 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-21 21:59:05 - End Time 2025-04-22 00:59:05 [2025-04-22 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961424', 'tblTempUsageDetail_20' ) start [2025-04-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961424', 'tblTempUsageDetail_20' ) end [2025-04-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961424', 'tblTempVendorCDR_20' ) start [2025-04-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961424', 'tblTempVendorCDR_20' ) end [2025-04-22 00:59:18] Production.INFO: ProcessCDR(1,14961424,1,1,2) [2025-04-22 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 00:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961424', 'tblTempUsageDetail_20' ) start [2025-04-22 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961424', 'tblTempUsageDetail_20' ) end [2025-04-22 00:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 00:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 00:59:23] Production.INFO: ==4456== Releasing lock... [2025-04-22 00:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 00:59:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:00:06 [end_date_ymd] => 2025-04-22 01:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:00:06' and `end` < '2025-04-22 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-04-22 01:00:19] Production.INFO: count ==418 [2025-04-22 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-21 22:00:06 - End Time 2025-04-22 01:00:06 [2025-04-22 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961430', 'tblTempUsageDetail_20' ) start [2025-04-22 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961430', 'tblTempUsageDetail_20' ) end [2025-04-22 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961430', 'tblTempVendorCDR_20' ) start [2025-04-22 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961430', 'tblTempVendorCDR_20' ) end [2025-04-22 01:00:19] Production.INFO: ProcessCDR(1,14961430,1,1,2) [2025-04-22 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961430', 'tblTempUsageDetail_20' ) start [2025-04-22 01:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961430', 'tblTempUsageDetail_20' ) end [2025-04-22 01:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:00:24] Production.INFO: ==4536== Releasing lock... [2025-04-22 01:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:00:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:01:05 [end_date_ymd] => 2025-04-22 01:01:05 [RateCDR] => 1 ) [2025-04-22 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:01:05' and `end` < '2025-04-22 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:01:18] Production.INFO: count ==418 [2025-04-22 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:01:05 - End Time 2025-04-22 01:01:05 [2025-04-22 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961435', 'tblTempUsageDetail_20' ) start [2025-04-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961435', 'tblTempUsageDetail_20' ) end [2025-04-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961435', 'tblTempVendorCDR_20' ) start [2025-04-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961435', 'tblTempVendorCDR_20' ) end [2025-04-22 01:01:18] Production.INFO: ProcessCDR(1,14961435,1,1,2) [2025-04-22 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961435', 'tblTempUsageDetail_20' ) start [2025-04-22 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961435', 'tblTempUsageDetail_20' ) end [2025-04-22 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:01:22] Production.INFO: ==4630== Releasing lock... [2025-04-22 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:01:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:02:05 [end_date_ymd] => 2025-04-22 01:02:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:02:05' and `end` < '2025-04-22 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-04-22 01:02:17] Production.INFO: count ==414 [2025-04-22 01:02:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:02:05 - End Time 2025-04-22 01:02:05 [2025-04-22 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961440', 'tblTempUsageDetail_20' ) start [2025-04-22 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961440', 'tblTempUsageDetail_20' ) end [2025-04-22 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961440', 'tblTempVendorCDR_20' ) start [2025-04-22 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961440', 'tblTempVendorCDR_20' ) end [2025-04-22 01:02:17] Production.INFO: ProcessCDR(1,14961440,1,1,2) [2025-04-22 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961440', 'tblTempUsageDetail_20' ) start [2025-04-22 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961440', 'tblTempUsageDetail_20' ) end [2025-04-22 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:02:21] Production.INFO: ==4707== Releasing lock... [2025-04-22 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:02:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:03:05 [end_date_ymd] => 2025-04-22 01:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:03:05' and `end` < '2025-04-22 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-04-22 01:03:18] Production.INFO: count ==412 [2025-04-22 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:03:05 - End Time 2025-04-22 01:03:05 [2025-04-22 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961445', 'tblTempUsageDetail_20' ) start [2025-04-22 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961445', 'tblTempUsageDetail_20' ) end [2025-04-22 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961445', 'tblTempVendorCDR_20' ) start [2025-04-22 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961445', 'tblTempVendorCDR_20' ) end [2025-04-22 01:03:18] Production.INFO: ProcessCDR(1,14961445,1,1,2) [2025-04-22 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961445', 'tblTempUsageDetail_20' ) start [2025-04-22 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961445', 'tblTempUsageDetail_20' ) end [2025-04-22 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:03:21] Production.INFO: ==4781== Releasing lock... [2025-04-22 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:03:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:04:04 [end_date_ymd] => 2025-04-22 01:04:04 [RateCDR] => 1 ) [2025-04-22 01:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:04:04' and `end` < '2025-04-22 01:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:04:17] Production.INFO: count ==411 [2025-04-22 01:04:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:04:04 - End Time 2025-04-22 01:04:04 [2025-04-22 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961450', 'tblTempUsageDetail_20' ) start [2025-04-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961450', 'tblTempUsageDetail_20' ) end [2025-04-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961450', 'tblTempVendorCDR_20' ) start [2025-04-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961450', 'tblTempVendorCDR_20' ) end [2025-04-22 01:04:17] Production.INFO: ProcessCDR(1,14961450,1,1,2) [2025-04-22 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961450', 'tblTempUsageDetail_20' ) start [2025-04-22 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961450', 'tblTempUsageDetail_20' ) end [2025-04-22 01:04:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:04:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:04:20] Production.INFO: ==4895== Releasing lock... [2025-04-22 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:04:20] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:05:05 [end_date_ymd] => 2025-04-22 01:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:05:05' and `end` < '2025-04-22 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-04-22 01:05:18] Production.INFO: count ==407 [2025-04-22 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:05:05 - End Time 2025-04-22 01:05:05 [2025-04-22 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961455', 'tblTempUsageDetail_20' ) start [2025-04-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961455', 'tblTempUsageDetail_20' ) end [2025-04-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961455', 'tblTempVendorCDR_20' ) start [2025-04-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961455', 'tblTempVendorCDR_20' ) end [2025-04-22 01:05:18] Production.INFO: ProcessCDR(1,14961455,1,1,2) [2025-04-22 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961455', 'tblTempUsageDetail_20' ) start [2025-04-22 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961455', 'tblTempUsageDetail_20' ) end [2025-04-22 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:05:21] Production.INFO: ==4969== Releasing lock... [2025-04-22 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:05:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:06:05 [end_date_ymd] => 2025-04-22 01:06:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:06:05' and `end` < '2025-04-22 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-04-22 01:06:18] Production.INFO: count ==406 [2025-04-22 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:06:05 - End Time 2025-04-22 01:06:05 [2025-04-22 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961460', 'tblTempUsageDetail_20' ) start [2025-04-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961460', 'tblTempUsageDetail_20' ) end [2025-04-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961460', 'tblTempVendorCDR_20' ) start [2025-04-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961460', 'tblTempVendorCDR_20' ) end [2025-04-22 01:06:18] Production.INFO: ProcessCDR(1,14961460,1,1,2) [2025-04-22 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961460', 'tblTempUsageDetail_20' ) start [2025-04-22 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961460', 'tblTempUsageDetail_20' ) end [2025-04-22 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:06:21] Production.INFO: ==5047== Releasing lock... [2025-04-22 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:07:05 [end_date_ymd] => 2025-04-22 01:07:05 [RateCDR] => 1 ) [2025-04-22 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:07:05' and `end` < '2025-04-22 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:07:18] Production.INFO: count ==405 [2025-04-22 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:07:05 - End Time 2025-04-22 01:07:05 [2025-04-22 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961465', 'tblTempUsageDetail_20' ) start [2025-04-22 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961465', 'tblTempUsageDetail_20' ) end [2025-04-22 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961465', 'tblTempVendorCDR_20' ) start [2025-04-22 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961465', 'tblTempVendorCDR_20' ) end [2025-04-22 01:07:18] Production.INFO: ProcessCDR(1,14961465,1,1,2) [2025-04-22 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961465', 'tblTempUsageDetail_20' ) start [2025-04-22 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961465', 'tblTempUsageDetail_20' ) end [2025-04-22 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:07:21] Production.INFO: ==5120== Releasing lock... [2025-04-22 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-22 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:08:05 [end_date_ymd] => 2025-04-22 01:08:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:08:05' and `end` < '2025-04-22 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-04-22 01:08:18] Production.INFO: count ==404 [2025-04-22 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:08:05 - End Time 2025-04-22 01:08:05 [2025-04-22 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961470', 'tblTempUsageDetail_20' ) start [2025-04-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961470', 'tblTempUsageDetail_20' ) end [2025-04-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961470', 'tblTempVendorCDR_20' ) start [2025-04-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961470', 'tblTempVendorCDR_20' ) end [2025-04-22 01:08:18] Production.INFO: ProcessCDR(1,14961470,1,1,2) [2025-04-22 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961470', 'tblTempUsageDetail_20' ) start [2025-04-22 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961470', 'tblTempUsageDetail_20' ) end [2025-04-22 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:08:21] Production.INFO: ==5201== Releasing lock... [2025-04-22 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:08:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:09:05 [end_date_ymd] => 2025-04-22 01:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:09:05' and `end` < '2025-04-22 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-04-22 01:09:17] Production.INFO: count ==410 [2025-04-22 01:09:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:09:05 - End Time 2025-04-22 01:09:05 [2025-04-22 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961475', 'tblTempUsageDetail_20' ) start [2025-04-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961475', 'tblTempUsageDetail_20' ) end [2025-04-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961475', 'tblTempVendorCDR_20' ) start [2025-04-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961475', 'tblTempVendorCDR_20' ) end [2025-04-22 01:09:17] Production.INFO: ProcessCDR(1,14961475,1,1,2) [2025-04-22 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961475', 'tblTempUsageDetail_20' ) start [2025-04-22 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961475', 'tblTempUsageDetail_20' ) end [2025-04-22 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:09:21] Production.INFO: ==5272== Releasing lock... [2025-04-22 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:09:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:10:06 [end_date_ymd] => 2025-04-22 01:10:06 [RateCDR] => 1 ) [2025-04-22 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:10:06' and `end` < '2025-04-22 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:10:18] Production.INFO: count ==416 [2025-04-22 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-21 22:10:06 - End Time 2025-04-22 01:10:06 [2025-04-22 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961480', 'tblTempUsageDetail_20' ) start [2025-04-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961480', 'tblTempUsageDetail_20' ) end [2025-04-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961480', 'tblTempVendorCDR_20' ) start [2025-04-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961480', 'tblTempVendorCDR_20' ) end [2025-04-22 01:10:19] Production.INFO: ProcessCDR(1,14961480,1,1,2) [2025-04-22 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961480', 'tblTempUsageDetail_20' ) start [2025-04-22 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961480', 'tblTempUsageDetail_20' ) end [2025-04-22 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:10:22] Production.INFO: ==5356== Releasing lock... [2025-04-22 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:11:05 [end_date_ymd] => 2025-04-22 01:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:11:05' and `end` < '2025-04-22 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-04-22 01:11:17] Production.INFO: count ==415 [2025-04-22 01:11:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:11:05 - End Time 2025-04-22 01:11:05 [2025-04-22 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961486', 'tblTempUsageDetail_20' ) start [2025-04-22 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961486', 'tblTempUsageDetail_20' ) end [2025-04-22 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961486', 'tblTempVendorCDR_20' ) start [2025-04-22 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961486', 'tblTempVendorCDR_20' ) end [2025-04-22 01:11:18] Production.INFO: ProcessCDR(1,14961486,1,1,2) [2025-04-22 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961486', 'tblTempUsageDetail_20' ) start [2025-04-22 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961486', 'tblTempUsageDetail_20' ) end [2025-04-22 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:11:21] Production.INFO: ==5430== Releasing lock... [2025-04-22 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:11:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:12:05 [end_date_ymd] => 2025-04-22 01:12:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:12:05' and `end` < '2025-04-22 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-04-22 01:12:18] Production.INFO: count ==420 [2025-04-22 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:12:05 - End Time 2025-04-22 01:12:05 [2025-04-22 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961491', 'tblTempUsageDetail_20' ) start [2025-04-22 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961491', 'tblTempUsageDetail_20' ) end [2025-04-22 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961491', 'tblTempVendorCDR_20' ) start [2025-04-22 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961491', 'tblTempVendorCDR_20' ) end [2025-04-22 01:12:18] Production.INFO: ProcessCDR(1,14961491,1,1,2) [2025-04-22 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961491', 'tblTempUsageDetail_20' ) start [2025-04-22 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961491', 'tblTempUsageDetail_20' ) end [2025-04-22 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:12:23] Production.INFO: ==5504== Releasing lock... [2025-04-22 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:12:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:13:05 [end_date_ymd] => 2025-04-22 01:13:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:13:05' and `end` < '2025-04-22 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-04-22 01:13:18] Production.INFO: count ==418 [2025-04-22 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:13:05 - End Time 2025-04-22 01:13:05 [2025-04-22 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961496', 'tblTempUsageDetail_20' ) start [2025-04-22 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961496', 'tblTempUsageDetail_20' ) end [2025-04-22 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961496', 'tblTempVendorCDR_20' ) start [2025-04-22 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961496', 'tblTempVendorCDR_20' ) end [2025-04-22 01:13:18] Production.INFO: ProcessCDR(1,14961496,1,1,2) [2025-04-22 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961496', 'tblTempUsageDetail_20' ) start [2025-04-22 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961496', 'tblTempUsageDetail_20' ) end [2025-04-22 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:13:21] Production.INFO: ==5583== Releasing lock... [2025-04-22 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:13:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:14:05 [end_date_ymd] => 2025-04-22 01:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:14:05' and `end` < '2025-04-22 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-04-22 01:14:18] Production.INFO: count ==424 [2025-04-22 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:14:05 - End Time 2025-04-22 01:14:05 [2025-04-22 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961501', 'tblTempUsageDetail_20' ) start [2025-04-22 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961501', 'tblTempUsageDetail_20' ) end [2025-04-22 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961501', 'tblTempVendorCDR_20' ) start [2025-04-22 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961501', 'tblTempVendorCDR_20' ) end [2025-04-22 01:14:18] Production.INFO: ProcessCDR(1,14961501,1,1,2) [2025-04-22 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961501', 'tblTempUsageDetail_20' ) start [2025-04-22 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961501', 'tblTempUsageDetail_20' ) end [2025-04-22 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:14:21] Production.INFO: ==5662== Releasing lock... [2025-04-22 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:14:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:15:05 [end_date_ymd] => 2025-04-22 01:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:15:05' and `end` < '2025-04-22 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-04-22 01:15:18] Production.INFO: count ==422 [2025-04-22 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:15:05 - End Time 2025-04-22 01:15:05 [2025-04-22 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961506', 'tblTempUsageDetail_20' ) start [2025-04-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961506', 'tblTempUsageDetail_20' ) end [2025-04-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961506', 'tblTempVendorCDR_20' ) start [2025-04-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961506', 'tblTempVendorCDR_20' ) end [2025-04-22 01:15:18] Production.INFO: ProcessCDR(1,14961506,1,1,2) [2025-04-22 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961506', 'tblTempUsageDetail_20' ) start [2025-04-22 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961506', 'tblTempUsageDetail_20' ) end [2025-04-22 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:15:21] Production.INFO: ==5744== Releasing lock... [2025-04-22 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:16:05 [end_date_ymd] => 2025-04-22 01:16:05 [RateCDR] => 1 ) [2025-04-22 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:16:05' and `end` < '2025-04-22 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:16:18] Production.INFO: count ==423 [2025-04-22 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:16:05 - End Time 2025-04-22 01:16:05 [2025-04-22 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961511', 'tblTempUsageDetail_20' ) start [2025-04-22 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961511', 'tblTempUsageDetail_20' ) end [2025-04-22 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961511', 'tblTempVendorCDR_20' ) start [2025-04-22 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961511', 'tblTempVendorCDR_20' ) end [2025-04-22 01:16:18] Production.INFO: ProcessCDR(1,14961511,1,1,2) [2025-04-22 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961511', 'tblTempUsageDetail_20' ) start [2025-04-22 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961511', 'tblTempUsageDetail_20' ) end [2025-04-22 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:16:21] Production.INFO: ==5825== Releasing lock... [2025-04-22 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:17:05 [end_date_ymd] => 2025-04-22 01:17:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:17:05' and `end` < '2025-04-22 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-04-22 01:17:18] Production.INFO: count ==421 [2025-04-22 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:17:05 - End Time 2025-04-22 01:17:05 [2025-04-22 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961516', 'tblTempUsageDetail_20' ) start [2025-04-22 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961516', 'tblTempUsageDetail_20' ) end [2025-04-22 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961516', 'tblTempVendorCDR_20' ) start [2025-04-22 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961516', 'tblTempVendorCDR_20' ) end [2025-04-22 01:17:18] Production.INFO: ProcessCDR(1,14961516,1,1,2) [2025-04-22 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961516', 'tblTempUsageDetail_20' ) start [2025-04-22 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961516', 'tblTempUsageDetail_20' ) end [2025-04-22 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:17:21] Production.INFO: ==5908== Releasing lock... [2025-04-22 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:18:04 [end_date_ymd] => 2025-04-22 01:18:04 [RateCDR] => 1 ) [2025-04-22 01:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:18:04' and `end` < '2025-04-22 01:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:18:17] Production.INFO: count ==421 [2025-04-22 01:18:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:18:04 - End Time 2025-04-22 01:18:04 [2025-04-22 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961521', 'tblTempUsageDetail_20' ) start [2025-04-22 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961521', 'tblTempUsageDetail_20' ) end [2025-04-22 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961521', 'tblTempVendorCDR_20' ) start [2025-04-22 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961521', 'tblTempVendorCDR_20' ) end [2025-04-22 01:18:17] Production.INFO: ProcessCDR(1,14961521,1,1,2) [2025-04-22 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961521', 'tblTempUsageDetail_20' ) start [2025-04-22 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961521', 'tblTempUsageDetail_20' ) end [2025-04-22 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:18:20] Production.INFO: ==5995== Releasing lock... [2025-04-22 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:18:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:19:05 [end_date_ymd] => 2025-04-22 01:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:19:05' and `end` < '2025-04-22 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-04-22 01:19:17] Production.INFO: count ==418 [2025-04-22 01:19:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:19:05 - End Time 2025-04-22 01:19:05 [2025-04-22 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961526', 'tblTempUsageDetail_20' ) start [2025-04-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961526', 'tblTempUsageDetail_20' ) end [2025-04-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961526', 'tblTempVendorCDR_20' ) start [2025-04-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961526', 'tblTempVendorCDR_20' ) end [2025-04-22 01:19:18] Production.INFO: ProcessCDR(1,14961526,1,1,2) [2025-04-22 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961526', 'tblTempUsageDetail_20' ) start [2025-04-22 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961526', 'tblTempUsageDetail_20' ) end [2025-04-22 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:19:21] Production.INFO: ==6070== Releasing lock... [2025-04-22 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:20:06 [end_date_ymd] => 2025-04-22 01:20:06 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:20:06' and `end` < '2025-04-22 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-04-22 01:20:19] Production.INFO: count ==419 [2025-04-22 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-21 22:20:06 - End Time 2025-04-22 01:20:06 [2025-04-22 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961532', 'tblTempUsageDetail_20' ) start [2025-04-22 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961532', 'tblTempUsageDetail_20' ) end [2025-04-22 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961532', 'tblTempVendorCDR_20' ) start [2025-04-22 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961532', 'tblTempVendorCDR_20' ) end [2025-04-22 01:20:19] Production.INFO: ProcessCDR(1,14961532,1,1,2) [2025-04-22 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961532', 'tblTempUsageDetail_20' ) start [2025-04-22 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961532', 'tblTempUsageDetail_20' ) end [2025-04-22 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:20:22] Production.INFO: ==6186== Releasing lock... [2025-04-22 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:21:05 [end_date_ymd] => 2025-04-22 01:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:21:05' and `end` < '2025-04-22 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-04-22 01:21:17] Production.INFO: count ==420 [2025-04-22 01:21:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:21:05 - End Time 2025-04-22 01:21:05 [2025-04-22 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961537', 'tblTempUsageDetail_20' ) start [2025-04-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961537', 'tblTempUsageDetail_20' ) end [2025-04-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961537', 'tblTempVendorCDR_20' ) start [2025-04-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961537', 'tblTempVendorCDR_20' ) end [2025-04-22 01:21:18] Production.INFO: ProcessCDR(1,14961537,1,1,2) [2025-04-22 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961537', 'tblTempUsageDetail_20' ) start [2025-04-22 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961537', 'tblTempUsageDetail_20' ) end [2025-04-22 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:21:21] Production.INFO: ==6273== Releasing lock... [2025-04-22 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:21:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:22:05 [end_date_ymd] => 2025-04-22 01:22:05 [RateCDR] => 1 ) [2025-04-22 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:22:05' and `end` < '2025-04-22 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:22:18] Production.INFO: count ==419 [2025-04-22 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:22:05 - End Time 2025-04-22 01:22:05 [2025-04-22 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961542', 'tblTempUsageDetail_20' ) start [2025-04-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961542', 'tblTempUsageDetail_20' ) end [2025-04-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961542', 'tblTempVendorCDR_20' ) start [2025-04-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961542', 'tblTempVendorCDR_20' ) end [2025-04-22 01:22:18] Production.INFO: ProcessCDR(1,14961542,1,1,2) [2025-04-22 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961542', 'tblTempUsageDetail_20' ) start [2025-04-22 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961542', 'tblTempUsageDetail_20' ) end [2025-04-22 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:22:24] Production.INFO: ==6346== Releasing lock... [2025-04-22 01:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:22:24] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:23:05 [end_date_ymd] => 2025-04-22 01:23:05 [RateCDR] => 1 ) [2025-04-22 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:23:05' and `end` < '2025-04-22 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:23:17] Production.INFO: count ==419 [2025-04-22 01:23:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:23:05 - End Time 2025-04-22 01:23:05 [2025-04-22 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961547', 'tblTempUsageDetail_20' ) start [2025-04-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961547', 'tblTempUsageDetail_20' ) end [2025-04-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961547', 'tblTempVendorCDR_20' ) start [2025-04-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961547', 'tblTempVendorCDR_20' ) end [2025-04-22 01:23:17] Production.INFO: ProcessCDR(1,14961547,1,1,2) [2025-04-22 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961547', 'tblTempUsageDetail_20' ) start [2025-04-22 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961547', 'tblTempUsageDetail_20' ) end [2025-04-22 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:23:22] Production.INFO: ==6418== Releasing lock... [2025-04-22 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:23:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:24:05 [end_date_ymd] => 2025-04-22 01:24:05 [RateCDR] => 1 ) [2025-04-22 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:24:05' and `end` < '2025-04-22 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:24:18] Production.INFO: count ==421 [2025-04-22 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:24:05 - End Time 2025-04-22 01:24:05 [2025-04-22 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961552', 'tblTempUsageDetail_20' ) start [2025-04-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961552', 'tblTempUsageDetail_20' ) end [2025-04-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961552', 'tblTempVendorCDR_20' ) start [2025-04-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961552', 'tblTempVendorCDR_20' ) end [2025-04-22 01:24:18] Production.INFO: ProcessCDR(1,14961552,1,1,2) [2025-04-22 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961552', 'tblTempUsageDetail_20' ) start [2025-04-22 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961552', 'tblTempUsageDetail_20' ) end [2025-04-22 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:24:21] Production.INFO: ==6494== Releasing lock... [2025-04-22 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:24:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:25:05 [end_date_ymd] => 2025-04-22 01:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:25:05' and `end` < '2025-04-22 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-04-22 01:25:17] Production.INFO: count ==422 [2025-04-22 01:25:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:25:05 - End Time 2025-04-22 01:25:05 [2025-04-22 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961557', 'tblTempUsageDetail_20' ) start [2025-04-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961557', 'tblTempUsageDetail_20' ) end [2025-04-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961557', 'tblTempVendorCDR_20' ) start [2025-04-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961557', 'tblTempVendorCDR_20' ) end [2025-04-22 01:25:17] Production.INFO: ProcessCDR(1,14961557,1,1,2) [2025-04-22 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961557', 'tblTempUsageDetail_20' ) start [2025-04-22 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961557', 'tblTempUsageDetail_20' ) end [2025-04-22 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:25:21] Production.INFO: ==6566== Releasing lock... [2025-04-22 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:26:05 [end_date_ymd] => 2025-04-22 01:26:05 [RateCDR] => 1 ) [2025-04-22 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:26:05' and `end` < '2025-04-22 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:26:18] Production.INFO: count ==420 [2025-04-22 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:26:05 - End Time 2025-04-22 01:26:05 [2025-04-22 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961562', 'tblTempUsageDetail_20' ) start [2025-04-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961562', 'tblTempUsageDetail_20' ) end [2025-04-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961562', 'tblTempVendorCDR_20' ) start [2025-04-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961562', 'tblTempVendorCDR_20' ) end [2025-04-22 01:26:18] Production.INFO: ProcessCDR(1,14961562,1,1,2) [2025-04-22 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961562', 'tblTempUsageDetail_20' ) start [2025-04-22 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961562', 'tblTempUsageDetail_20' ) end [2025-04-22 01:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:26:23] Production.INFO: ==6645== Releasing lock... [2025-04-22 01:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:26:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:27:05 [end_date_ymd] => 2025-04-22 01:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:27:05' and `end` < '2025-04-22 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-04-22 01:27:18] Production.INFO: count ==422 [2025-04-22 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:27:05 - End Time 2025-04-22 01:27:05 [2025-04-22 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961567', 'tblTempUsageDetail_20' ) start [2025-04-22 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961567', 'tblTempUsageDetail_20' ) end [2025-04-22 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961567', 'tblTempVendorCDR_20' ) start [2025-04-22 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961567', 'tblTempVendorCDR_20' ) end [2025-04-22 01:27:18] Production.INFO: ProcessCDR(1,14961567,1,1,2) [2025-04-22 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961567', 'tblTempUsageDetail_20' ) start [2025-04-22 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961567', 'tblTempUsageDetail_20' ) end [2025-04-22 01:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:27:23] Production.INFO: ==6721== Releasing lock... [2025-04-22 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:27:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:28:04 [end_date_ymd] => 2025-04-22 01:28:04 [RateCDR] => 1 ) [2025-04-22 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:28:04' and `end` < '2025-04-22 01:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:28:17] Production.INFO: count ==420 [2025-04-22 01:28:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:28:04 - End Time 2025-04-22 01:28:04 [2025-04-22 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961572', 'tblTempUsageDetail_20' ) start [2025-04-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961572', 'tblTempUsageDetail_20' ) end [2025-04-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961572', 'tblTempVendorCDR_20' ) start [2025-04-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961572', 'tblTempVendorCDR_20' ) end [2025-04-22 01:28:17] Production.INFO: ProcessCDR(1,14961572,1,1,2) [2025-04-22 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961572', 'tblTempUsageDetail_20' ) start [2025-04-22 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961572', 'tblTempUsageDetail_20' ) end [2025-04-22 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:28:20] Production.INFO: ==6794== Releasing lock... [2025-04-22 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:28:20] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:29:05 [end_date_ymd] => 2025-04-22 01:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:29:05' and `end` < '2025-04-22 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-04-22 01:29:18] Production.INFO: count ==418 [2025-04-22 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:29:05 - End Time 2025-04-22 01:29:05 [2025-04-22 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961577', 'tblTempUsageDetail_20' ) start [2025-04-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961577', 'tblTempUsageDetail_20' ) end [2025-04-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961577', 'tblTempVendorCDR_20' ) start [2025-04-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961577', 'tblTempVendorCDR_20' ) end [2025-04-22 01:29:18] Production.INFO: ProcessCDR(1,14961577,1,1,2) [2025-04-22 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961577', 'tblTempUsageDetail_20' ) start [2025-04-22 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961577', 'tblTempUsageDetail_20' ) end [2025-04-22 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:29:21] Production.INFO: ==6868== Releasing lock... [2025-04-22 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:30:05 [end_date_ymd] => 2025-04-22 01:30:05 [RateCDR] => 1 ) [2025-04-22 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:30:05' and `end` < '2025-04-22 01:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:30:17] Production.INFO: count ==419 [2025-04-22 01:30:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:30:05 - End Time 2025-04-22 01:30:05 [2025-04-22 01:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961582', 'tblTempUsageDetail_20' ) start [2025-04-22 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961582', 'tblTempUsageDetail_20' ) end [2025-04-22 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961582', 'tblTempVendorCDR_20' ) start [2025-04-22 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961582', 'tblTempVendorCDR_20' ) end [2025-04-22 01:30:17] Production.INFO: ProcessCDR(1,14961582,1,1,2) [2025-04-22 01:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961582', 'tblTempUsageDetail_20' ) start [2025-04-22 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961582', 'tblTempUsageDetail_20' ) end [2025-04-22 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:30:21] Production.INFO: ==6945== Releasing lock... [2025-04-22 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:30:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:31:05 [end_date_ymd] => 2025-04-22 01:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:31:05' and `end` < '2025-04-22 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-04-22 01:31:18] Production.INFO: count ==417 [2025-04-22 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:31:05 - End Time 2025-04-22 01:31:05 [2025-04-22 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961588', 'tblTempUsageDetail_20' ) start [2025-04-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961588', 'tblTempUsageDetail_20' ) end [2025-04-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961588', 'tblTempVendorCDR_20' ) start [2025-04-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961588', 'tblTempVendorCDR_20' ) end [2025-04-22 01:31:18] Production.INFO: ProcessCDR(1,14961588,1,1,2) [2025-04-22 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961588', 'tblTempUsageDetail_20' ) start [2025-04-22 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961588', 'tblTempUsageDetail_20' ) end [2025-04-22 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:31:21] Production.INFO: ==7024== Releasing lock... [2025-04-22 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:31:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:32:05 [end_date_ymd] => 2025-04-22 01:32:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:32:05' and `end` < '2025-04-22 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-04-22 01:32:18] Production.INFO: count ==415 [2025-04-22 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:32:05 - End Time 2025-04-22 01:32:05 [2025-04-22 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961593', 'tblTempUsageDetail_20' ) start [2025-04-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961593', 'tblTempUsageDetail_20' ) end [2025-04-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961593', 'tblTempVendorCDR_20' ) start [2025-04-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961593', 'tblTempVendorCDR_20' ) end [2025-04-22 01:32:18] Production.INFO: ProcessCDR(1,14961593,1,1,2) [2025-04-22 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961593', 'tblTempUsageDetail_20' ) start [2025-04-22 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961593', 'tblTempUsageDetail_20' ) end [2025-04-22 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:32:21] Production.INFO: ==7105== Releasing lock... [2025-04-22 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:33:05 [end_date_ymd] => 2025-04-22 01:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:33:05' and `end` < '2025-04-22 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-04-22 01:33:17] Production.INFO: count ==412 [2025-04-22 01:33:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:33:05 - End Time 2025-04-22 01:33:05 [2025-04-22 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961598', 'tblTempUsageDetail_20' ) start [2025-04-22 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961598', 'tblTempUsageDetail_20' ) end [2025-04-22 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961598', 'tblTempVendorCDR_20' ) start [2025-04-22 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961598', 'tblTempVendorCDR_20' ) end [2025-04-22 01:33:17] Production.INFO: ProcessCDR(1,14961598,1,1,2) [2025-04-22 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961598', 'tblTempUsageDetail_20' ) start [2025-04-22 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961598', 'tblTempUsageDetail_20' ) end [2025-04-22 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:33:21] Production.INFO: ==7213== Releasing lock... [2025-04-22 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:33:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:34:05 [end_date_ymd] => 2025-04-22 01:34:05 [RateCDR] => 1 ) [2025-04-22 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:34:05' and `end` < '2025-04-22 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:34:18] Production.INFO: count ==412 [2025-04-22 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:34:05 - End Time 2025-04-22 01:34:05 [2025-04-22 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961603', 'tblTempUsageDetail_20' ) start [2025-04-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961603', 'tblTempUsageDetail_20' ) end [2025-04-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961603', 'tblTempVendorCDR_20' ) start [2025-04-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961603', 'tblTempVendorCDR_20' ) end [2025-04-22 01:34:18] Production.INFO: ProcessCDR(1,14961603,1,1,2) [2025-04-22 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961603', 'tblTempUsageDetail_20' ) start [2025-04-22 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961603', 'tblTempUsageDetail_20' ) end [2025-04-22 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:34:22] Production.INFO: ==7325== Releasing lock... [2025-04-22 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:34:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:35:05 [end_date_ymd] => 2025-04-22 01:35:05 [RateCDR] => 1 ) [2025-04-22 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:35:05' and `end` < '2025-04-22 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:35:18] Production.INFO: count ==414 [2025-04-22 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:35:05 - End Time 2025-04-22 01:35:05 [2025-04-22 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961608', 'tblTempUsageDetail_20' ) start [2025-04-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961608', 'tblTempUsageDetail_20' ) end [2025-04-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961608', 'tblTempVendorCDR_20' ) start [2025-04-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961608', 'tblTempVendorCDR_20' ) end [2025-04-22 01:35:18] Production.INFO: ProcessCDR(1,14961608,1,1,2) [2025-04-22 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961608', 'tblTempUsageDetail_20' ) start [2025-04-22 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961608', 'tblTempUsageDetail_20' ) end [2025-04-22 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:35:21] Production.INFO: ==7471== Releasing lock... [2025-04-22 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:36:05 [end_date_ymd] => 2025-04-22 01:36:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:36:05' and `end` < '2025-04-22 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-04-22 01:36:18] Production.INFO: count ==412 [2025-04-22 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:36:05 - End Time 2025-04-22 01:36:05 [2025-04-22 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961613', 'tblTempUsageDetail_20' ) start [2025-04-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961613', 'tblTempUsageDetail_20' ) end [2025-04-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961613', 'tblTempVendorCDR_20' ) start [2025-04-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961613', 'tblTempVendorCDR_20' ) end [2025-04-22 01:36:18] Production.INFO: ProcessCDR(1,14961613,1,1,2) [2025-04-22 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961613', 'tblTempUsageDetail_20' ) start [2025-04-22 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961613', 'tblTempUsageDetail_20' ) end [2025-04-22 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:36:22] Production.INFO: ==7579== Releasing lock... [2025-04-22 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:37:05 [end_date_ymd] => 2025-04-22 01:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:37:05' and `end` < '2025-04-22 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-04-22 01:37:18] Production.INFO: count ==409 [2025-04-22 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:37:05 - End Time 2025-04-22 01:37:05 [2025-04-22 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961618', 'tblTempUsageDetail_20' ) start [2025-04-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961618', 'tblTempUsageDetail_20' ) end [2025-04-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961618', 'tblTempVendorCDR_20' ) start [2025-04-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961618', 'tblTempVendorCDR_20' ) end [2025-04-22 01:37:18] Production.INFO: ProcessCDR(1,14961618,1,1,2) [2025-04-22 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961618', 'tblTempUsageDetail_20' ) start [2025-04-22 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961618', 'tblTempUsageDetail_20' ) end [2025-04-22 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:37:21] Production.INFO: ==7683== Releasing lock... [2025-04-22 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:37:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:38:05 [end_date_ymd] => 2025-04-22 01:38:05 [RateCDR] => 1 ) [2025-04-22 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:38:05' and `end` < '2025-04-22 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:38:17] Production.INFO: count ==405 [2025-04-22 01:38:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:38:05 - End Time 2025-04-22 01:38:05 [2025-04-22 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961623', 'tblTempUsageDetail_20' ) start [2025-04-22 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961623', 'tblTempUsageDetail_20' ) end [2025-04-22 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961623', 'tblTempVendorCDR_20' ) start [2025-04-22 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961623', 'tblTempVendorCDR_20' ) end [2025-04-22 01:38:17] Production.INFO: ProcessCDR(1,14961623,1,1,2) [2025-04-22 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961623', 'tblTempUsageDetail_20' ) start [2025-04-22 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961623', 'tblTempUsageDetail_20' ) end [2025-04-22 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:38:21] Production.INFO: ==7793== Releasing lock... [2025-04-22 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:39:05 [end_date_ymd] => 2025-04-22 01:39:05 [RateCDR] => 1 ) [2025-04-22 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:39:05' and `end` < '2025-04-22 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:39:18] Production.INFO: count ==401 [2025-04-22 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:39:05 - End Time 2025-04-22 01:39:05 [2025-04-22 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961628', 'tblTempUsageDetail_20' ) start [2025-04-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961628', 'tblTempUsageDetail_20' ) end [2025-04-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961628', 'tblTempVendorCDR_20' ) start [2025-04-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961628', 'tblTempVendorCDR_20' ) end [2025-04-22 01:39:18] Production.INFO: ProcessCDR(1,14961628,1,1,2) [2025-04-22 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961628', 'tblTempUsageDetail_20' ) start [2025-04-22 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961628', 'tblTempUsageDetail_20' ) end [2025-04-22 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:39:21] Production.INFO: ==7904== Releasing lock... [2025-04-22 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:40:05 [end_date_ymd] => 2025-04-22 01:40:05 [RateCDR] => 1 ) [2025-04-22 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:40:05' and `end` < '2025-04-22 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:40:18] Production.INFO: count ==408 [2025-04-22 01:40:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:40:05 - End Time 2025-04-22 01:40:05 [2025-04-22 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961633', 'tblTempUsageDetail_20' ) start [2025-04-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961633', 'tblTempUsageDetail_20' ) end [2025-04-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961633', 'tblTempVendorCDR_20' ) start [2025-04-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961633', 'tblTempVendorCDR_20' ) end [2025-04-22 01:40:18] Production.INFO: ProcessCDR(1,14961633,1,1,2) [2025-04-22 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961633', 'tblTempUsageDetail_20' ) start [2025-04-22 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961633', 'tblTempUsageDetail_20' ) end [2025-04-22 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:40:21] Production.INFO: ==8012== Releasing lock... [2025-04-22 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:40:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:41:05 [end_date_ymd] => 2025-04-22 01:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:41:05' and `end` < '2025-04-22 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-04-22 01:41:18] Production.INFO: count ==402 [2025-04-22 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:41:05 - End Time 2025-04-22 01:41:05 [2025-04-22 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961639', 'tblTempUsageDetail_20' ) start [2025-04-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961639', 'tblTempUsageDetail_20' ) end [2025-04-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961639', 'tblTempVendorCDR_20' ) start [2025-04-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961639', 'tblTempVendorCDR_20' ) end [2025-04-22 01:41:18] Production.INFO: ProcessCDR(1,14961639,1,1,2) [2025-04-22 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961639', 'tblTempUsageDetail_20' ) start [2025-04-22 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961639', 'tblTempUsageDetail_20' ) end [2025-04-22 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:41:21] Production.INFO: ==8116== Releasing lock... [2025-04-22 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:41:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:42:05 [end_date_ymd] => 2025-04-22 01:42:05 [RateCDR] => 1 ) [2025-04-22 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:42:05' and `end` < '2025-04-22 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:42:17] Production.INFO: count ==402 [2025-04-22 01:42:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:42:05 - End Time 2025-04-22 01:42:05 [2025-04-22 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961644', 'tblTempUsageDetail_20' ) start [2025-04-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961644', 'tblTempUsageDetail_20' ) end [2025-04-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961644', 'tblTempVendorCDR_20' ) start [2025-04-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961644', 'tblTempVendorCDR_20' ) end [2025-04-22 01:42:18] Production.INFO: ProcessCDR(1,14961644,1,1,2) [2025-04-22 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961644', 'tblTempUsageDetail_20' ) start [2025-04-22 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961644', 'tblTempUsageDetail_20' ) end [2025-04-22 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:42:21] Production.INFO: ==8227== Releasing lock... [2025-04-22 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:43:05 [end_date_ymd] => 2025-04-22 01:43:05 [RateCDR] => 1 ) [2025-04-22 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:43:05' and `end` < '2025-04-22 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:43:18] Production.INFO: count ==398 [2025-04-22 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:43:05 - End Time 2025-04-22 01:43:05 [2025-04-22 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961649', 'tblTempUsageDetail_20' ) start [2025-04-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961649', 'tblTempUsageDetail_20' ) end [2025-04-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961649', 'tblTempVendorCDR_20' ) start [2025-04-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961649', 'tblTempVendorCDR_20' ) end [2025-04-22 01:43:18] Production.INFO: ProcessCDR(1,14961649,1,1,2) [2025-04-22 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961649', 'tblTempUsageDetail_20' ) start [2025-04-22 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961649', 'tblTempUsageDetail_20' ) end [2025-04-22 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:43:21] Production.INFO: ==8331== Releasing lock... [2025-04-22 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:44:04 [end_date_ymd] => 2025-04-22 01:44:04 [RateCDR] => 1 ) [2025-04-22 01: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-04-21 22:44:04' and `end` < '2025-04-22 01: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-04-22 01:44:17] Production.INFO: count ==397 [2025-04-22 01:44:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:44:04 - End Time 2025-04-22 01:44:04 [2025-04-22 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961654', 'tblTempUsageDetail_20' ) start [2025-04-22 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961654', 'tblTempUsageDetail_20' ) end [2025-04-22 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961654', 'tblTempVendorCDR_20' ) start [2025-04-22 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961654', 'tblTempVendorCDR_20' ) end [2025-04-22 01:44:17] Production.INFO: ProcessCDR(1,14961654,1,1,2) [2025-04-22 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961654', 'tblTempUsageDetail_20' ) start [2025-04-22 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961654', 'tblTempUsageDetail_20' ) end [2025-04-22 01:44:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:44:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:44:20] Production.INFO: ==8443== Releasing lock... [2025-04-22 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:44:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:45:05 [end_date_ymd] => 2025-04-22 01:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:45:05' and `end` < '2025-04-22 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-04-22 01:45:18] Production.INFO: count ==396 [2025-04-22 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:45:05 - End Time 2025-04-22 01:45:05 [2025-04-22 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961659', 'tblTempUsageDetail_20' ) start [2025-04-22 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961659', 'tblTempUsageDetail_20' ) end [2025-04-22 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961659', 'tblTempVendorCDR_20' ) start [2025-04-22 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961659', 'tblTempVendorCDR_20' ) end [2025-04-22 01:45:18] Production.INFO: ProcessCDR(1,14961659,1,1,2) [2025-04-22 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961659', 'tblTempUsageDetail_20' ) start [2025-04-22 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961659', 'tblTempUsageDetail_20' ) end [2025-04-22 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:45:21] Production.INFO: ==8548== Releasing lock... [2025-04-22 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:45:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:46:05 [end_date_ymd] => 2025-04-22 01:46:05 [RateCDR] => 1 ) [2025-04-22 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:46:05' and `end` < '2025-04-22 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:46:18] Production.INFO: count ==394 [2025-04-22 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:46:05 - End Time 2025-04-22 01:46:05 [2025-04-22 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961664', 'tblTempUsageDetail_20' ) start [2025-04-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961664', 'tblTempUsageDetail_20' ) end [2025-04-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961664', 'tblTempVendorCDR_20' ) start [2025-04-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961664', 'tblTempVendorCDR_20' ) end [2025-04-22 01:46:18] Production.INFO: ProcessCDR(1,14961664,1,1,2) [2025-04-22 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961664', 'tblTempUsageDetail_20' ) start [2025-04-22 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961664', 'tblTempUsageDetail_20' ) end [2025-04-22 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:46:21] Production.INFO: ==8656== Releasing lock... [2025-04-22 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:46:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:47:05 [end_date_ymd] => 2025-04-22 01:47:05 [RateCDR] => 1 ) [2025-04-22 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:47:05' and `end` < '2025-04-22 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:47:17] Production.INFO: count ==393 [2025-04-22 01:47:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:47:05 - End Time 2025-04-22 01:47:05 [2025-04-22 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961669', 'tblTempUsageDetail_20' ) start [2025-04-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961669', 'tblTempUsageDetail_20' ) end [2025-04-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961669', 'tblTempVendorCDR_20' ) start [2025-04-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961669', 'tblTempVendorCDR_20' ) end [2025-04-22 01:47:17] Production.INFO: ProcessCDR(1,14961669,1,1,2) [2025-04-22 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961669', 'tblTempUsageDetail_20' ) start [2025-04-22 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961669', 'tblTempUsageDetail_20' ) end [2025-04-22 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:47:21] Production.INFO: ==8761== Releasing lock... [2025-04-22 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:47:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:48:05 [end_date_ymd] => 2025-04-22 01:48:05 [RateCDR] => 1 ) [2025-04-22 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:48:05' and `end` < '2025-04-22 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:48:18] Production.INFO: count ==392 [2025-04-22 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:48:05 - End Time 2025-04-22 01:48:05 [2025-04-22 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961674', 'tblTempUsageDetail_20' ) start [2025-04-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961674', 'tblTempUsageDetail_20' ) end [2025-04-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961674', 'tblTempVendorCDR_20' ) start [2025-04-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961674', 'tblTempVendorCDR_20' ) end [2025-04-22 01:48:18] Production.INFO: ProcessCDR(1,14961674,1,1,2) [2025-04-22 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961674', 'tblTempUsageDetail_20' ) start [2025-04-22 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961674', 'tblTempUsageDetail_20' ) end [2025-04-22 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:48:21] Production.INFO: ==8870== Releasing lock... [2025-04-22 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:49:05 [end_date_ymd] => 2025-04-22 01:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:49:05' and `end` < '2025-04-22 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-04-22 01:49:17] Production.INFO: count ==395 [2025-04-22 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:49:05 - End Time 2025-04-22 01:49:05 [2025-04-22 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961679', 'tblTempUsageDetail_20' ) start [2025-04-22 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961679', 'tblTempUsageDetail_20' ) end [2025-04-22 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961679', 'tblTempVendorCDR_20' ) start [2025-04-22 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961679', 'tblTempVendorCDR_20' ) end [2025-04-22 01:49:18] Production.INFO: ProcessCDR(1,14961679,1,1,2) [2025-04-22 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961679', 'tblTempUsageDetail_20' ) start [2025-04-22 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961679', 'tblTempUsageDetail_20' ) end [2025-04-22 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:49:21] Production.INFO: ==8987== Releasing lock... [2025-04-22 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:49:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:50:05 [end_date_ymd] => 2025-04-22 01:50:05 [RateCDR] => 1 ) [2025-04-22 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:50:05' and `end` < '2025-04-22 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:50:18] Production.INFO: count ==404 [2025-04-22 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:50:05 - End Time 2025-04-22 01:50:05 [2025-04-22 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961685', 'tblTempUsageDetail_20' ) start [2025-04-22 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961685', 'tblTempUsageDetail_20' ) end [2025-04-22 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961685', 'tblTempVendorCDR_20' ) start [2025-04-22 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961685', 'tblTempVendorCDR_20' ) end [2025-04-22 01:50:18] Production.INFO: ProcessCDR(1,14961685,1,1,2) [2025-04-22 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961685', 'tblTempUsageDetail_20' ) start [2025-04-22 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961685', 'tblTempUsageDetail_20' ) end [2025-04-22 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:50:23] Production.INFO: ==9097== Releasing lock... [2025-04-22 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:50:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:51:05 [end_date_ymd] => 2025-04-22 01:51:05 [RateCDR] => 1 ) [2025-04-22 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:51:05' and `end` < '2025-04-22 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-04-22 01:51:18] Production.INFO: count ==401 [2025-04-22 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:51:05 - End Time 2025-04-22 01:51:05 [2025-04-22 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961690', 'tblTempUsageDetail_20' ) start [2025-04-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961690', 'tblTempUsageDetail_20' ) end [2025-04-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961690', 'tblTempVendorCDR_20' ) start [2025-04-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961690', 'tblTempVendorCDR_20' ) end [2025-04-22 01:51:18] Production.INFO: ProcessCDR(1,14961690,1,1,2) [2025-04-22 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961690', 'tblTempUsageDetail_20' ) start [2025-04-22 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961690', 'tblTempUsageDetail_20' ) end [2025-04-22 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:51:21] Production.INFO: ==9246== Releasing lock... [2025-04-22 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:52:05 [end_date_ymd] => 2025-04-22 01:52:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:52:05' and `end` < '2025-04-22 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-04-22 01:52:18] Production.INFO: count ==399 [2025-04-22 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:52:05 - End Time 2025-04-22 01:52:05 [2025-04-22 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961695', 'tblTempUsageDetail_20' ) start [2025-04-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961695', 'tblTempUsageDetail_20' ) end [2025-04-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961695', 'tblTempVendorCDR_20' ) start [2025-04-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961695', 'tblTempVendorCDR_20' ) end [2025-04-22 01:52:18] Production.INFO: ProcessCDR(1,14961695,1,1,2) [2025-04-22 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961695', 'tblTempUsageDetail_20' ) start [2025-04-22 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961695', 'tblTempUsageDetail_20' ) end [2025-04-22 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:52:21] Production.INFO: ==9356== Releasing lock... [2025-04-22 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:52:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:53:05 [end_date_ymd] => 2025-04-22 01:53:05 [RateCDR] => 1 ) [2025-04-22 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:53:05' and `end` < '2025-04-22 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:53:18] Production.INFO: count ==395 [2025-04-22 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:53:05 - End Time 2025-04-22 01:53:05 [2025-04-22 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961700', 'tblTempUsageDetail_20' ) start [2025-04-22 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961700', 'tblTempUsageDetail_20' ) end [2025-04-22 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961700', 'tblTempVendorCDR_20' ) start [2025-04-22 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961700', 'tblTempVendorCDR_20' ) end [2025-04-22 01:53:18] Production.INFO: ProcessCDR(1,14961700,1,1,2) [2025-04-22 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961700', 'tblTempUsageDetail_20' ) start [2025-04-22 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961700', 'tblTempUsageDetail_20' ) end [2025-04-22 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:53:22] Production.INFO: ==9460== Releasing lock... [2025-04-22 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:53:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:54:05 [end_date_ymd] => 2025-04-22 01:54:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:54:05' and `end` < '2025-04-22 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-04-22 01:54:18] Production.INFO: count ==392 [2025-04-22 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:54:05 - End Time 2025-04-22 01:54:05 [2025-04-22 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961705', 'tblTempUsageDetail_20' ) start [2025-04-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961705', 'tblTempUsageDetail_20' ) end [2025-04-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961705', 'tblTempVendorCDR_20' ) start [2025-04-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961705', 'tblTempVendorCDR_20' ) end [2025-04-22 01:54:18] Production.INFO: ProcessCDR(1,14961705,1,1,2) [2025-04-22 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961705', 'tblTempUsageDetail_20' ) start [2025-04-22 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961705', 'tblTempUsageDetail_20' ) end [2025-04-22 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:54:22] Production.INFO: ==9568== Releasing lock... [2025-04-22 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:54:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-22 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:55:05 [end_date_ymd] => 2025-04-22 01:55:05 [RateCDR] => 1 ) [2025-04-22 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:55:05' and `end` < '2025-04-22 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:55:18] Production.INFO: count ==390 [2025-04-22 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:55:05 - End Time 2025-04-22 01:55:05 [2025-04-22 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961710', 'tblTempUsageDetail_20' ) start [2025-04-22 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961710', 'tblTempUsageDetail_20' ) end [2025-04-22 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961710', 'tblTempVendorCDR_20' ) start [2025-04-22 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961710', 'tblTempVendorCDR_20' ) end [2025-04-22 01:55:18] Production.INFO: ProcessCDR(1,14961710,1,1,2) [2025-04-22 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961710', 'tblTempUsageDetail_20' ) start [2025-04-22 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961710', 'tblTempUsageDetail_20' ) end [2025-04-22 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:55:21] Production.INFO: ==9682== Releasing lock... [2025-04-22 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:56:05 [end_date_ymd] => 2025-04-22 01:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:56:05' and `end` < '2025-04-22 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-04-22 01:56:17] Production.INFO: count ==392 [2025-04-22 01:56:17] Production.ERROR: pbx CDR StartTime 2025-04-21 22:56:05 - End Time 2025-04-22 01:56:05 [2025-04-22 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961715', 'tblTempUsageDetail_20' ) start [2025-04-22 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961715', 'tblTempUsageDetail_20' ) end [2025-04-22 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961715', 'tblTempVendorCDR_20' ) start [2025-04-22 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961715', 'tblTempVendorCDR_20' ) end [2025-04-22 01:56:17] Production.INFO: ProcessCDR(1,14961715,1,1,2) [2025-04-22 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961715', 'tblTempUsageDetail_20' ) start [2025-04-22 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961715', 'tblTempUsageDetail_20' ) end [2025-04-22 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:56:21] Production.INFO: ==9782== Releasing lock... [2025-04-22 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:57:05 [end_date_ymd] => 2025-04-22 01:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:57:05' and `end` < '2025-04-22 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-04-22 01:57:18] Production.INFO: count ==392 [2025-04-22 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:57:05 - End Time 2025-04-22 01:57:05 [2025-04-22 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961720', 'tblTempUsageDetail_20' ) start [2025-04-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961720', 'tblTempUsageDetail_20' ) end [2025-04-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961720', 'tblTempVendorCDR_20' ) start [2025-04-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961720', 'tblTempVendorCDR_20' ) end [2025-04-22 01:57:18] Production.INFO: ProcessCDR(1,14961720,1,1,2) [2025-04-22 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961720', 'tblTempUsageDetail_20' ) start [2025-04-22 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961720', 'tblTempUsageDetail_20' ) end [2025-04-22 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:57:21] Production.INFO: ==9888== Releasing lock... [2025-04-22 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:58:05 [end_date_ymd] => 2025-04-22 01:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 22:58:05' and `end` < '2025-04-22 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-04-22 01:58:18] Production.INFO: count ==391 [2025-04-22 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:58:05 - End Time 2025-04-22 01:58:05 [2025-04-22 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961725', 'tblTempUsageDetail_20' ) start [2025-04-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961725', 'tblTempUsageDetail_20' ) end [2025-04-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961725', 'tblTempVendorCDR_20' ) start [2025-04-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961725', 'tblTempVendorCDR_20' ) end [2025-04-22 01:58:18] Production.INFO: ProcessCDR(1,14961725,1,1,2) [2025-04-22 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961725', 'tblTempUsageDetail_20' ) start [2025-04-22 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961725', 'tblTempUsageDetail_20' ) end [2025-04-22 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:58:21] Production.INFO: ==9992== Releasing lock... [2025-04-22 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:58:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 22:59:05 [end_date_ymd] => 2025-04-22 01:59:05 [RateCDR] => 1 ) [2025-04-22 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 22:59:05' and `end` < '2025-04-22 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 01:59:18] Production.INFO: count ==396 [2025-04-22 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-21 22:59:05 - End Time 2025-04-22 01:59:05 [2025-04-22 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961730', 'tblTempUsageDetail_20' ) start [2025-04-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961730', 'tblTempUsageDetail_20' ) end [2025-04-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961730', 'tblTempVendorCDR_20' ) start [2025-04-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961730', 'tblTempVendorCDR_20' ) end [2025-04-22 01:59:18] Production.INFO: ProcessCDR(1,14961730,1,1,2) [2025-04-22 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961730', 'tblTempUsageDetail_20' ) start [2025-04-22 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961730', 'tblTempUsageDetail_20' ) end [2025-04-22 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 01:59:22] Production.INFO: ==10068== Releasing lock... [2025-04-22 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 01:59:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:00:06 [end_date_ymd] => 2025-04-22 02:00:06 [RateCDR] => 1 ) [2025-04-22 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:00:06' and `end` < '2025-04-22 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:00:19] Production.INFO: count ==401 [2025-04-22 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-21 23:00:06 - End Time 2025-04-22 02:00:06 [2025-04-22 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961735', 'tblTempUsageDetail_20' ) start [2025-04-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961735', 'tblTempUsageDetail_20' ) end [2025-04-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961735', 'tblTempVendorCDR_20' ) start [2025-04-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961735', 'tblTempVendorCDR_20' ) end [2025-04-22 02:00:19] Production.INFO: ProcessCDR(1,14961735,1,1,2) [2025-04-22 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961735', 'tblTempUsageDetail_20' ) start [2025-04-22 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961735', 'tblTempUsageDetail_20' ) end [2025-04-22 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:00:23] Production.INFO: ==10146== Releasing lock... [2025-04-22 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:00:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:01:05 [end_date_ymd] => 2025-04-22 02:01:05 [RateCDR] => 1 ) [2025-04-22 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:01:05' and `end` < '2025-04-22 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:01:18] Production.INFO: count ==410 [2025-04-22 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:01:05 - End Time 2025-04-22 02:01:05 [2025-04-22 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961741', 'tblTempUsageDetail_20' ) start [2025-04-22 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961741', 'tblTempUsageDetail_20' ) end [2025-04-22 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961741', 'tblTempVendorCDR_20' ) start [2025-04-22 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961741', 'tblTempVendorCDR_20' ) end [2025-04-22 02:01:18] Production.INFO: ProcessCDR(1,14961741,1,1,2) [2025-04-22 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961741', 'tblTempUsageDetail_20' ) start [2025-04-22 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961741', 'tblTempUsageDetail_20' ) end [2025-04-22 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:01:21] Production.INFO: ==10239== Releasing lock... [2025-04-22 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:02:05 [end_date_ymd] => 2025-04-22 02:02:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:02:05' and `end` < '2025-04-22 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-04-22 02:02:18] Production.INFO: count ==413 [2025-04-22 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:02:05 - End Time 2025-04-22 02:02:05 [2025-04-22 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961746', 'tblTempUsageDetail_20' ) start [2025-04-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961746', 'tblTempUsageDetail_20' ) end [2025-04-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961746', 'tblTempVendorCDR_20' ) start [2025-04-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961746', 'tblTempVendorCDR_20' ) end [2025-04-22 02:02:18] Production.INFO: ProcessCDR(1,14961746,1,1,2) [2025-04-22 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961746', 'tblTempUsageDetail_20' ) start [2025-04-22 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961746', 'tblTempUsageDetail_20' ) end [2025-04-22 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:02:21] Production.INFO: ==10409== Releasing lock... [2025-04-22 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:02:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:03:04 [end_date_ymd] => 2025-04-22 02:03:04 [RateCDR] => 1 ) [2025-04-22 02: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-04-21 23:03:04' and `end` < '2025-04-22 02: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-04-22 02:03:17] Production.INFO: count ==408 [2025-04-22 02:03:17] Production.ERROR: pbx CDR StartTime 2025-04-21 23:03:04 - End Time 2025-04-22 02:03:04 [2025-04-22 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961751', 'tblTempUsageDetail_20' ) start [2025-04-22 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961751', 'tblTempUsageDetail_20' ) end [2025-04-22 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961751', 'tblTempVendorCDR_20' ) start [2025-04-22 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961751', 'tblTempVendorCDR_20' ) end [2025-04-22 02:03:17] Production.INFO: ProcessCDR(1,14961751,1,1,2) [2025-04-22 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961751', 'tblTempUsageDetail_20' ) start [2025-04-22 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961751', 'tblTempUsageDetail_20' ) end [2025-04-22 02:03:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:03:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:03:20] Production.INFO: ==10481== Releasing lock... [2025-04-22 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:03:20] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:04:05 [end_date_ymd] => 2025-04-22 02:04:05 [RateCDR] => 1 ) [2025-04-22 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:04:05' and `end` < '2025-04-22 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:04:18] Production.INFO: count ==405 [2025-04-22 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:04:05 - End Time 2025-04-22 02:04:05 [2025-04-22 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961756', 'tblTempUsageDetail_20' ) start [2025-04-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961756', 'tblTempUsageDetail_20' ) end [2025-04-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961756', 'tblTempVendorCDR_20' ) start [2025-04-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961756', 'tblTempVendorCDR_20' ) end [2025-04-22 02:04:18] Production.INFO: ProcessCDR(1,14961756,1,1,2) [2025-04-22 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961756', 'tblTempUsageDetail_20' ) start [2025-04-22 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961756', 'tblTempUsageDetail_20' ) end [2025-04-22 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:04:22] Production.INFO: ==10562== Releasing lock... [2025-04-22 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:04:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:05:04 [end_date_ymd] => 2025-04-22 02:05:04 [RateCDR] => 1 ) [2025-04-22 02:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:05:04' and `end` < '2025-04-22 02:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:05:17] Production.INFO: count ==401 [2025-04-22 02:05:17] Production.ERROR: pbx CDR StartTime 2025-04-21 23:05:04 - End Time 2025-04-22 02:05:04 [2025-04-22 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961761', 'tblTempUsageDetail_20' ) start [2025-04-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961761', 'tblTempUsageDetail_20' ) end [2025-04-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961761', 'tblTempVendorCDR_20' ) start [2025-04-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961761', 'tblTempVendorCDR_20' ) end [2025-04-22 02:05:17] Production.INFO: ProcessCDR(1,14961761,1,1,2) [2025-04-22 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961761', 'tblTempUsageDetail_20' ) start [2025-04-22 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961761', 'tblTempUsageDetail_20' ) end [2025-04-22 02:05:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:05:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:05:21] Production.INFO: ==10639== Releasing lock... [2025-04-22 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:05:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-22 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:06:05 [end_date_ymd] => 2025-04-22 02:06:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:06:05' and `end` < '2025-04-22 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-04-22 02:06:18] Production.INFO: count ==402 [2025-04-22 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:06:05 - End Time 2025-04-22 02:06:05 [2025-04-22 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961766', 'tblTempUsageDetail_20' ) start [2025-04-22 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961766', 'tblTempUsageDetail_20' ) end [2025-04-22 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961766', 'tblTempVendorCDR_20' ) start [2025-04-22 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961766', 'tblTempVendorCDR_20' ) end [2025-04-22 02:06:18] Production.INFO: ProcessCDR(1,14961766,1,1,2) [2025-04-22 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961766', 'tblTempUsageDetail_20' ) start [2025-04-22 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961766', 'tblTempUsageDetail_20' ) end [2025-04-22 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:06:21] Production.INFO: ==10749== Releasing lock... [2025-04-22 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:06:21] Production.INFO: 31 MB #Memory Used# [2025-04-22 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:07:06 [end_date_ymd] => 2025-04-22 02:07:06 [RateCDR] => 1 ) [2025-04-22 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:07:06' and `end` < '2025-04-22 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:07:18] Production.INFO: count ==403 [2025-04-22 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:07:06 - End Time 2025-04-22 02:07:06 [2025-04-22 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961771', 'tblTempUsageDetail_20' ) start [2025-04-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961771', 'tblTempUsageDetail_20' ) end [2025-04-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961771', 'tblTempVendorCDR_20' ) start [2025-04-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961771', 'tblTempVendorCDR_20' ) end [2025-04-22 02:07:18] Production.INFO: ProcessCDR(1,14961771,1,1,2) [2025-04-22 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961771', 'tblTempUsageDetail_20' ) start [2025-04-22 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961771', 'tblTempUsageDetail_20' ) end [2025-04-22 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:07:21] Production.INFO: ==10826== Releasing lock... [2025-04-22 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:08:05 [end_date_ymd] => 2025-04-22 02:08:05 [RateCDR] => 1 ) [2025-04-22 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:08:05' and `end` < '2025-04-22 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:08:17] Production.INFO: count ==399 [2025-04-22 02:08:17] Production.ERROR: pbx CDR StartTime 2025-04-21 23:08:05 - End Time 2025-04-22 02:08:05 [2025-04-22 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961776', 'tblTempUsageDetail_20' ) start [2025-04-22 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961776', 'tblTempUsageDetail_20' ) end [2025-04-22 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961776', 'tblTempVendorCDR_20' ) start [2025-04-22 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961776', 'tblTempVendorCDR_20' ) end [2025-04-22 02:08:17] Production.INFO: ProcessCDR(1,14961776,1,1,2) [2025-04-22 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961776', 'tblTempUsageDetail_20' ) start [2025-04-22 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961776', 'tblTempUsageDetail_20' ) end [2025-04-22 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:08:21] Production.INFO: ==10903== Releasing lock... [2025-04-22 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:08:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:09:06 [end_date_ymd] => 2025-04-22 02:09:06 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:09:06' and `end` < '2025-04-22 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-04-22 02:09:18] Production.INFO: count ==398 [2025-04-22 02:09:19] Production.ERROR: pbx CDR StartTime 2025-04-21 23:09:06 - End Time 2025-04-22 02:09:06 [2025-04-22 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961781', 'tblTempUsageDetail_20' ) start [2025-04-22 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961781', 'tblTempUsageDetail_20' ) end [2025-04-22 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961781', 'tblTempVendorCDR_20' ) start [2025-04-22 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961781', 'tblTempVendorCDR_20' ) end [2025-04-22 02:09:19] Production.INFO: ProcessCDR(1,14961781,1,1,2) [2025-04-22 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961781', 'tblTempUsageDetail_20' ) start [2025-04-22 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961781', 'tblTempUsageDetail_20' ) end [2025-04-22 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:09:22] Production.INFO: ==10974== Releasing lock... [2025-04-22 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:09:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:10:05 [end_date_ymd] => 2025-04-22 02:10:05 [RateCDR] => 1 ) [2025-04-22 02: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-04-21 23:10:05' and `end` < '2025-04-22 02: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-04-22 02:10:18] Production.INFO: count ==404 [2025-04-22 02:10:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:10:05 - End Time 2025-04-22 02:10:05 [2025-04-22 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961786', 'tblTempUsageDetail_20' ) start [2025-04-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961786', 'tblTempUsageDetail_20' ) end [2025-04-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961786', 'tblTempVendorCDR_20' ) start [2025-04-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961786', 'tblTempVendorCDR_20' ) end [2025-04-22 02:10:18] Production.INFO: ProcessCDR(1,14961786,1,1,2) [2025-04-22 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961786', 'tblTempUsageDetail_20' ) start [2025-04-22 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961786', 'tblTempUsageDetail_20' ) end [2025-04-22 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:10:21] Production.INFO: ==11050== Releasing lock... [2025-04-22 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:10:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:11:05 [end_date_ymd] => 2025-04-22 02:11:05 [RateCDR] => 1 ) [2025-04-22 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:11:05' and `end` < '2025-04-22 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:11:18] Production.INFO: count ==421 [2025-04-22 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:11:05 - End Time 2025-04-22 02:11:05 [2025-04-22 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961792', 'tblTempUsageDetail_20' ) start [2025-04-22 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961792', 'tblTempUsageDetail_20' ) end [2025-04-22 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961792', 'tblTempVendorCDR_20' ) start [2025-04-22 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961792', 'tblTempVendorCDR_20' ) end [2025-04-22 02:11:18] Production.INFO: ProcessCDR(1,14961792,1,1,2) [2025-04-22 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961792', 'tblTempUsageDetail_20' ) start [2025-04-22 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961792', 'tblTempUsageDetail_20' ) end [2025-04-22 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:11:22] Production.INFO: ==11125== Releasing lock... [2025-04-22 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:11:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:12:05 [end_date_ymd] => 2025-04-22 02:12:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:12:05' and `end` < '2025-04-22 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-04-22 02:12:17] Production.INFO: count ==420 [2025-04-22 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:12:05 - End Time 2025-04-22 02:12:05 [2025-04-22 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961797', 'tblTempUsageDetail_20' ) start [2025-04-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961797', 'tblTempUsageDetail_20' ) end [2025-04-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961797', 'tblTempVendorCDR_20' ) start [2025-04-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961797', 'tblTempVendorCDR_20' ) end [2025-04-22 02:12:18] Production.INFO: ProcessCDR(1,14961797,1,1,2) [2025-04-22 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961797', 'tblTempUsageDetail_20' ) start [2025-04-22 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961797', 'tblTempUsageDetail_20' ) end [2025-04-22 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:12:21] Production.INFO: ==11195== Releasing lock... [2025-04-22 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:13:05 [end_date_ymd] => 2025-04-22 02:13:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:13:05' and `end` < '2025-04-22 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-04-22 02:13:18] Production.INFO: count ==417 [2025-04-22 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:13:05 - End Time 2025-04-22 02:13:05 [2025-04-22 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961802', 'tblTempUsageDetail_20' ) start [2025-04-22 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961802', 'tblTempUsageDetail_20' ) end [2025-04-22 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961802', 'tblTempVendorCDR_20' ) start [2025-04-22 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961802', 'tblTempVendorCDR_20' ) end [2025-04-22 02:13:18] Production.INFO: ProcessCDR(1,14961802,1,1,2) [2025-04-22 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961802', 'tblTempUsageDetail_20' ) start [2025-04-22 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961802', 'tblTempUsageDetail_20' ) end [2025-04-22 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:13:21] Production.INFO: ==11269== Releasing lock... [2025-04-22 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:13:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:14:05 [end_date_ymd] => 2025-04-22 02:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:14:05' and `end` < '2025-04-22 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-04-22 02:14:18] Production.INFO: count ==415 [2025-04-22 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:14:05 - End Time 2025-04-22 02:14:05 [2025-04-22 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961807', 'tblTempUsageDetail_20' ) start [2025-04-22 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961807', 'tblTempUsageDetail_20' ) end [2025-04-22 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961807', 'tblTempVendorCDR_20' ) start [2025-04-22 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961807', 'tblTempVendorCDR_20' ) end [2025-04-22 02:14:18] Production.INFO: ProcessCDR(1,14961807,1,1,2) [2025-04-22 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961807', 'tblTempUsageDetail_20' ) start [2025-04-22 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961807', 'tblTempUsageDetail_20' ) end [2025-04-22 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:14:22] Production.INFO: ==11344== Releasing lock... [2025-04-22 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:14:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:15:05 [end_date_ymd] => 2025-04-22 02:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:15:05' and `end` < '2025-04-22 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-04-22 02:15:18] Production.INFO: count ==417 [2025-04-22 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:15:05 - End Time 2025-04-22 02:15:05 [2025-04-22 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961812', 'tblTempUsageDetail_20' ) start [2025-04-22 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961812', 'tblTempUsageDetail_20' ) end [2025-04-22 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961812', 'tblTempVendorCDR_20' ) start [2025-04-22 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961812', 'tblTempVendorCDR_20' ) end [2025-04-22 02:15:18] Production.INFO: ProcessCDR(1,14961812,1,1,2) [2025-04-22 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961812', 'tblTempUsageDetail_20' ) start [2025-04-22 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961812', 'tblTempUsageDetail_20' ) end [2025-04-22 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:15:21] Production.INFO: ==11417== Releasing lock... [2025-04-22 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:16:05 [end_date_ymd] => 2025-04-22 02:16:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:16:05' and `end` < '2025-04-22 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-04-22 02:16:18] Production.INFO: count ==415 [2025-04-22 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:16:05 - End Time 2025-04-22 02:16:05 [2025-04-22 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961817', 'tblTempUsageDetail_20' ) start [2025-04-22 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961817', 'tblTempUsageDetail_20' ) end [2025-04-22 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961817', 'tblTempVendorCDR_20' ) start [2025-04-22 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961817', 'tblTempVendorCDR_20' ) end [2025-04-22 02:16:18] Production.INFO: ProcessCDR(1,14961817,1,1,2) [2025-04-22 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961817', 'tblTempUsageDetail_20' ) start [2025-04-22 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961817', 'tblTempUsageDetail_20' ) end [2025-04-22 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:16:21] Production.INFO: ==11494== Releasing lock... [2025-04-22 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:17:04 [end_date_ymd] => 2025-04-22 02:17:04 [RateCDR] => 1 ) [2025-04-22 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:17:04' and `end` < '2025-04-22 02:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:17:17] Production.INFO: count ==790 [2025-04-22 02:17:17] Production.ERROR: pbx CDR StartTime 2025-04-21 23:17:04 - End Time 2025-04-22 02:17:04 [2025-04-22 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961822', 'tblTempUsageDetail_20' ) start [2025-04-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961822', 'tblTempUsageDetail_20' ) end [2025-04-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961822', 'tblTempVendorCDR_20' ) start [2025-04-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961822', 'tblTempVendorCDR_20' ) end [2025-04-22 02:17:17] Production.INFO: ProcessCDR(1,14961822,1,1,2) [2025-04-22 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961822', 'tblTempUsageDetail_20' ) start [2025-04-22 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961822', 'tblTempUsageDetail_20' ) end [2025-04-22 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:17:22] Production.INFO: ==11565== Releasing lock... [2025-04-22 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:17:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:18:05 [end_date_ymd] => 2025-04-22 02:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:18:05' and `end` < '2025-04-22 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-04-22 02:18:18] Production.INFO: count ==787 [2025-04-22 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:18:05 - End Time 2025-04-22 02:18:05 [2025-04-22 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961827', 'tblTempUsageDetail_20' ) start [2025-04-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961827', 'tblTempUsageDetail_20' ) end [2025-04-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961827', 'tblTempVendorCDR_20' ) start [2025-04-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961827', 'tblTempVendorCDR_20' ) end [2025-04-22 02:18:18] Production.INFO: ProcessCDR(1,14961827,1,1,2) [2025-04-22 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961827', 'tblTempUsageDetail_20' ) start [2025-04-22 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961827', 'tblTempUsageDetail_20' ) end [2025-04-22 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:18:21] Production.INFO: ==11644== Releasing lock... [2025-04-22 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:18:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:19:05 [end_date_ymd] => 2025-04-22 02:19:05 [RateCDR] => 1 ) [2025-04-22 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:19:05' and `end` < '2025-04-22 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:19:17] Production.INFO: count ==787 [2025-04-22 02:19:17] Production.ERROR: pbx CDR StartTime 2025-04-21 23:19:05 - End Time 2025-04-22 02:19:05 [2025-04-22 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961832', 'tblTempUsageDetail_20' ) start [2025-04-22 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961832', 'tblTempUsageDetail_20' ) end [2025-04-22 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961832', 'tblTempVendorCDR_20' ) start [2025-04-22 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961832', 'tblTempVendorCDR_20' ) end [2025-04-22 02:19:18] Production.INFO: ProcessCDR(1,14961832,1,1,2) [2025-04-22 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961832', 'tblTempUsageDetail_20' ) start [2025-04-22 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961832', 'tblTempUsageDetail_20' ) end [2025-04-22 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:19:21] Production.INFO: ==11717== Releasing lock... [2025-04-22 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:19:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:20:06 [end_date_ymd] => 2025-04-22 02:20:06 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:20:06' and `end` < '2025-04-22 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-04-22 02:20:19] Production.INFO: count ==781 [2025-04-22 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-21 23:20:06 - End Time 2025-04-22 02:20:06 [2025-04-22 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961838', 'tblTempUsageDetail_20' ) start [2025-04-22 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961838', 'tblTempUsageDetail_20' ) end [2025-04-22 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961838', 'tblTempVendorCDR_20' ) start [2025-04-22 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961838', 'tblTempVendorCDR_20' ) end [2025-04-22 02:20:19] Production.INFO: ProcessCDR(1,14961838,1,1,2) [2025-04-22 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961838', 'tblTempUsageDetail_20' ) start [2025-04-22 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961838', 'tblTempUsageDetail_20' ) end [2025-04-22 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:20:22] Production.INFO: ==11793== Releasing lock... [2025-04-22 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:21:05 [end_date_ymd] => 2025-04-22 02:21:05 [RateCDR] => 1 ) [2025-04-22 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:21:05' and `end` < '2025-04-22 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:21:18] Production.INFO: count ==778 [2025-04-22 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:21:05 - End Time 2025-04-22 02:21:05 [2025-04-22 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961843', 'tblTempUsageDetail_20' ) start [2025-04-22 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961843', 'tblTempUsageDetail_20' ) end [2025-04-22 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961843', 'tblTempVendorCDR_20' ) start [2025-04-22 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961843', 'tblTempVendorCDR_20' ) end [2025-04-22 02:21:18] Production.INFO: ProcessCDR(1,14961843,1,1,2) [2025-04-22 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961843', 'tblTempUsageDetail_20' ) start [2025-04-22 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961843', 'tblTempUsageDetail_20' ) end [2025-04-22 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:21:22] Production.INFO: ==11870== Releasing lock... [2025-04-22 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:21:22] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:22:05 [end_date_ymd] => 2025-04-22 02:22:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:22:05' and `end` < '2025-04-22 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-04-22 02:22:18] Production.INFO: count ==776 [2025-04-22 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:22:05 - End Time 2025-04-22 02:22:05 [2025-04-22 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961848', 'tblTempUsageDetail_20' ) start [2025-04-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961848', 'tblTempUsageDetail_20' ) end [2025-04-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961848', 'tblTempVendorCDR_20' ) start [2025-04-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961848', 'tblTempVendorCDR_20' ) end [2025-04-22 02:22:18] Production.INFO: ProcessCDR(1,14961848,1,1,2) [2025-04-22 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961848', 'tblTempUsageDetail_20' ) start [2025-04-22 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961848', 'tblTempUsageDetail_20' ) end [2025-04-22 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:22:21] Production.INFO: ==11982== Releasing lock... [2025-04-22 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:22:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:23:05 [end_date_ymd] => 2025-04-22 02:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:23:05' and `end` < '2025-04-22 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-04-22 02:23:18] Production.INFO: count ==777 [2025-04-22 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:23:05 - End Time 2025-04-22 02:23:05 [2025-04-22 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961853', 'tblTempUsageDetail_20' ) start [2025-04-22 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961853', 'tblTempUsageDetail_20' ) end [2025-04-22 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961853', 'tblTempVendorCDR_20' ) start [2025-04-22 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961853', 'tblTempVendorCDR_20' ) end [2025-04-22 02:23:18] Production.INFO: ProcessCDR(1,14961853,1,1,2) [2025-04-22 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961853', 'tblTempUsageDetail_20' ) start [2025-04-22 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961853', 'tblTempUsageDetail_20' ) end [2025-04-22 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:23:21] Production.INFO: ==12052== Releasing lock... [2025-04-22 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:23:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:24:05 [end_date_ymd] => 2025-04-22 02:24:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:24:05' and `end` < '2025-04-22 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-04-22 02:24:18] Production.INFO: count ==775 [2025-04-22 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:24:05 - End Time 2025-04-22 02:24:05 [2025-04-22 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961858', 'tblTempUsageDetail_20' ) start [2025-04-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961858', 'tblTempUsageDetail_20' ) end [2025-04-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961858', 'tblTempVendorCDR_20' ) start [2025-04-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961858', 'tblTempVendorCDR_20' ) end [2025-04-22 02:24:18] Production.INFO: ProcessCDR(1,14961858,1,1,2) [2025-04-22 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961858', 'tblTempUsageDetail_20' ) start [2025-04-22 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961858', 'tblTempUsageDetail_20' ) end [2025-04-22 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:24:21] Production.INFO: ==12128== Releasing lock... [2025-04-22 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:24:21] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:25:05 [end_date_ymd] => 2025-04-22 02:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:25:05' and `end` < '2025-04-22 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-04-22 02:25:18] Production.INFO: count ==772 [2025-04-22 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:25:05 - End Time 2025-04-22 02:25:05 [2025-04-22 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961863', 'tblTempUsageDetail_20' ) start [2025-04-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961863', 'tblTempUsageDetail_20' ) end [2025-04-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961863', 'tblTempVendorCDR_20' ) start [2025-04-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961863', 'tblTempVendorCDR_20' ) end [2025-04-22 02:25:18] Production.INFO: ProcessCDR(1,14961863,1,1,2) [2025-04-22 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961863', 'tblTempUsageDetail_20' ) start [2025-04-22 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961863', 'tblTempUsageDetail_20' ) end [2025-04-22 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:25:22] Production.INFO: ==12204== Releasing lock... [2025-04-22 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:25:22] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:26:05 [end_date_ymd] => 2025-04-22 02:26:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:26:05' and `end` < '2025-04-22 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-04-22 02:26:18] Production.INFO: count ==769 [2025-04-22 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:26:05 - End Time 2025-04-22 02:26:05 [2025-04-22 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961868', 'tblTempUsageDetail_20' ) start [2025-04-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961868', 'tblTempUsageDetail_20' ) end [2025-04-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961868', 'tblTempVendorCDR_20' ) start [2025-04-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961868', 'tblTempVendorCDR_20' ) end [2025-04-22 02:26:18] Production.INFO: ProcessCDR(1,14961868,1,1,2) [2025-04-22 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961868', 'tblTempUsageDetail_20' ) start [2025-04-22 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961868', 'tblTempUsageDetail_20' ) end [2025-04-22 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:26:21] Production.INFO: ==12276== Releasing lock... [2025-04-22 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:26:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:27:04 [end_date_ymd] => 2025-04-22 02:27:04 [RateCDR] => 1 ) [2025-04-22 02:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:27:04' and `end` < '2025-04-22 02:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:27:17] Production.INFO: count ==765 [2025-04-22 02:27:17] Production.ERROR: pbx CDR StartTime 2025-04-21 23:27:04 - End Time 2025-04-22 02:27:04 [2025-04-22 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961873', 'tblTempUsageDetail_20' ) start [2025-04-22 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961873', 'tblTempUsageDetail_20' ) end [2025-04-22 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961873', 'tblTempVendorCDR_20' ) start [2025-04-22 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961873', 'tblTempVendorCDR_20' ) end [2025-04-22 02:27:17] Production.INFO: ProcessCDR(1,14961873,1,1,2) [2025-04-22 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961873', 'tblTempUsageDetail_20' ) start [2025-04-22 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961873', 'tblTempUsageDetail_20' ) end [2025-04-22 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:27:21] Production.INFO: ==12356== Releasing lock... [2025-04-22 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:27:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:28:05 [end_date_ymd] => 2025-04-22 02:28:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:28:05' and `end` < '2025-04-22 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-04-22 02:28:18] Production.INFO: count ==762 [2025-04-22 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:28:05 - End Time 2025-04-22 02:28:05 [2025-04-22 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961878', 'tblTempUsageDetail_20' ) start [2025-04-22 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961878', 'tblTempUsageDetail_20' ) end [2025-04-22 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961878', 'tblTempVendorCDR_20' ) start [2025-04-22 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961878', 'tblTempVendorCDR_20' ) end [2025-04-22 02:28:18] Production.INFO: ProcessCDR(1,14961878,1,1,2) [2025-04-22 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961878', 'tblTempUsageDetail_20' ) start [2025-04-22 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961878', 'tblTempUsageDetail_20' ) end [2025-04-22 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:28:21] Production.INFO: ==12428== Releasing lock... [2025-04-22 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:28:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:29:05 [end_date_ymd] => 2025-04-22 02:29:05 [RateCDR] => 1 ) [2025-04-22 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:29:05' and `end` < '2025-04-22 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:29:17] Production.INFO: count ==763 [2025-04-22 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:29:05 - End Time 2025-04-22 02:29:05 [2025-04-22 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961883', 'tblTempUsageDetail_20' ) start [2025-04-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961883', 'tblTempUsageDetail_20' ) end [2025-04-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961883', 'tblTempVendorCDR_20' ) start [2025-04-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961883', 'tblTempVendorCDR_20' ) end [2025-04-22 02:29:18] Production.INFO: ProcessCDR(1,14961883,1,1,2) [2025-04-22 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961883', 'tblTempUsageDetail_20' ) start [2025-04-22 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961883', 'tblTempUsageDetail_20' ) end [2025-04-22 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:29:21] Production.INFO: ==12506== Releasing lock... [2025-04-22 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:29:21] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:30:05 [end_date_ymd] => 2025-04-22 02:30:05 [RateCDR] => 1 ) [2025-04-22 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:30:05' and `end` < '2025-04-22 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:30:18] Production.INFO: count ==762 [2025-04-22 02:30:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:30:05 - End Time 2025-04-22 02:30:05 [2025-04-22 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961888', 'tblTempUsageDetail_20' ) start [2025-04-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961888', 'tblTempUsageDetail_20' ) end [2025-04-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961888', 'tblTempVendorCDR_20' ) start [2025-04-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961888', 'tblTempVendorCDR_20' ) end [2025-04-22 02:30:18] Production.INFO: ProcessCDR(1,14961888,1,1,2) [2025-04-22 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961888', 'tblTempUsageDetail_20' ) start [2025-04-22 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961888', 'tblTempUsageDetail_20' ) end [2025-04-22 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:30:21] Production.INFO: ==12584== Releasing lock... [2025-04-22 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:30:21] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:31:05 [end_date_ymd] => 2025-04-22 02:31:05 [RateCDR] => 1 ) [2025-04-22 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:31:05' and `end` < '2025-04-22 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:31:17] Production.INFO: count ==762 [2025-04-22 02:31:17] Production.ERROR: pbx CDR StartTime 2025-04-21 23:31:05 - End Time 2025-04-22 02:31:05 [2025-04-22 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961894', 'tblTempUsageDetail_20' ) start [2025-04-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961894', 'tblTempUsageDetail_20' ) end [2025-04-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961894', 'tblTempVendorCDR_20' ) start [2025-04-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961894', 'tblTempVendorCDR_20' ) end [2025-04-22 02:31:18] Production.INFO: ProcessCDR(1,14961894,1,1,2) [2025-04-22 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961894', 'tblTempUsageDetail_20' ) start [2025-04-22 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961894', 'tblTempUsageDetail_20' ) end [2025-04-22 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:31:21] Production.INFO: ==12657== Releasing lock... [2025-04-22 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:31:21] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:32:05 [end_date_ymd] => 2025-04-22 02:32:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:32:05' and `end` < '2025-04-22 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-04-22 02:32:18] Production.INFO: count ==761 [2025-04-22 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:32:05 - End Time 2025-04-22 02:32:05 [2025-04-22 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961899', 'tblTempUsageDetail_20' ) start [2025-04-22 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961899', 'tblTempUsageDetail_20' ) end [2025-04-22 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961899', 'tblTempVendorCDR_20' ) start [2025-04-22 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961899', 'tblTempVendorCDR_20' ) end [2025-04-22 02:32:18] Production.INFO: ProcessCDR(1,14961899,1,1,2) [2025-04-22 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961899', 'tblTempUsageDetail_20' ) start [2025-04-22 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961899', 'tblTempUsageDetail_20' ) end [2025-04-22 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:32:21] Production.INFO: ==12731== Releasing lock... [2025-04-22 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:32:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:33:05 [end_date_ymd] => 2025-04-22 02:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:33:05' and `end` < '2025-04-22 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-04-22 02:33:18] Production.INFO: count ==760 [2025-04-22 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:33:05 - End Time 2025-04-22 02:33:05 [2025-04-22 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961904', 'tblTempUsageDetail_20' ) start [2025-04-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961904', 'tblTempUsageDetail_20' ) end [2025-04-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961904', 'tblTempVendorCDR_20' ) start [2025-04-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961904', 'tblTempVendorCDR_20' ) end [2025-04-22 02:33:18] Production.INFO: ProcessCDR(1,14961904,1,1,2) [2025-04-22 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961904', 'tblTempUsageDetail_20' ) start [2025-04-22 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961904', 'tblTempUsageDetail_20' ) end [2025-04-22 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:33:21] Production.INFO: ==12805== Releasing lock... [2025-04-22 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:33:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 02:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:34:04 [end_date_ymd] => 2025-04-22 02:34:04 [RateCDR] => 1 ) [2025-04-22 02:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:34:04' and `end` < '2025-04-22 02:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:34:17] Production.INFO: count ==758 [2025-04-22 02:34:17] Production.ERROR: pbx CDR StartTime 2025-04-21 23:34:04 - End Time 2025-04-22 02:34:04 [2025-04-22 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961908', 'tblTempUsageDetail_20' ) start [2025-04-22 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961908', 'tblTempUsageDetail_20' ) end [2025-04-22 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961908', 'tblTempVendorCDR_20' ) start [2025-04-22 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961908', 'tblTempVendorCDR_20' ) end [2025-04-22 02:34:17] Production.INFO: ProcessCDR(1,14961908,1,1,2) [2025-04-22 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961908', 'tblTempUsageDetail_20' ) start [2025-04-22 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961908', 'tblTempUsageDetail_20' ) end [2025-04-22 02:34:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:34:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:34:20] Production.INFO: ==12879== Releasing lock... [2025-04-22 02:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:34:20] Production.INFO: 34.75 MB #Memory Used# [2025-04-22 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:35:05 [end_date_ymd] => 2025-04-22 02:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:35:05' and `end` < '2025-04-22 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-04-22 02:35:18] Production.INFO: count ==756 [2025-04-22 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:35:05 - End Time 2025-04-22 02:35:05 [2025-04-22 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961914', 'tblTempUsageDetail_20' ) start [2025-04-22 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961914', 'tblTempUsageDetail_20' ) end [2025-04-22 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961914', 'tblTempVendorCDR_20' ) start [2025-04-22 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961914', 'tblTempVendorCDR_20' ) end [2025-04-22 02:35:18] Production.INFO: ProcessCDR(1,14961914,1,1,2) [2025-04-22 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961914', 'tblTempUsageDetail_20' ) start [2025-04-22 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961914', 'tblTempUsageDetail_20' ) end [2025-04-22 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:35:22] Production.INFO: ==12949== Releasing lock... [2025-04-22 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:35:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:36:05 [end_date_ymd] => 2025-04-22 02:36:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:36:05' and `end` < '2025-04-22 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-04-22 02:36:17] Production.INFO: count ==756 [2025-04-22 02:36:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:36:05 - End Time 2025-04-22 02:36:05 [2025-04-22 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961919', 'tblTempUsageDetail_20' ) start [2025-04-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961919', 'tblTempUsageDetail_20' ) end [2025-04-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961919', 'tblTempVendorCDR_20' ) start [2025-04-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961919', 'tblTempVendorCDR_20' ) end [2025-04-22 02:36:18] Production.INFO: ProcessCDR(1,14961919,1,1,2) [2025-04-22 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961919', 'tblTempUsageDetail_20' ) start [2025-04-22 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961919', 'tblTempUsageDetail_20' ) end [2025-04-22 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:36:21] Production.INFO: ==13022== Releasing lock... [2025-04-22 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:36:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:37:05 [end_date_ymd] => 2025-04-22 02:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:37:05' and `end` < '2025-04-22 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-04-22 02:37:18] Production.INFO: count ==755 [2025-04-22 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:37:05 - End Time 2025-04-22 02:37:05 [2025-04-22 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961924', 'tblTempUsageDetail_20' ) start [2025-04-22 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961924', 'tblTempUsageDetail_20' ) end [2025-04-22 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961924', 'tblTempVendorCDR_20' ) start [2025-04-22 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961924', 'tblTempVendorCDR_20' ) end [2025-04-22 02:37:18] Production.INFO: ProcessCDR(1,14961924,1,1,2) [2025-04-22 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961924', 'tblTempUsageDetail_20' ) start [2025-04-22 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961924', 'tblTempUsageDetail_20' ) end [2025-04-22 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:37:21] Production.INFO: ==13135== Releasing lock... [2025-04-22 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:37:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:38:05 [end_date_ymd] => 2025-04-22 02:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:38:05' and `end` < '2025-04-22 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-04-22 02:38:17] Production.INFO: count ==752 [2025-04-22 02:38:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:38:05 - End Time 2025-04-22 02:38:05 [2025-04-22 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961929', 'tblTempUsageDetail_20' ) start [2025-04-22 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961929', 'tblTempUsageDetail_20' ) end [2025-04-22 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961929', 'tblTempVendorCDR_20' ) start [2025-04-22 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961929', 'tblTempVendorCDR_20' ) end [2025-04-22 02:38:18] Production.INFO: ProcessCDR(1,14961929,1,1,2) [2025-04-22 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961929', 'tblTempUsageDetail_20' ) start [2025-04-22 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961929', 'tblTempUsageDetail_20' ) end [2025-04-22 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:38:21] Production.INFO: ==13210== Releasing lock... [2025-04-22 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:38:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:39:05 [end_date_ymd] => 2025-04-22 02:39:05 [RateCDR] => 1 ) [2025-04-22 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:39:05' and `end` < '2025-04-22 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:39:18] Production.INFO: count ==748 [2025-04-22 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:39:05 - End Time 2025-04-22 02:39:05 [2025-04-22 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961934', 'tblTempUsageDetail_20' ) start [2025-04-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961934', 'tblTempUsageDetail_20' ) end [2025-04-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961934', 'tblTempVendorCDR_20' ) start [2025-04-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961934', 'tblTempVendorCDR_20' ) end [2025-04-22 02:39:18] Production.INFO: ProcessCDR(1,14961934,1,1,2) [2025-04-22 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961934', 'tblTempUsageDetail_20' ) start [2025-04-22 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961934', 'tblTempUsageDetail_20' ) end [2025-04-22 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:39:21] Production.INFO: ==13283== Releasing lock... [2025-04-22 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:40:07 [end_date_ymd] => 2025-04-22 02:40:07 [RateCDR] => 1 ) [2025-04-22 02:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:40:07' and `end` < '2025-04-22 02:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:40:19] Production.INFO: count ==758 [2025-04-22 02:40:20] Production.ERROR: pbx CDR StartTime 2025-04-21 23:40:07 - End Time 2025-04-22 02:40:07 [2025-04-22 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961940', 'tblTempUsageDetail_20' ) start [2025-04-22 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961940', 'tblTempUsageDetail_20' ) end [2025-04-22 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961940', 'tblTempVendorCDR_20' ) start [2025-04-22 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961940', 'tblTempVendorCDR_20' ) end [2025-04-22 02:40:20] Production.INFO: ProcessCDR(1,14961940,1,1,2) [2025-04-22 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961940', 'tblTempUsageDetail_20' ) start [2025-04-22 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961940', 'tblTempUsageDetail_20' ) end [2025-04-22 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:40:23] Production.INFO: ==13365== Releasing lock... [2025-04-22 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:41:05 [end_date_ymd] => 2025-04-22 02:41:05 [RateCDR] => 1 ) [2025-04-22 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:41:05' and `end` < '2025-04-22 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:41:18] Production.INFO: count ==758 [2025-04-22 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:41:05 - End Time 2025-04-22 02:41:05 [2025-04-22 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961945', 'tblTempUsageDetail_20' ) start [2025-04-22 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961945', 'tblTempUsageDetail_20' ) end [2025-04-22 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961945', 'tblTempVendorCDR_20' ) start [2025-04-22 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961945', 'tblTempVendorCDR_20' ) end [2025-04-22 02:41:18] Production.INFO: ProcessCDR(1,14961945,1,1,2) [2025-04-22 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961945', 'tblTempUsageDetail_20' ) start [2025-04-22 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961945', 'tblTempUsageDetail_20' ) end [2025-04-22 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:41:21] Production.INFO: ==13439== Releasing lock... [2025-04-22 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:41:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:42:05 [end_date_ymd] => 2025-04-22 02:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:42:05' and `end` < '2025-04-22 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-04-22 02:42:18] Production.INFO: count ==757 [2025-04-22 02:42:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:42:05 - End Time 2025-04-22 02:42:05 [2025-04-22 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961950', 'tblTempUsageDetail_20' ) start [2025-04-22 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961950', 'tblTempUsageDetail_20' ) end [2025-04-22 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961950', 'tblTempVendorCDR_20' ) start [2025-04-22 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961950', 'tblTempVendorCDR_20' ) end [2025-04-22 02:42:18] Production.INFO: ProcessCDR(1,14961950,1,1,2) [2025-04-22 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961950', 'tblTempUsageDetail_20' ) start [2025-04-22 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961950', 'tblTempUsageDetail_20' ) end [2025-04-22 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:42:21] Production.INFO: ==13512== Releasing lock... [2025-04-22 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:42:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:43:05 [end_date_ymd] => 2025-04-22 02:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:43:05' and `end` < '2025-04-22 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-04-22 02:43:18] Production.INFO: count ==754 [2025-04-22 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:43:05 - End Time 2025-04-22 02:43:05 [2025-04-22 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961955', 'tblTempUsageDetail_20' ) start [2025-04-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961955', 'tblTempUsageDetail_20' ) end [2025-04-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961955', 'tblTempVendorCDR_20' ) start [2025-04-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961955', 'tblTempVendorCDR_20' ) end [2025-04-22 02:43:18] Production.INFO: ProcessCDR(1,14961955,1,1,2) [2025-04-22 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961955', 'tblTempUsageDetail_20' ) start [2025-04-22 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961955', 'tblTempUsageDetail_20' ) end [2025-04-22 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:43:22] Production.INFO: ==13588== Releasing lock... [2025-04-22 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:44:06 [end_date_ymd] => 2025-04-22 02:44:06 [RateCDR] => 1 ) [2025-04-22 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:44:06' and `end` < '2025-04-22 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:44:18] Production.INFO: count ==754 [2025-04-22 02:44:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:44:06 - End Time 2025-04-22 02:44:06 [2025-04-22 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961960', 'tblTempUsageDetail_20' ) start [2025-04-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961960', 'tblTempUsageDetail_20' ) end [2025-04-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961960', 'tblTempVendorCDR_20' ) start [2025-04-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961960', 'tblTempVendorCDR_20' ) end [2025-04-22 02:44:18] Production.INFO: ProcessCDR(1,14961960,1,1,2) [2025-04-22 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961960', 'tblTempUsageDetail_20' ) start [2025-04-22 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961960', 'tblTempUsageDetail_20' ) end [2025-04-22 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:44:22] Production.INFO: ==13663== Releasing lock... [2025-04-22 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:45:05 [end_date_ymd] => 2025-04-22 02:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:45:05' and `end` < '2025-04-22 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-04-22 02:45:17] Production.INFO: count ==753 [2025-04-22 02:45:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:45:05 - End Time 2025-04-22 02:45:05 [2025-04-22 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961965', 'tblTempUsageDetail_20' ) start [2025-04-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961965', 'tblTempUsageDetail_20' ) end [2025-04-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961965', 'tblTempVendorCDR_20' ) start [2025-04-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961965', 'tblTempVendorCDR_20' ) end [2025-04-22 02:45:18] Production.INFO: ProcessCDR(1,14961965,1,1,2) [2025-04-22 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961965', 'tblTempUsageDetail_20' ) start [2025-04-22 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961965', 'tblTempUsageDetail_20' ) end [2025-04-22 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:45:21] Production.INFO: ==13735== Releasing lock... [2025-04-22 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:45:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-22 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:46:05 [end_date_ymd] => 2025-04-22 02:46:05 [RateCDR] => 1 ) [2025-04-22 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:46:05' and `end` < '2025-04-22 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:46:18] Production.INFO: count ==752 [2025-04-22 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:46:05 - End Time 2025-04-22 02:46:05 [2025-04-22 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961970', 'tblTempUsageDetail_20' ) start [2025-04-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961970', 'tblTempUsageDetail_20' ) end [2025-04-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961970', 'tblTempVendorCDR_20' ) start [2025-04-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961970', 'tblTempVendorCDR_20' ) end [2025-04-22 02:46:18] Production.INFO: ProcessCDR(1,14961970,1,1,2) [2025-04-22 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961970', 'tblTempUsageDetail_20' ) start [2025-04-22 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961970', 'tblTempUsageDetail_20' ) end [2025-04-22 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:46:21] Production.INFO: ==13814== Releasing lock... [2025-04-22 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:46:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:47:05 [end_date_ymd] => 2025-04-22 02:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:47:05' and `end` < '2025-04-22 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-04-22 02:47:18] Production.INFO: count ==752 [2025-04-22 02:47:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:47:05 - End Time 2025-04-22 02:47:05 [2025-04-22 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961975', 'tblTempUsageDetail_20' ) start [2025-04-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961975', 'tblTempUsageDetail_20' ) end [2025-04-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961975', 'tblTempVendorCDR_20' ) start [2025-04-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961975', 'tblTempVendorCDR_20' ) end [2025-04-22 02:47:18] Production.INFO: ProcessCDR(1,14961975,1,1,2) [2025-04-22 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961975', 'tblTempUsageDetail_20' ) start [2025-04-22 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961975', 'tblTempUsageDetail_20' ) end [2025-04-22 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:47:22] Production.INFO: ==13885== Releasing lock... [2025-04-22 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:47:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:48:05 [end_date_ymd] => 2025-04-22 02:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:48:05' and `end` < '2025-04-22 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-04-22 02:48:18] Production.INFO: count ==753 [2025-04-22 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:48:05 - End Time 2025-04-22 02:48:05 [2025-04-22 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961980', 'tblTempUsageDetail_20' ) start [2025-04-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961980', 'tblTempUsageDetail_20' ) end [2025-04-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961980', 'tblTempVendorCDR_20' ) start [2025-04-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961980', 'tblTempVendorCDR_20' ) end [2025-04-22 02:48:18] Production.INFO: ProcessCDR(1,14961980,1,1,2) [2025-04-22 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961980', 'tblTempUsageDetail_20' ) start [2025-04-22 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961980', 'tblTempUsageDetail_20' ) end [2025-04-22 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:48:22] Production.INFO: ==13957== Releasing lock... [2025-04-22 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:48:22] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:49:04 [end_date_ymd] => 2025-04-22 02:49:04 [RateCDR] => 1 ) [2025-04-22 02:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:49:04' and `end` < '2025-04-22 02:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:49:17] Production.INFO: count ==753 [2025-04-22 02:49:17] Production.ERROR: pbx CDR StartTime 2025-04-21 23:49:04 - End Time 2025-04-22 02:49:04 [2025-04-22 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961983', 'tblTempUsageDetail_20' ) start [2025-04-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961983', 'tblTempUsageDetail_20' ) end [2025-04-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961983', 'tblTempVendorCDR_20' ) start [2025-04-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961983', 'tblTempVendorCDR_20' ) end [2025-04-22 02:49:17] Production.INFO: ProcessCDR(1,14961983,1,1,2) [2025-04-22 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961983', 'tblTempUsageDetail_20' ) start [2025-04-22 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961983', 'tblTempUsageDetail_20' ) end [2025-04-22 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:49:20] Production.INFO: ==14026== Releasing lock... [2025-04-22 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:49:20] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:50:06 [end_date_ymd] => 2025-04-22 02:50:06 [RateCDR] => 1 ) [2025-04-22 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:50:06' and `end` < '2025-04-22 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-04-22 02:50:19] Production.INFO: count ==753 [2025-04-22 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-21 23:50:06 - End Time 2025-04-22 02:50:06 [2025-04-22 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961991', 'tblTempUsageDetail_20' ) start [2025-04-22 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961991', 'tblTempUsageDetail_20' ) end [2025-04-22 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961991', 'tblTempVendorCDR_20' ) start [2025-04-22 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961991', 'tblTempVendorCDR_20' ) end [2025-04-22 02:50:19] Production.INFO: ProcessCDR(1,14961991,1,1,2) [2025-04-22 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961991', 'tblTempUsageDetail_20' ) start [2025-04-22 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961991', 'tblTempUsageDetail_20' ) end [2025-04-22 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:50:23] Production.INFO: ==14102== Releasing lock... [2025-04-22 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:50:23] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:51:06 [end_date_ymd] => 2025-04-22 02:51:06 [RateCDR] => 1 ) [2025-04-22 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:51:06' and `end` < '2025-04-22 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:51:18] Production.INFO: count ==752 [2025-04-22 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:51:06 - End Time 2025-04-22 02:51:06 [2025-04-22 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961996', 'tblTempUsageDetail_20' ) start [2025-04-22 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14961996', 'tblTempUsageDetail_20' ) end [2025-04-22 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961996', 'tblTempVendorCDR_20' ) start [2025-04-22 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14961996', 'tblTempVendorCDR_20' ) end [2025-04-22 02:51:19] Production.INFO: ProcessCDR(1,14961996,1,1,2) [2025-04-22 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14961996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14961996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14961996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14961996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961996', 'tblTempUsageDetail_20' ) start [2025-04-22 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14961996', 'tblTempUsageDetail_20' ) end [2025-04-22 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:51:22] Production.INFO: ==14177== Releasing lock... [2025-04-22 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:52:05 [end_date_ymd] => 2025-04-22 02:52:05 [RateCDR] => 1 ) [2025-04-22 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:52:05' and `end` < '2025-04-22 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:52:18] Production.INFO: count ==752 [2025-04-22 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:52:05 - End Time 2025-04-22 02:52:05 [2025-04-22 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962001', 'tblTempUsageDetail_20' ) start [2025-04-22 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962001', 'tblTempUsageDetail_20' ) end [2025-04-22 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962001', 'tblTempVendorCDR_20' ) start [2025-04-22 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962001', 'tblTempVendorCDR_20' ) end [2025-04-22 02:52:18] Production.INFO: ProcessCDR(1,14962001,1,1,2) [2025-04-22 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962001', 'tblTempUsageDetail_20' ) start [2025-04-22 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962001', 'tblTempUsageDetail_20' ) end [2025-04-22 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:52:21] Production.INFO: ==14251== Releasing lock... [2025-04-22 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:53:06 [end_date_ymd] => 2025-04-22 02:53:06 [RateCDR] => 1 ) [2025-04-22 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:53:06' and `end` < '2025-04-22 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:53:18] Production.INFO: count ==750 [2025-04-22 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:53:06 - End Time 2025-04-22 02:53:06 [2025-04-22 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962006', 'tblTempUsageDetail_20' ) start [2025-04-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962006', 'tblTempUsageDetail_20' ) end [2025-04-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962006', 'tblTempVendorCDR_20' ) start [2025-04-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962006', 'tblTempVendorCDR_20' ) end [2025-04-22 02:53:18] Production.INFO: ProcessCDR(1,14962006,1,1,2) [2025-04-22 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962006', 'tblTempUsageDetail_20' ) start [2025-04-22 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962006', 'tblTempUsageDetail_20' ) end [2025-04-22 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:53:22] Production.INFO: ==14364== Releasing lock... [2025-04-22 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:53:22] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:54:06 [end_date_ymd] => 2025-04-22 02:54:06 [RateCDR] => 1 ) [2025-04-22 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:54:06' and `end` < '2025-04-22 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:54:19] Production.INFO: count ==750 [2025-04-22 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-21 23:54:06 - End Time 2025-04-22 02:54:06 [2025-04-22 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962011', 'tblTempUsageDetail_20' ) start [2025-04-22 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962011', 'tblTempUsageDetail_20' ) end [2025-04-22 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962011', 'tblTempVendorCDR_20' ) start [2025-04-22 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962011', 'tblTempVendorCDR_20' ) end [2025-04-22 02:54:19] Production.INFO: ProcessCDR(1,14962011,1,1,2) [2025-04-22 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962011', 'tblTempUsageDetail_20' ) start [2025-04-22 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962011', 'tblTempUsageDetail_20' ) end [2025-04-22 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:54:22] Production.INFO: ==14439== Releasing lock... [2025-04-22 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:54:22] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:55:05 [end_date_ymd] => 2025-04-22 02:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:55:05' and `end` < '2025-04-22 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-04-22 02:55:18] Production.INFO: count ==750 [2025-04-22 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:55:05 - End Time 2025-04-22 02:55:05 [2025-04-22 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962016', 'tblTempUsageDetail_20' ) start [2025-04-22 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962016', 'tblTempUsageDetail_20' ) end [2025-04-22 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962016', 'tblTempVendorCDR_20' ) start [2025-04-22 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962016', 'tblTempVendorCDR_20' ) end [2025-04-22 02:55:18] Production.INFO: ProcessCDR(1,14962016,1,1,2) [2025-04-22 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962016', 'tblTempUsageDetail_20' ) start [2025-04-22 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962016', 'tblTempUsageDetail_20' ) end [2025-04-22 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:55:21] Production.INFO: ==14511== Releasing lock... [2025-04-22 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:55:21] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:56:05 [end_date_ymd] => 2025-04-22 02:56:05 [RateCDR] => 1 ) [2025-04-22 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:56:05' and `end` < '2025-04-22 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:56:18] Production.INFO: count ==750 [2025-04-22 02:56:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:56:05 - End Time 2025-04-22 02:56:05 [2025-04-22 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962021', 'tblTempUsageDetail_20' ) start [2025-04-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962021', 'tblTempUsageDetail_20' ) end [2025-04-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962021', 'tblTempVendorCDR_20' ) start [2025-04-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962021', 'tblTempVendorCDR_20' ) end [2025-04-22 02:56:18] Production.INFO: ProcessCDR(1,14962021,1,1,2) [2025-04-22 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962021', 'tblTempUsageDetail_20' ) start [2025-04-22 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962021', 'tblTempUsageDetail_20' ) end [2025-04-22 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:56:22] Production.INFO: ==14591== Releasing lock... [2025-04-22 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:56:22] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:57:05 [end_date_ymd] => 2025-04-22 02:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:57:05' and `end` < '2025-04-22 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-04-22 02:57:17] Production.INFO: count ==750 [2025-04-22 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:57:05 - End Time 2025-04-22 02:57:05 [2025-04-22 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962026', 'tblTempUsageDetail_20' ) start [2025-04-22 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962026', 'tblTempUsageDetail_20' ) end [2025-04-22 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962026', 'tblTempVendorCDR_20' ) start [2025-04-22 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962026', 'tblTempVendorCDR_20' ) end [2025-04-22 02:57:18] Production.INFO: ProcessCDR(1,14962026,1,1,2) [2025-04-22 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962026', 'tblTempUsageDetail_20' ) start [2025-04-22 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962026', 'tblTempUsageDetail_20' ) end [2025-04-22 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:57:21] Production.INFO: ==14667== Releasing lock... [2025-04-22 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:57:21] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:58:05 [end_date_ymd] => 2025-04-22 02:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-21 23:58:05' and `end` < '2025-04-22 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-04-22 02:58:18] Production.INFO: count ==748 [2025-04-22 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-21 23:58:05 - End Time 2025-04-22 02:58:05 [2025-04-22 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962031', 'tblTempUsageDetail_20' ) start [2025-04-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962031', 'tblTempUsageDetail_20' ) end [2025-04-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962031', 'tblTempVendorCDR_20' ) start [2025-04-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962031', 'tblTempVendorCDR_20' ) end [2025-04-22 02:58:18] Production.INFO: ProcessCDR(1,14962031,1,1,2) [2025-04-22 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962031', 'tblTempUsageDetail_20' ) start [2025-04-22 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962031', 'tblTempUsageDetail_20' ) end [2025-04-22 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:58:21] Production.INFO: ==14744== Releasing lock... [2025-04-22 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:58:21] Production.INFO: 34 MB #Memory Used# [2025-04-22 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-21 23:59:06 [end_date_ymd] => 2025-04-22 02:59:06 [RateCDR] => 1 ) [2025-04-22 02:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-21 23:59:06' and `end` < '2025-04-22 02:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 02:59:19] Production.INFO: count ==747 [2025-04-22 02:59:19] Production.ERROR: pbx CDR StartTime 2025-04-21 23:59:06 - End Time 2025-04-22 02:59:06 [2025-04-22 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962036', 'tblTempUsageDetail_20' ) start [2025-04-22 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962036', 'tblTempUsageDetail_20' ) end [2025-04-22 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962036', 'tblTempVendorCDR_20' ) start [2025-04-22 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962036', 'tblTempVendorCDR_20' ) end [2025-04-22 02:59:19] Production.INFO: ProcessCDR(1,14962036,1,1,2) [2025-04-22 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962036', 'tblTempUsageDetail_20' ) start [2025-04-22 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962036', 'tblTempUsageDetail_20' ) end [2025-04-22 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 02:59:22] Production.INFO: ==14816== Releasing lock... [2025-04-22 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 02:59:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:00:05 [end_date_ymd] => 2025-04-22 03:00:05 [RateCDR] => 1 ) [2025-04-22 03: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-04-22 00:00:05' and `end` < '2025-04-22 03: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-04-22 03:00:18] Production.INFO: count ==745 [2025-04-22 03:00:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:00:05 - End Time 2025-04-22 03:00:05 [2025-04-22 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962041', 'tblTempUsageDetail_20' ) start [2025-04-22 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962041', 'tblTempUsageDetail_20' ) end [2025-04-22 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962041', 'tblTempVendorCDR_20' ) start [2025-04-22 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962041', 'tblTempVendorCDR_20' ) end [2025-04-22 03:00:18] Production.INFO: ProcessCDR(1,14962041,1,1,2) [2025-04-22 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962041', 'tblTempUsageDetail_20' ) start [2025-04-22 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962041', 'tblTempUsageDetail_20' ) end [2025-04-22 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:00:22] Production.INFO: ==14890== Releasing lock... [2025-04-22 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:00:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:01:06 [end_date_ymd] => 2025-04-22 03:01:06 [RateCDR] => 1 ) [2025-04-22 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:01:06' and `end` < '2025-04-22 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:01:18] Production.INFO: count ==735 [2025-04-22 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:01:06 - End Time 2025-04-22 03:01:06 [2025-04-22 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962047', 'tblTempUsageDetail_20' ) start [2025-04-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962047', 'tblTempUsageDetail_20' ) end [2025-04-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962047', 'tblTempVendorCDR_20' ) start [2025-04-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962047', 'tblTempVendorCDR_20' ) end [2025-04-22 03:01:18] Production.INFO: ProcessCDR(1,14962047,1,1,2) [2025-04-22 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962047', 'tblTempUsageDetail_20' ) start [2025-04-22 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962047', 'tblTempUsageDetail_20' ) end [2025-04-22 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:01:22] Production.INFO: ==14976== Releasing lock... [2025-04-22 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:01:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:02:05 [end_date_ymd] => 2025-04-22 03:02:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:02:05' and `end` < '2025-04-22 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-04-22 03:02:18] Production.INFO: count ==735 [2025-04-22 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:02:05 - End Time 2025-04-22 03:02:05 [2025-04-22 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962052', 'tblTempUsageDetail_20' ) start [2025-04-22 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962052', 'tblTempUsageDetail_20' ) end [2025-04-22 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962052', 'tblTempVendorCDR_20' ) start [2025-04-22 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962052', 'tblTempVendorCDR_20' ) end [2025-04-22 03:02:18] Production.INFO: ProcessCDR(1,14962052,1,1,2) [2025-04-22 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962052', 'tblTempUsageDetail_20' ) start [2025-04-22 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962052', 'tblTempUsageDetail_20' ) end [2025-04-22 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:02:22] Production.INFO: ==15127== Releasing lock... [2025-04-22 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:02:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:03:06 [end_date_ymd] => 2025-04-22 03:03:06 [RateCDR] => 1 ) [2025-04-22 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:03:06' and `end` < '2025-04-22 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:03:18] Production.INFO: count ==733 [2025-04-22 03:03:19] Production.ERROR: pbx CDR StartTime 2025-04-22 00:03:06 - End Time 2025-04-22 03:03:06 [2025-04-22 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962057', 'tblTempUsageDetail_20' ) start [2025-04-22 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962057', 'tblTempUsageDetail_20' ) end [2025-04-22 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962057', 'tblTempVendorCDR_20' ) start [2025-04-22 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962057', 'tblTempVendorCDR_20' ) end [2025-04-22 03:03:19] Production.INFO: ProcessCDR(1,14962057,1,1,2) [2025-04-22 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962057', 'tblTempUsageDetail_20' ) start [2025-04-22 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962057', 'tblTempUsageDetail_20' ) end [2025-04-22 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:03:22] Production.INFO: ==15198== Releasing lock... [2025-04-22 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:04:05 [end_date_ymd] => 2025-04-22 03:04:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:04:05' and `end` < '2025-04-22 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-04-22 03:04:17] Production.INFO: count ==731 [2025-04-22 03:04:17] Production.ERROR: pbx CDR StartTime 2025-04-22 00:04:05 - End Time 2025-04-22 03:04:05 [2025-04-22 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962062', 'tblTempUsageDetail_20' ) start [2025-04-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962062', 'tblTempUsageDetail_20' ) end [2025-04-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962062', 'tblTempVendorCDR_20' ) start [2025-04-22 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962062', 'tblTempVendorCDR_20' ) end [2025-04-22 03:04:18] Production.INFO: ProcessCDR(1,14962062,1,1,2) [2025-04-22 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962062', 'tblTempUsageDetail_20' ) start [2025-04-22 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962062', 'tblTempUsageDetail_20' ) end [2025-04-22 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:04:21] Production.INFO: ==15265== Releasing lock... [2025-04-22 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:04:21] Production.INFO: 34 MB #Memory Used# [2025-04-22 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:05:05 [end_date_ymd] => 2025-04-22 03:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:05:05' and `end` < '2025-04-22 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-04-22 03:05:18] Production.INFO: count ==730 [2025-04-22 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:05:05 - End Time 2025-04-22 03:05:05 [2025-04-22 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962067', 'tblTempUsageDetail_20' ) start [2025-04-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962067', 'tblTempUsageDetail_20' ) end [2025-04-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962067', 'tblTempVendorCDR_20' ) start [2025-04-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962067', 'tblTempVendorCDR_20' ) end [2025-04-22 03:05:18] Production.INFO: ProcessCDR(1,14962067,1,1,2) [2025-04-22 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962067', 'tblTempUsageDetail_20' ) start [2025-04-22 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962067', 'tblTempUsageDetail_20' ) end [2025-04-22 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:05:21] Production.INFO: ==15337== Releasing lock... [2025-04-22 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:05:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:06:05 [end_date_ymd] => 2025-04-22 03:06:05 [RateCDR] => 1 ) [2025-04-22 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:06:05' and `end` < '2025-04-22 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:06:18] Production.INFO: count ==731 [2025-04-22 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:06:05 - End Time 2025-04-22 03:06:05 [2025-04-22 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962072', 'tblTempUsageDetail_20' ) start [2025-04-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962072', 'tblTempUsageDetail_20' ) end [2025-04-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962072', 'tblTempVendorCDR_20' ) start [2025-04-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962072', 'tblTempVendorCDR_20' ) end [2025-04-22 03:06:18] Production.INFO: ProcessCDR(1,14962072,1,1,2) [2025-04-22 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962072', 'tblTempUsageDetail_20' ) start [2025-04-22 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962072', 'tblTempUsageDetail_20' ) end [2025-04-22 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:06:21] Production.INFO: ==15491== Releasing lock... [2025-04-22 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:06:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:07:05 [end_date_ymd] => 2025-04-22 03:07:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:07:05' and `end` < '2025-04-22 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-04-22 03:07:17] Production.INFO: count ==731 [2025-04-22 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:07:05 - End Time 2025-04-22 03:07:05 [2025-04-22 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962077', 'tblTempUsageDetail_20' ) start [2025-04-22 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962077', 'tblTempUsageDetail_20' ) end [2025-04-22 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962077', 'tblTempVendorCDR_20' ) start [2025-04-22 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962077', 'tblTempVendorCDR_20' ) end [2025-04-22 03:07:18] Production.INFO: ProcessCDR(1,14962077,1,1,2) [2025-04-22 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962077', 'tblTempUsageDetail_20' ) start [2025-04-22 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962077', 'tblTempUsageDetail_20' ) end [2025-04-22 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:07:21] Production.INFO: ==15560== Releasing lock... [2025-04-22 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:07:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:08:05 [end_date_ymd] => 2025-04-22 03:08:05 [RateCDR] => 1 ) [2025-04-22 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:08:05' and `end` < '2025-04-22 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:08:18] Production.INFO: count ==730 [2025-04-22 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:08:05 - End Time 2025-04-22 03:08:05 [2025-04-22 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962082', 'tblTempUsageDetail_20' ) start [2025-04-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962082', 'tblTempUsageDetail_20' ) end [2025-04-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962082', 'tblTempVendorCDR_20' ) start [2025-04-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962082', 'tblTempVendorCDR_20' ) end [2025-04-22 03:08:18] Production.INFO: ProcessCDR(1,14962082,1,1,2) [2025-04-22 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962082', 'tblTempUsageDetail_20' ) start [2025-04-22 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962082', 'tblTempUsageDetail_20' ) end [2025-04-22 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:08:22] Production.INFO: ==15668== Releasing lock... [2025-04-22 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:08:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:09:05 [end_date_ymd] => 2025-04-22 03:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:09:05' and `end` < '2025-04-22 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-04-22 03:09:18] Production.INFO: count ==728 [2025-04-22 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:09:05 - End Time 2025-04-22 03:09:05 [2025-04-22 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962087', 'tblTempUsageDetail_20' ) start [2025-04-22 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962087', 'tblTempUsageDetail_20' ) end [2025-04-22 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962087', 'tblTempVendorCDR_20' ) start [2025-04-22 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962087', 'tblTempVendorCDR_20' ) end [2025-04-22 03:09:18] Production.INFO: ProcessCDR(1,14962087,1,1,2) [2025-04-22 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962087', 'tblTempUsageDetail_20' ) start [2025-04-22 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962087', 'tblTempUsageDetail_20' ) end [2025-04-22 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:09:21] Production.INFO: ==15816== Releasing lock... [2025-04-22 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:09:21] Production.INFO: 34 MB #Memory Used# [2025-04-22 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:10:06 [end_date_ymd] => 2025-04-22 03:10:06 [RateCDR] => 1 ) [2025-04-22 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:10:06' and `end` < '2025-04-22 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:10:19] Production.INFO: count ==720 [2025-04-22 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-22 00:10:06 - End Time 2025-04-22 03:10:06 [2025-04-22 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962093', 'tblTempUsageDetail_20' ) start [2025-04-22 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962093', 'tblTempUsageDetail_20' ) end [2025-04-22 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962093', 'tblTempVendorCDR_20' ) start [2025-04-22 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962093', 'tblTempVendorCDR_20' ) end [2025-04-22 03:10:19] Production.INFO: ProcessCDR(1,14962093,1,1,2) [2025-04-22 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962093', 'tblTempUsageDetail_20' ) start [2025-04-22 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962093', 'tblTempUsageDetail_20' ) end [2025-04-22 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:10:23] Production.INFO: ==15897== Releasing lock... [2025-04-22 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:10:23] Production.INFO: 34 MB #Memory Used# [2025-04-22 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:11:05 [end_date_ymd] => 2025-04-22 03:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:11:05' and `end` < '2025-04-22 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-04-22 03:11:17] Production.INFO: count ==705 [2025-04-22 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:11:05 - End Time 2025-04-22 03:11:05 [2025-04-22 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962098', 'tblTempUsageDetail_20' ) start [2025-04-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962098', 'tblTempUsageDetail_20' ) end [2025-04-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962098', 'tblTempVendorCDR_20' ) start [2025-04-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962098', 'tblTempVendorCDR_20' ) end [2025-04-22 03:11:18] Production.INFO: ProcessCDR(1,14962098,1,1,2) [2025-04-22 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962098', 'tblTempUsageDetail_20' ) start [2025-04-22 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962098', 'tblTempUsageDetail_20' ) end [2025-04-22 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:11:21] Production.INFO: ==15970== Releasing lock... [2025-04-22 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:11:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:12:06 [end_date_ymd] => 2025-04-22 03:12:06 [RateCDR] => 1 ) [2025-04-22 03: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-04-22 00:12:06' and `end` < '2025-04-22 03: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-04-22 03:12:18] Production.INFO: count ==699 [2025-04-22 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:12:06 - End Time 2025-04-22 03:12:06 [2025-04-22 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962103', 'tblTempUsageDetail_20' ) start [2025-04-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962103', 'tblTempUsageDetail_20' ) end [2025-04-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962103', 'tblTempVendorCDR_20' ) start [2025-04-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962103', 'tblTempVendorCDR_20' ) end [2025-04-22 03:12:18] Production.INFO: ProcessCDR(1,14962103,1,1,2) [2025-04-22 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962103', 'tblTempUsageDetail_20' ) start [2025-04-22 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962103', 'tblTempUsageDetail_20' ) end [2025-04-22 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:12:22] Production.INFO: ==16040== Releasing lock... [2025-04-22 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:12:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:13:04 [end_date_ymd] => 2025-04-22 03:13:04 [RateCDR] => 1 ) [2025-04-22 03:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:13:04' and `end` < '2025-04-22 03:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:13:17] Production.INFO: count ==699 [2025-04-22 03:13:17] Production.ERROR: pbx CDR StartTime 2025-04-22 00:13:04 - End Time 2025-04-22 03:13:04 [2025-04-22 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962108', 'tblTempUsageDetail_20' ) start [2025-04-22 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962108', 'tblTempUsageDetail_20' ) end [2025-04-22 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962108', 'tblTempVendorCDR_20' ) start [2025-04-22 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962108', 'tblTempVendorCDR_20' ) end [2025-04-22 03:13:17] Production.INFO: ProcessCDR(1,14962108,1,1,2) [2025-04-22 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962108', 'tblTempUsageDetail_20' ) start [2025-04-22 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962108', 'tblTempUsageDetail_20' ) end [2025-04-22 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:13:21] Production.INFO: ==16196== Releasing lock... [2025-04-22 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:13:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:14:05 [end_date_ymd] => 2025-04-22 03:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:14:05' and `end` < '2025-04-22 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-04-22 03:14:18] Production.INFO: count ==692 [2025-04-22 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:14:05 - End Time 2025-04-22 03:14:05 [2025-04-22 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962113', 'tblTempUsageDetail_20' ) start [2025-04-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962113', 'tblTempUsageDetail_20' ) end [2025-04-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962113', 'tblTempVendorCDR_20' ) start [2025-04-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962113', 'tblTempVendorCDR_20' ) end [2025-04-22 03:14:18] Production.INFO: ProcessCDR(1,14962113,1,1,2) [2025-04-22 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962113', 'tblTempUsageDetail_20' ) start [2025-04-22 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962113', 'tblTempUsageDetail_20' ) end [2025-04-22 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:14:22] Production.INFO: ==16265== Releasing lock... [2025-04-22 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:14:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:15:05 [end_date_ymd] => 2025-04-22 03:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:15:05' and `end` < '2025-04-22 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-04-22 03:15:17] Production.INFO: count ==690 [2025-04-22 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:15:05 - End Time 2025-04-22 03:15:05 [2025-04-22 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962118', 'tblTempUsageDetail_20' ) start [2025-04-22 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962118', 'tblTempUsageDetail_20' ) end [2025-04-22 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962118', 'tblTempVendorCDR_20' ) start [2025-04-22 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962118', 'tblTempVendorCDR_20' ) end [2025-04-22 03:15:18] Production.INFO: ProcessCDR(1,14962118,1,1,2) [2025-04-22 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962118', 'tblTempUsageDetail_20' ) start [2025-04-22 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962118', 'tblTempUsageDetail_20' ) end [2025-04-22 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:15:21] Production.INFO: ==16335== Releasing lock... [2025-04-22 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:15:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:16:05 [end_date_ymd] => 2025-04-22 03:16:05 [RateCDR] => 1 ) [2025-04-22 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:16:05' and `end` < '2025-04-22 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:16:18] Production.INFO: count ==686 [2025-04-22 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:16:05 - End Time 2025-04-22 03:16:05 [2025-04-22 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962123', 'tblTempUsageDetail_20' ) start [2025-04-22 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962123', 'tblTempUsageDetail_20' ) end [2025-04-22 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962123', 'tblTempVendorCDR_20' ) start [2025-04-22 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962123', 'tblTempVendorCDR_20' ) end [2025-04-22 03:16:18] Production.INFO: ProcessCDR(1,14962123,1,1,2) [2025-04-22 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962123', 'tblTempUsageDetail_20' ) start [2025-04-22 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962123', 'tblTempUsageDetail_20' ) end [2025-04-22 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:16:21] Production.INFO: ==16405== Releasing lock... [2025-04-22 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:16:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:17:05 [end_date_ymd] => 2025-04-22 03:17:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:17:05' and `end` < '2025-04-22 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-04-22 03:17:17] Production.INFO: count ==684 [2025-04-22 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:17:05 - End Time 2025-04-22 03:17:05 [2025-04-22 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962128', 'tblTempUsageDetail_20' ) start [2025-04-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962128', 'tblTempUsageDetail_20' ) end [2025-04-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962128', 'tblTempVendorCDR_20' ) start [2025-04-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962128', 'tblTempVendorCDR_20' ) end [2025-04-22 03:17:18] Production.INFO: ProcessCDR(1,14962128,1,1,2) [2025-04-22 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962128', 'tblTempUsageDetail_20' ) start [2025-04-22 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962128', 'tblTempUsageDetail_20' ) end [2025-04-22 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:17:21] Production.INFO: ==16553== Releasing lock... [2025-04-22 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:17:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:18:05 [end_date_ymd] => 2025-04-22 03:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:18:05' and `end` < '2025-04-22 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-04-22 03:18:18] Production.INFO: count ==684 [2025-04-22 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:18:05 - End Time 2025-04-22 03:18:05 [2025-04-22 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962133', 'tblTempUsageDetail_20' ) start [2025-04-22 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962133', 'tblTempUsageDetail_20' ) end [2025-04-22 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962133', 'tblTempVendorCDR_20' ) start [2025-04-22 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962133', 'tblTempVendorCDR_20' ) end [2025-04-22 03:18:18] Production.INFO: ProcessCDR(1,14962133,1,1,2) [2025-04-22 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962133', 'tblTempUsageDetail_20' ) start [2025-04-22 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962133', 'tblTempUsageDetail_20' ) end [2025-04-22 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:18:21] Production.INFO: ==16622== Releasing lock... [2025-04-22 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:18:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:19:05 [end_date_ymd] => 2025-04-22 03:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:19:05' and `end` < '2025-04-22 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-04-22 03:19:18] Production.INFO: count ==682 [2025-04-22 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:19:05 - End Time 2025-04-22 03:19:05 [2025-04-22 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962138', 'tblTempUsageDetail_20' ) start [2025-04-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962138', 'tblTempUsageDetail_20' ) end [2025-04-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962138', 'tblTempVendorCDR_20' ) start [2025-04-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962138', 'tblTempVendorCDR_20' ) end [2025-04-22 03:19:18] Production.INFO: ProcessCDR(1,14962138,1,1,2) [2025-04-22 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962138', 'tblTempUsageDetail_20' ) start [2025-04-22 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962138', 'tblTempUsageDetail_20' ) end [2025-04-22 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:19:21] Production.INFO: ==16697== Releasing lock... [2025-04-22 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:20:06 [end_date_ymd] => 2025-04-22 03:20:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:20:06' and `end` < '2025-04-22 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-04-22 03:20:19] Production.INFO: count ==671 [2025-04-22 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-22 00:20:06 - End Time 2025-04-22 03:20:06 [2025-04-22 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962144', 'tblTempUsageDetail_20' ) start [2025-04-22 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962144', 'tblTempUsageDetail_20' ) end [2025-04-22 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962144', 'tblTempVendorCDR_20' ) start [2025-04-22 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962144', 'tblTempVendorCDR_20' ) end [2025-04-22 03:20:19] Production.INFO: ProcessCDR(1,14962144,1,1,2) [2025-04-22 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962144', 'tblTempUsageDetail_20' ) start [2025-04-22 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962144', 'tblTempUsageDetail_20' ) end [2025-04-22 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:20:23] Production.INFO: ==16768== Releasing lock... [2025-04-22 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:20:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:21:06 [end_date_ymd] => 2025-04-22 03:21:06 [RateCDR] => 1 ) [2025-04-22 03: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-04-22 00:21:06' and `end` < '2025-04-22 03: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-04-22 03:21:18] Production.INFO: count ==659 [2025-04-22 03:21:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:21:06 - End Time 2025-04-22 03:21:06 [2025-04-22 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962149', 'tblTempUsageDetail_20' ) start [2025-04-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962149', 'tblTempUsageDetail_20' ) end [2025-04-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962149', 'tblTempVendorCDR_20' ) start [2025-04-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962149', 'tblTempVendorCDR_20' ) end [2025-04-22 03:21:18] Production.INFO: ProcessCDR(1,14962149,1,1,2) [2025-04-22 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962149', 'tblTempUsageDetail_20' ) start [2025-04-22 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962149', 'tblTempUsageDetail_20' ) end [2025-04-22 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:21:22] Production.INFO: ==16840== Releasing lock... [2025-04-22 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:21:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:22:05 [end_date_ymd] => 2025-04-22 03:22:05 [RateCDR] => 1 ) [2025-04-22 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:22:05' and `end` < '2025-04-22 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:22:18] Production.INFO: count ==657 [2025-04-22 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:22:05 - End Time 2025-04-22 03:22:05 [2025-04-22 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962154', 'tblTempUsageDetail_20' ) start [2025-04-22 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962154', 'tblTempUsageDetail_20' ) end [2025-04-22 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962154', 'tblTempVendorCDR_20' ) start [2025-04-22 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962154', 'tblTempVendorCDR_20' ) end [2025-04-22 03:22:18] Production.INFO: ProcessCDR(1,14962154,1,1,2) [2025-04-22 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962154', 'tblTempUsageDetail_20' ) start [2025-04-22 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962154', 'tblTempUsageDetail_20' ) end [2025-04-22 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:22:22] Production.INFO: ==16912== Releasing lock... [2025-04-22 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:22:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:23:06 [end_date_ymd] => 2025-04-22 03:23:06 [RateCDR] => 1 ) [2025-04-22 03: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-04-22 00:23:06' and `end` < '2025-04-22 03: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-04-22 03:23:18] Production.INFO: count ==656 [2025-04-22 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:23:06 - End Time 2025-04-22 03:23:06 [2025-04-22 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962159', 'tblTempUsageDetail_20' ) start [2025-04-22 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962159', 'tblTempUsageDetail_20' ) end [2025-04-22 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962159', 'tblTempVendorCDR_20' ) start [2025-04-22 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962159', 'tblTempVendorCDR_20' ) end [2025-04-22 03:23:18] Production.INFO: ProcessCDR(1,14962159,1,1,2) [2025-04-22 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962159', 'tblTempUsageDetail_20' ) start [2025-04-22 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962159', 'tblTempUsageDetail_20' ) end [2025-04-22 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:23:22] Production.INFO: ==16983== Releasing lock... [2025-04-22 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:23:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:24:05 [end_date_ymd] => 2025-04-22 03:24:05 [RateCDR] => 1 ) [2025-04-22 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:24:05' and `end` < '2025-04-22 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:24:17] Production.INFO: count ==653 [2025-04-22 03:24:17] Production.ERROR: pbx CDR StartTime 2025-04-22 00:24:05 - End Time 2025-04-22 03:24:05 [2025-04-22 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962164', 'tblTempUsageDetail_20' ) start [2025-04-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962164', 'tblTempUsageDetail_20' ) end [2025-04-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962164', 'tblTempVendorCDR_20' ) start [2025-04-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962164', 'tblTempVendorCDR_20' ) end [2025-04-22 03:24:18] Production.INFO: ProcessCDR(1,14962164,1,1,2) [2025-04-22 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962164', 'tblTempUsageDetail_20' ) start [2025-04-22 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962164', 'tblTempUsageDetail_20' ) end [2025-04-22 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:24:21] Production.INFO: ==17060== Releasing lock... [2025-04-22 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:25:05 [end_date_ymd] => 2025-04-22 03:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:25:05' and `end` < '2025-04-22 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-04-22 03:25:17] Production.INFO: count ==657 [2025-04-22 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:25:05 - End Time 2025-04-22 03:25:05 [2025-04-22 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962169', 'tblTempUsageDetail_20' ) start [2025-04-22 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962169', 'tblTempUsageDetail_20' ) end [2025-04-22 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962169', 'tblTempVendorCDR_20' ) start [2025-04-22 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962169', 'tblTempVendorCDR_20' ) end [2025-04-22 03:25:18] Production.INFO: ProcessCDR(1,14962169,1,1,2) [2025-04-22 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962169', 'tblTempUsageDetail_20' ) start [2025-04-22 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962169', 'tblTempUsageDetail_20' ) end [2025-04-22 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:25:21] Production.INFO: ==17188== Releasing lock... [2025-04-22 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:26:05 [end_date_ymd] => 2025-04-22 03:26:05 [RateCDR] => 1 ) [2025-04-22 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:26:05' and `end` < '2025-04-22 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:26:18] Production.INFO: count ==656 [2025-04-22 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:26:05 - End Time 2025-04-22 03:26:05 [2025-04-22 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962174', 'tblTempUsageDetail_20' ) start [2025-04-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962174', 'tblTempUsageDetail_20' ) end [2025-04-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962174', 'tblTempVendorCDR_20' ) start [2025-04-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962174', 'tblTempVendorCDR_20' ) end [2025-04-22 03:26:18] Production.INFO: ProcessCDR(1,14962174,1,1,2) [2025-04-22 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962174', 'tblTempUsageDetail_20' ) start [2025-04-22 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962174', 'tblTempUsageDetail_20' ) end [2025-04-22 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:26:21] Production.INFO: ==17283== Releasing lock... [2025-04-22 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:27:05 [end_date_ymd] => 2025-04-22 03:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:27:05' and `end` < '2025-04-22 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-04-22 03:27:18] Production.INFO: count ==655 [2025-04-22 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:27:05 - End Time 2025-04-22 03:27:05 [2025-04-22 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962179', 'tblTempUsageDetail_20' ) start [2025-04-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962179', 'tblTempUsageDetail_20' ) end [2025-04-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962179', 'tblTempVendorCDR_20' ) start [2025-04-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962179', 'tblTempVendorCDR_20' ) end [2025-04-22 03:27:18] Production.INFO: ProcessCDR(1,14962179,1,1,2) [2025-04-22 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962179', 'tblTempUsageDetail_20' ) start [2025-04-22 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962179', 'tblTempUsageDetail_20' ) end [2025-04-22 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:27:22] Production.INFO: ==17352== Releasing lock... [2025-04-22 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:28:05 [end_date_ymd] => 2025-04-22 03:28:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:28:05' and `end` < '2025-04-22 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-04-22 03:28:17] Production.INFO: count ==654 [2025-04-22 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:28:05 - End Time 2025-04-22 03:28:05 [2025-04-22 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962184', 'tblTempUsageDetail_20' ) start [2025-04-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962184', 'tblTempUsageDetail_20' ) end [2025-04-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962184', 'tblTempVendorCDR_20' ) start [2025-04-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962184', 'tblTempVendorCDR_20' ) end [2025-04-22 03:28:18] Production.INFO: ProcessCDR(1,14962184,1,1,2) [2025-04-22 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962184', 'tblTempUsageDetail_20' ) start [2025-04-22 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962184', 'tblTempUsageDetail_20' ) end [2025-04-22 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:28:21] Production.INFO: ==17424== Releasing lock... [2025-04-22 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:28:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:29:05 [end_date_ymd] => 2025-04-22 03:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:29:05' and `end` < '2025-04-22 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-04-22 03:29:18] Production.INFO: count ==651 [2025-04-22 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:29:05 - End Time 2025-04-22 03:29:05 [2025-04-22 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962189', 'tblTempUsageDetail_20' ) start [2025-04-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962189', 'tblTempUsageDetail_20' ) end [2025-04-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962189', 'tblTempVendorCDR_20' ) start [2025-04-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962189', 'tblTempVendorCDR_20' ) end [2025-04-22 03:29:18] Production.INFO: ProcessCDR(1,14962189,1,1,2) [2025-04-22 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962189', 'tblTempUsageDetail_20' ) start [2025-04-22 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962189', 'tblTempUsageDetail_20' ) end [2025-04-22 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:29:21] Production.INFO: ==17494== Releasing lock... [2025-04-22 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:29:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:30:06 [end_date_ymd] => 2025-04-22 03:30:06 [RateCDR] => 1 ) [2025-04-22 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:30:06' and `end` < '2025-04-22 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:30:18] Production.INFO: count ==640 [2025-04-22 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-22 00:30:06 - End Time 2025-04-22 03:30:06 [2025-04-22 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962195', 'tblTempUsageDetail_20' ) start [2025-04-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962195', 'tblTempUsageDetail_20' ) end [2025-04-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962195', 'tblTempVendorCDR_20' ) start [2025-04-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962195', 'tblTempVendorCDR_20' ) end [2025-04-22 03:30:19] Production.INFO: ProcessCDR(1,14962195,1,1,2) [2025-04-22 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962195', 'tblTempUsageDetail_20' ) start [2025-04-22 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962195', 'tblTempUsageDetail_20' ) end [2025-04-22 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:30:22] Production.INFO: ==17569== Releasing lock... [2025-04-22 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:30:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:31:05 [end_date_ymd] => 2025-04-22 03:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:31:05' and `end` < '2025-04-22 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-04-22 03:31:18] Production.INFO: count ==639 [2025-04-22 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:31:05 - End Time 2025-04-22 03:31:05 [2025-04-22 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962200', 'tblTempUsageDetail_20' ) start [2025-04-22 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962200', 'tblTempUsageDetail_20' ) end [2025-04-22 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962200', 'tblTempVendorCDR_20' ) start [2025-04-22 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962200', 'tblTempVendorCDR_20' ) end [2025-04-22 03:31:18] Production.INFO: ProcessCDR(1,14962200,1,1,2) [2025-04-22 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962200', 'tblTempUsageDetail_20' ) start [2025-04-22 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962200', 'tblTempUsageDetail_20' ) end [2025-04-22 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:31:22] Production.INFO: ==17655== Releasing lock... [2025-04-22 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:31:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:32:05 [end_date_ymd] => 2025-04-22 03:32:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:32:05' and `end` < '2025-04-22 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:32:18] Production.INFO: count ==638 [2025-04-22 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:32:05 - End Time 2025-04-22 03:32:05 [2025-04-22 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962205', 'tblTempUsageDetail_20' ) start [2025-04-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962205', 'tblTempUsageDetail_20' ) end [2025-04-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962205', 'tblTempVendorCDR_20' ) start [2025-04-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962205', 'tblTempVendorCDR_20' ) end [2025-04-22 03:32:18] Production.INFO: ProcessCDR(1,14962205,1,1,2) [2025-04-22 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962205', 'tblTempUsageDetail_20' ) start [2025-04-22 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962205', 'tblTempUsageDetail_20' ) end [2025-04-22 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:32:22] Production.INFO: ==17727== Releasing lock... [2025-04-22 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:32:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:33:05 [end_date_ymd] => 2025-04-22 03:33:05 [RateCDR] => 1 ) [2025-04-22 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:33:05' and `end` < '2025-04-22 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:33:17] Production.INFO: count ==637 [2025-04-22 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:33:05 - End Time 2025-04-22 03:33:05 [2025-04-22 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962210', 'tblTempUsageDetail_20' ) start [2025-04-22 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962210', 'tblTempUsageDetail_20' ) end [2025-04-22 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962210', 'tblTempVendorCDR_20' ) start [2025-04-22 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962210', 'tblTempVendorCDR_20' ) end [2025-04-22 03:33:18] Production.INFO: ProcessCDR(1,14962210,1,1,2) [2025-04-22 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962210', 'tblTempUsageDetail_20' ) start [2025-04-22 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962210', 'tblTempUsageDetail_20' ) end [2025-04-22 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:33:21] Production.INFO: ==17799== Releasing lock... [2025-04-22 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:33:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:34:06 [end_date_ymd] => 2025-04-22 03:34:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:34:06' and `end` < '2025-04-22 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-04-22 03:34:19] Production.INFO: count ==636 [2025-04-22 03:34:19] Production.ERROR: pbx CDR StartTime 2025-04-22 00:34:06 - End Time 2025-04-22 03:34:06 [2025-04-22 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962215', 'tblTempUsageDetail_20' ) start [2025-04-22 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962215', 'tblTempUsageDetail_20' ) end [2025-04-22 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962215', 'tblTempVendorCDR_20' ) start [2025-04-22 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962215', 'tblTempVendorCDR_20' ) end [2025-04-22 03:34:19] Production.INFO: ProcessCDR(1,14962215,1,1,2) [2025-04-22 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962215', 'tblTempUsageDetail_20' ) start [2025-04-22 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962215', 'tblTempUsageDetail_20' ) end [2025-04-22 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:34:22] Production.INFO: ==17869== Releasing lock... [2025-04-22 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:34:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:35:05 [end_date_ymd] => 2025-04-22 03:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:35:05' and `end` < '2025-04-22 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-04-22 03:35:17] Production.INFO: count ==634 [2025-04-22 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:35:05 - End Time 2025-04-22 03:35:05 [2025-04-22 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962220', 'tblTempUsageDetail_20' ) start [2025-04-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962220', 'tblTempUsageDetail_20' ) end [2025-04-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962220', 'tblTempVendorCDR_20' ) start [2025-04-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962220', 'tblTempVendorCDR_20' ) end [2025-04-22 03:35:18] Production.INFO: ProcessCDR(1,14962220,1,1,2) [2025-04-22 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962220', 'tblTempUsageDetail_20' ) start [2025-04-22 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962220', 'tblTempUsageDetail_20' ) end [2025-04-22 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:35:21] Production.INFO: ==17942== Releasing lock... [2025-04-22 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:35:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:36:05 [end_date_ymd] => 2025-04-22 03:36:05 [RateCDR] => 1 ) [2025-04-22 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:36:05' and `end` < '2025-04-22 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:36:18] Production.INFO: count ==633 [2025-04-22 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:36:05 - End Time 2025-04-22 03:36:05 [2025-04-22 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962225', 'tblTempUsageDetail_20' ) start [2025-04-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962225', 'tblTempUsageDetail_20' ) end [2025-04-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962225', 'tblTempVendorCDR_20' ) start [2025-04-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962225', 'tblTempVendorCDR_20' ) end [2025-04-22 03:36:18] Production.INFO: ProcessCDR(1,14962225,1,1,2) [2025-04-22 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962225', 'tblTempUsageDetail_20' ) start [2025-04-22 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962225', 'tblTempUsageDetail_20' ) end [2025-04-22 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:36:22] Production.INFO: ==18015== Releasing lock... [2025-04-22 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:36:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:37:05 [end_date_ymd] => 2025-04-22 03:37:05 [RateCDR] => 1 ) [2025-04-22 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:37:05' and `end` < '2025-04-22 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:37:17] Production.INFO: count ==632 [2025-04-22 03:37:17] Production.ERROR: pbx CDR StartTime 2025-04-22 00:37:05 - End Time 2025-04-22 03:37:05 [2025-04-22 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962230', 'tblTempUsageDetail_20' ) start [2025-04-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962230', 'tblTempUsageDetail_20' ) end [2025-04-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962230', 'tblTempVendorCDR_20' ) start [2025-04-22 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962230', 'tblTempVendorCDR_20' ) end [2025-04-22 03:37:18] Production.INFO: ProcessCDR(1,14962230,1,1,2) [2025-04-22 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962230', 'tblTempUsageDetail_20' ) start [2025-04-22 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962230', 'tblTempUsageDetail_20' ) end [2025-04-22 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:37:21] Production.INFO: ==18086== Releasing lock... [2025-04-22 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:37:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:38:06 [end_date_ymd] => 2025-04-22 03:38:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:38:06' and `end` < '2025-04-22 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:38:18] Production.INFO: count ==628 [2025-04-22 03:38:19] Production.ERROR: pbx CDR StartTime 2025-04-22 00:38:06 - End Time 2025-04-22 03:38:06 [2025-04-22 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962235', 'tblTempUsageDetail_20' ) start [2025-04-22 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962235', 'tblTempUsageDetail_20' ) end [2025-04-22 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962235', 'tblTempVendorCDR_20' ) start [2025-04-22 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962235', 'tblTempVendorCDR_20' ) end [2025-04-22 03:38:19] Production.INFO: ProcessCDR(1,14962235,1,1,2) [2025-04-22 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962235', 'tblTempUsageDetail_20' ) start [2025-04-22 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962235', 'tblTempUsageDetail_20' ) end [2025-04-22 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:38:22] Production.INFO: ==18162== Releasing lock... [2025-04-22 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:39:05 [end_date_ymd] => 2025-04-22 03:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:39:05' and `end` < '2025-04-22 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-04-22 03:39:17] Production.INFO: count ==627 [2025-04-22 03:39:17] Production.ERROR: pbx CDR StartTime 2025-04-22 00:39:05 - End Time 2025-04-22 03:39:05 [2025-04-22 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962240', 'tblTempUsageDetail_20' ) start [2025-04-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962240', 'tblTempUsageDetail_20' ) end [2025-04-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962240', 'tblTempVendorCDR_20' ) start [2025-04-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962240', 'tblTempVendorCDR_20' ) end [2025-04-22 03:39:18] Production.INFO: ProcessCDR(1,14962240,1,1,2) [2025-04-22 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962240', 'tblTempUsageDetail_20' ) start [2025-04-22 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962240', 'tblTempUsageDetail_20' ) end [2025-04-22 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:39:21] Production.INFO: ==18234== Releasing lock... [2025-04-22 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:39:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:40:06 [end_date_ymd] => 2025-04-22 03:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:40:06' and `end` < '2025-04-22 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-04-22 03:40:19] Production.INFO: count ==618 [2025-04-22 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-22 00:40:06 - End Time 2025-04-22 03:40:06 [2025-04-22 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962246', 'tblTempUsageDetail_20' ) start [2025-04-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962246', 'tblTempUsageDetail_20' ) end [2025-04-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962246', 'tblTempVendorCDR_20' ) start [2025-04-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962246', 'tblTempVendorCDR_20' ) end [2025-04-22 03:40:19] Production.INFO: ProcessCDR(1,14962246,1,1,2) [2025-04-22 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962246', 'tblTempUsageDetail_20' ) start [2025-04-22 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962246', 'tblTempUsageDetail_20' ) end [2025-04-22 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:40:22] Production.INFO: ==18308== Releasing lock... [2025-04-22 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:40:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:41:05 [end_date_ymd] => 2025-04-22 03:41:05 [RateCDR] => 1 ) [2025-04-22 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:41:05' and `end` < '2025-04-22 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:41:17] Production.INFO: count ==609 [2025-04-22 03:41:17] Production.ERROR: pbx CDR StartTime 2025-04-22 00:41:05 - End Time 2025-04-22 03:41:05 [2025-04-22 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962251', 'tblTempUsageDetail_20' ) start [2025-04-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962251', 'tblTempUsageDetail_20' ) end [2025-04-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962251', 'tblTempVendorCDR_20' ) start [2025-04-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962251', 'tblTempVendorCDR_20' ) end [2025-04-22 03:41:17] Production.INFO: ProcessCDR(1,14962251,1,1,2) [2025-04-22 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962251', 'tblTempUsageDetail_20' ) start [2025-04-22 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962251', 'tblTempUsageDetail_20' ) end [2025-04-22 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:41:21] Production.INFO: ==18419== Releasing lock... [2025-04-22 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:41:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:42:05 [end_date_ymd] => 2025-04-22 03:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:42:05' and `end` < '2025-04-22 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-04-22 03:42:18] Production.INFO: count ==606 [2025-04-22 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:42:05 - End Time 2025-04-22 03:42:05 [2025-04-22 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962256', 'tblTempUsageDetail_20' ) start [2025-04-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962256', 'tblTempUsageDetail_20' ) end [2025-04-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962256', 'tblTempVendorCDR_20' ) start [2025-04-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962256', 'tblTempVendorCDR_20' ) end [2025-04-22 03:42:18] Production.INFO: ProcessCDR(1,14962256,1,1,2) [2025-04-22 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962256', 'tblTempUsageDetail_20' ) start [2025-04-22 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962256', 'tblTempUsageDetail_20' ) end [2025-04-22 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:42:21] Production.INFO: ==18491== Releasing lock... [2025-04-22 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:42:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:43:05 [end_date_ymd] => 2025-04-22 03:43:05 [RateCDR] => 1 ) [2025-04-22 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:43:05' and `end` < '2025-04-22 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:43:17] Production.INFO: count ==607 [2025-04-22 03:43:17] Production.ERROR: pbx CDR StartTime 2025-04-22 00:43:05 - End Time 2025-04-22 03:43:05 [2025-04-22 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962261', 'tblTempUsageDetail_20' ) start [2025-04-22 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962261', 'tblTempUsageDetail_20' ) end [2025-04-22 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962261', 'tblTempVendorCDR_20' ) start [2025-04-22 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962261', 'tblTempVendorCDR_20' ) end [2025-04-22 03:43:17] Production.INFO: ProcessCDR(1,14962261,1,1,2) [2025-04-22 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962261', 'tblTempUsageDetail_20' ) start [2025-04-22 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962261', 'tblTempUsageDetail_20' ) end [2025-04-22 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:43:21] Production.INFO: ==18562== Releasing lock... [2025-04-22 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:44:05 [end_date_ymd] => 2025-04-22 03:44:05 [RateCDR] => 1 ) [2025-04-22 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:44:05' and `end` < '2025-04-22 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:44:18] Production.INFO: count ==606 [2025-04-22 03:44:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:44:05 - End Time 2025-04-22 03:44:05 [2025-04-22 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962266', 'tblTempUsageDetail_20' ) start [2025-04-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962266', 'tblTempUsageDetail_20' ) end [2025-04-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962266', 'tblTempVendorCDR_20' ) start [2025-04-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962266', 'tblTempVendorCDR_20' ) end [2025-04-22 03:44:18] Production.INFO: ProcessCDR(1,14962266,1,1,2) [2025-04-22 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962266', 'tblTempUsageDetail_20' ) start [2025-04-22 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962266', 'tblTempUsageDetail_20' ) end [2025-04-22 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:44:22] Production.INFO: ==18631== Releasing lock... [2025-04-22 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:45:05 [end_date_ymd] => 2025-04-22 03:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:45:05' and `end` < '2025-04-22 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-04-22 03:45:17] Production.INFO: count ==604 [2025-04-22 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:45:05 - End Time 2025-04-22 03:45:05 [2025-04-22 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962271', 'tblTempUsageDetail_20' ) start [2025-04-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962271', 'tblTempUsageDetail_20' ) end [2025-04-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962271', 'tblTempVendorCDR_20' ) start [2025-04-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962271', 'tblTempVendorCDR_20' ) end [2025-04-22 03:45:18] Production.INFO: ProcessCDR(1,14962271,1,1,2) [2025-04-22 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962271', 'tblTempUsageDetail_20' ) start [2025-04-22 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962271', 'tblTempUsageDetail_20' ) end [2025-04-22 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:45:21] Production.INFO: ==18703== Releasing lock... [2025-04-22 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:45:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:46:05 [end_date_ymd] => 2025-04-22 03:46:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:46:05' and `end` < '2025-04-22 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-04-22 03:46:18] Production.INFO: count ==603 [2025-04-22 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:46:05 - End Time 2025-04-22 03:46:05 [2025-04-22 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962276', 'tblTempUsageDetail_20' ) start [2025-04-22 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962276', 'tblTempUsageDetail_20' ) end [2025-04-22 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962276', 'tblTempVendorCDR_20' ) start [2025-04-22 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962276', 'tblTempVendorCDR_20' ) end [2025-04-22 03:46:18] Production.INFO: ProcessCDR(1,14962276,1,1,2) [2025-04-22 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962276', 'tblTempUsageDetail_20' ) start [2025-04-22 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962276', 'tblTempUsageDetail_20' ) end [2025-04-22 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:46:21] Production.INFO: ==18782== Releasing lock... [2025-04-22 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:46:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:47:06 [end_date_ymd] => 2025-04-22 03:47:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:47:06' and `end` < '2025-04-22 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-04-22 03:47:18] Production.INFO: count ==600 [2025-04-22 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:47:06 - End Time 2025-04-22 03:47:06 [2025-04-22 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962281', 'tblTempUsageDetail_20' ) start [2025-04-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962281', 'tblTempUsageDetail_20' ) end [2025-04-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962281', 'tblTempVendorCDR_20' ) start [2025-04-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962281', 'tblTempVendorCDR_20' ) end [2025-04-22 03:47:18] Production.INFO: ProcessCDR(1,14962281,1,1,2) [2025-04-22 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962281', 'tblTempUsageDetail_20' ) start [2025-04-22 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962281', 'tblTempUsageDetail_20' ) end [2025-04-22 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:47:22] Production.INFO: ==18857== Releasing lock... [2025-04-22 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:47:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:48:05 [end_date_ymd] => 2025-04-22 03:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:48:05' and `end` < '2025-04-22 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-04-22 03:48:17] Production.INFO: count ==599 [2025-04-22 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:48:05 - End Time 2025-04-22 03:48:05 [2025-04-22 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962286', 'tblTempUsageDetail_20' ) start [2025-04-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962286', 'tblTempUsageDetail_20' ) end [2025-04-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962286', 'tblTempVendorCDR_20' ) start [2025-04-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962286', 'tblTempVendorCDR_20' ) end [2025-04-22 03:48:18] Production.INFO: ProcessCDR(1,14962286,1,1,2) [2025-04-22 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962286', 'tblTempUsageDetail_20' ) start [2025-04-22 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962286', 'tblTempUsageDetail_20' ) end [2025-04-22 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:48:21] Production.INFO: ==18932== Releasing lock... [2025-04-22 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:48:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:49:05 [end_date_ymd] => 2025-04-22 03:49:05 [RateCDR] => 1 ) [2025-04-22 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:49:05' and `end` < '2025-04-22 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:49:18] Production.INFO: count ==599 [2025-04-22 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:49:05 - End Time 2025-04-22 03:49:05 [2025-04-22 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962291', 'tblTempUsageDetail_20' ) start [2025-04-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962291', 'tblTempUsageDetail_20' ) end [2025-04-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962291', 'tblTempVendorCDR_20' ) start [2025-04-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962291', 'tblTempVendorCDR_20' ) end [2025-04-22 03:49:18] Production.INFO: ProcessCDR(1,14962291,1,1,2) [2025-04-22 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962291', 'tblTempUsageDetail_20' ) start [2025-04-22 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962291', 'tblTempUsageDetail_20' ) end [2025-04-22 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:49:22] Production.INFO: ==19005== Releasing lock... [2025-04-22 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:49:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:50:06 [end_date_ymd] => 2025-04-22 03:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:50:06' and `end` < '2025-04-22 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-04-22 03:50:19] Production.INFO: count ==591 [2025-04-22 03:50:19] Production.ERROR: pbx CDR StartTime 2025-04-22 00:50:06 - End Time 2025-04-22 03:50:06 [2025-04-22 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962297', 'tblTempUsageDetail_20' ) start [2025-04-22 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962297', 'tblTempUsageDetail_20' ) end [2025-04-22 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962297', 'tblTempVendorCDR_20' ) start [2025-04-22 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962297', 'tblTempVendorCDR_20' ) end [2025-04-22 03:50:19] Production.INFO: ProcessCDR(1,14962297,1,1,2) [2025-04-22 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962297', 'tblTempUsageDetail_20' ) start [2025-04-22 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962297', 'tblTempUsageDetail_20' ) end [2025-04-22 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:50:22] Production.INFO: ==19079== Releasing lock... [2025-04-22 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:50:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:51:05 [end_date_ymd] => 2025-04-22 03:51:05 [RateCDR] => 1 ) [2025-04-22 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:51:05' and `end` < '2025-04-22 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:51:18] Production.INFO: count ==583 [2025-04-22 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:51:05 - End Time 2025-04-22 03:51:05 [2025-04-22 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962302', 'tblTempUsageDetail_20' ) start [2025-04-22 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962302', 'tblTempUsageDetail_20' ) end [2025-04-22 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962302', 'tblTempVendorCDR_20' ) start [2025-04-22 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962302', 'tblTempVendorCDR_20' ) end [2025-04-22 03:51:18] Production.INFO: ProcessCDR(1,14962302,1,1,2) [2025-04-22 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962302', 'tblTempUsageDetail_20' ) start [2025-04-22 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962302', 'tblTempUsageDetail_20' ) end [2025-04-22 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:51:22] Production.INFO: ==19157== Releasing lock... [2025-04-22 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:52:05 [end_date_ymd] => 2025-04-22 03:52:05 [RateCDR] => 1 ) [2025-04-22 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:52:05' and `end` < '2025-04-22 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:52:18] Production.INFO: count ==582 [2025-04-22 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:52:05 - End Time 2025-04-22 03:52:05 [2025-04-22 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962307', 'tblTempUsageDetail_20' ) start [2025-04-22 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962307', 'tblTempUsageDetail_20' ) end [2025-04-22 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962307', 'tblTempVendorCDR_20' ) start [2025-04-22 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962307', 'tblTempVendorCDR_20' ) end [2025-04-22 03:52:18] Production.INFO: ProcessCDR(1,14962307,1,1,2) [2025-04-22 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962307', 'tblTempUsageDetail_20' ) start [2025-04-22 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962307', 'tblTempUsageDetail_20' ) end [2025-04-22 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:52:21] Production.INFO: ==19227== Releasing lock... [2025-04-22 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:52:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:53:05 [end_date_ymd] => 2025-04-22 03:53:05 [RateCDR] => 1 ) [2025-04-22 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:53:05' and `end` < '2025-04-22 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:53:17] Production.INFO: count ==581 [2025-04-22 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:53:05 - End Time 2025-04-22 03:53:05 [2025-04-22 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962312', 'tblTempUsageDetail_20' ) start [2025-04-22 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962312', 'tblTempUsageDetail_20' ) end [2025-04-22 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962312', 'tblTempVendorCDR_20' ) start [2025-04-22 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962312', 'tblTempVendorCDR_20' ) end [2025-04-22 03:53:18] Production.INFO: ProcessCDR(1,14962312,1,1,2) [2025-04-22 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962312', 'tblTempUsageDetail_20' ) start [2025-04-22 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962312', 'tblTempUsageDetail_20' ) end [2025-04-22 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:53:21] Production.INFO: ==19304== Releasing lock... [2025-04-22 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:53:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:54:05 [end_date_ymd] => 2025-04-22 03:54:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 00:54:05' and `end` < '2025-04-22 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-04-22 03:54:18] Production.INFO: count ==581 [2025-04-22 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:54:05 - End Time 2025-04-22 03:54:05 [2025-04-22 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962317', 'tblTempUsageDetail_20' ) start [2025-04-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962317', 'tblTempUsageDetail_20' ) end [2025-04-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962317', 'tblTempVendorCDR_20' ) start [2025-04-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962317', 'tblTempVendorCDR_20' ) end [2025-04-22 03:54:18] Production.INFO: ProcessCDR(1,14962317,1,1,2) [2025-04-22 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962317', 'tblTempUsageDetail_20' ) start [2025-04-22 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962317', 'tblTempUsageDetail_20' ) end [2025-04-22 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:54:21] Production.INFO: ==19380== Releasing lock... [2025-04-22 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:54:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:55:05 [end_date_ymd] => 2025-04-22 03:55:05 [RateCDR] => 1 ) [2025-04-22 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:55:05' and `end` < '2025-04-22 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:55:18] Production.INFO: count ==584 [2025-04-22 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:55:05 - End Time 2025-04-22 03:55:05 [2025-04-22 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962322', 'tblTempUsageDetail_20' ) start [2025-04-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962322', 'tblTempUsageDetail_20' ) end [2025-04-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962322', 'tblTempVendorCDR_20' ) start [2025-04-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962322', 'tblTempVendorCDR_20' ) end [2025-04-22 03:55:18] Production.INFO: ProcessCDR(1,14962322,1,1,2) [2025-04-22 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962322', 'tblTempUsageDetail_20' ) start [2025-04-22 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962322', 'tblTempUsageDetail_20' ) end [2025-04-22 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:55:21] Production.INFO: ==19453== Releasing lock... [2025-04-22 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 03:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:56:04 [end_date_ymd] => 2025-04-22 03:56:04 [RateCDR] => 1 ) [2025-04-22 03:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:56:04' and `end` < '2025-04-22 03:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:56:17] Production.INFO: count ==583 [2025-04-22 03:56:17] Production.ERROR: pbx CDR StartTime 2025-04-22 00:56:04 - End Time 2025-04-22 03:56:04 [2025-04-22 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962327', 'tblTempUsageDetail_20' ) start [2025-04-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962327', 'tblTempUsageDetail_20' ) end [2025-04-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962327', 'tblTempVendorCDR_20' ) start [2025-04-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962327', 'tblTempVendorCDR_20' ) end [2025-04-22 03:56:17] Production.INFO: ProcessCDR(1,14962327,1,1,2) [2025-04-22 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962327', 'tblTempUsageDetail_20' ) start [2025-04-22 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962327', 'tblTempUsageDetail_20' ) end [2025-04-22 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:56:21] Production.INFO: ==19561== Releasing lock... [2025-04-22 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:56:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:57:05 [end_date_ymd] => 2025-04-22 03:57:05 [RateCDR] => 1 ) [2025-04-22 03: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-04-22 00:57:05' and `end` < '2025-04-22 03: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-04-22 03:57:17] Production.INFO: count ==583 [2025-04-22 03:57:17] Production.ERROR: pbx CDR StartTime 2025-04-22 00:57:05 - End Time 2025-04-22 03:57:05 [2025-04-22 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962332', 'tblTempUsageDetail_20' ) start [2025-04-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962332', 'tblTempUsageDetail_20' ) end [2025-04-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962332', 'tblTempVendorCDR_20' ) start [2025-04-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962332', 'tblTempVendorCDR_20' ) end [2025-04-22 03:57:17] Production.INFO: ProcessCDR(1,14962332,1,1,2) [2025-04-22 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962332', 'tblTempUsageDetail_20' ) start [2025-04-22 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962332', 'tblTempUsageDetail_20' ) end [2025-04-22 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:57:21] Production.INFO: ==19631== Releasing lock... [2025-04-22 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:57:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 03:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:58:04 [end_date_ymd] => 2025-04-22 03:58:04 [RateCDR] => 1 ) [2025-04-22 03:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:58:04' and `end` < '2025-04-22 03:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:58:17] Production.INFO: count ==580 [2025-04-22 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-22 00:58:04 - End Time 2025-04-22 03:58:04 [2025-04-22 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962337', 'tblTempUsageDetail_20' ) start [2025-04-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962337', 'tblTempUsageDetail_20' ) end [2025-04-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962337', 'tblTempVendorCDR_20' ) start [2025-04-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962337', 'tblTempVendorCDR_20' ) end [2025-04-22 03:58:18] Production.INFO: ProcessCDR(1,14962337,1,1,2) [2025-04-22 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962337', 'tblTempUsageDetail_20' ) start [2025-04-22 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962337', 'tblTempUsageDetail_20' ) end [2025-04-22 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:58:21] Production.INFO: ==19702== Releasing lock... [2025-04-22 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:58:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 00:59:06 [end_date_ymd] => 2025-04-22 03:59:06 [RateCDR] => 1 ) [2025-04-22 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 00:59:06' and `end` < '2025-04-22 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 03:59:19] Production.INFO: count ==578 [2025-04-22 03:59:19] Production.ERROR: pbx CDR StartTime 2025-04-22 00:59:06 - End Time 2025-04-22 03:59:06 [2025-04-22 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962342', 'tblTempUsageDetail_20' ) start [2025-04-22 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962342', 'tblTempUsageDetail_20' ) end [2025-04-22 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962342', 'tblTempVendorCDR_20' ) start [2025-04-22 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962342', 'tblTempVendorCDR_20' ) end [2025-04-22 03:59:19] Production.INFO: ProcessCDR(1,14962342,1,1,2) [2025-04-22 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962342', 'tblTempUsageDetail_20' ) start [2025-04-22 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962342', 'tblTempUsageDetail_20' ) end [2025-04-22 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 03:59:22] Production.INFO: ==19779== Releasing lock... [2025-04-22 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 03:59:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:00:06 [end_date_ymd] => 2025-04-22 04:00:06 [RateCDR] => 1 ) [2025-04-22 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:00:06' and `end` < '2025-04-22 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:00:19] Production.INFO: count ==572 [2025-04-22 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:00:06 - End Time 2025-04-22 04:00:06 [2025-04-22 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962347', 'tblTempUsageDetail_20' ) start [2025-04-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962347', 'tblTempUsageDetail_20' ) end [2025-04-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962347', 'tblTempVendorCDR_20' ) start [2025-04-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962347', 'tblTempVendorCDR_20' ) end [2025-04-22 04:00:19] Production.INFO: ProcessCDR(1,14962347,1,1,2) [2025-04-22 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962347', 'tblTempUsageDetail_20' ) start [2025-04-22 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962347', 'tblTempUsageDetail_20' ) end [2025-04-22 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:00:23] Production.INFO: ==19857== Releasing lock... [2025-04-22 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:00:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:01:06 [end_date_ymd] => 2025-04-22 04:01:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:01:06' and `end` < '2025-04-22 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-04-22 04:01:18] Production.INFO: count ==571 [2025-04-22 04:01:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:01:06 - End Time 2025-04-22 04:01:06 [2025-04-22 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962354', 'tblTempUsageDetail_20' ) start [2025-04-22 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962354', 'tblTempUsageDetail_20' ) end [2025-04-22 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962354', 'tblTempVendorCDR_20' ) start [2025-04-22 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962354', 'tblTempVendorCDR_20' ) end [2025-04-22 04:01:19] Production.INFO: ProcessCDR(1,14962354,1,1,2) [2025-04-22 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962354', 'tblTempUsageDetail_20' ) start [2025-04-22 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962354', 'tblTempUsageDetail_20' ) end [2025-04-22 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:01:22] Production.INFO: ==19944== Releasing lock... [2025-04-22 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:01:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:02:06 [end_date_ymd] => 2025-04-22 04:02:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:02:06' and `end` < '2025-04-22 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-04-22 04:02:18] Production.INFO: count ==571 [2025-04-22 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:02:06 - End Time 2025-04-22 04:02:06 [2025-04-22 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962359', 'tblTempUsageDetail_20' ) start [2025-04-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962359', 'tblTempUsageDetail_20' ) end [2025-04-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962359', 'tblTempVendorCDR_20' ) start [2025-04-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962359', 'tblTempVendorCDR_20' ) end [2025-04-22 04:02:18] Production.INFO: ProcessCDR(1,14962359,1,1,2) [2025-04-22 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962359', 'tblTempUsageDetail_20' ) start [2025-04-22 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962359', 'tblTempUsageDetail_20' ) end [2025-04-22 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:02:22] Production.INFO: ==20015== Releasing lock... [2025-04-22 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:02:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:03:05 [end_date_ymd] => 2025-04-22 04:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:03:05' and `end` < '2025-04-22 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-04-22 04:03:18] Production.INFO: count ==579 [2025-04-22 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:03:05 - End Time 2025-04-22 04:03:05 [2025-04-22 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962364', 'tblTempUsageDetail_20' ) start [2025-04-22 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962364', 'tblTempUsageDetail_20' ) end [2025-04-22 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962364', 'tblTempVendorCDR_20' ) start [2025-04-22 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962364', 'tblTempVendorCDR_20' ) end [2025-04-22 04:03:18] Production.INFO: ProcessCDR(1,14962364,1,1,2) [2025-04-22 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962364', 'tblTempUsageDetail_20' ) start [2025-04-22 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962364', 'tblTempUsageDetail_20' ) end [2025-04-22 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:03:22] Production.INFO: ==20086== Releasing lock... [2025-04-22 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:04:05 [end_date_ymd] => 2025-04-22 04:04:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:04:05' and `end` < '2025-04-22 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:04:18] Production.INFO: count ==578 [2025-04-22 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:04:05 - End Time 2025-04-22 04:04:05 [2025-04-22 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962369', 'tblTempUsageDetail_20' ) start [2025-04-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962369', 'tblTempUsageDetail_20' ) end [2025-04-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962369', 'tblTempVendorCDR_20' ) start [2025-04-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962369', 'tblTempVendorCDR_20' ) end [2025-04-22 04:04:18] Production.INFO: ProcessCDR(1,14962369,1,1,2) [2025-04-22 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962369', 'tblTempUsageDetail_20' ) start [2025-04-22 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962369', 'tblTempUsageDetail_20' ) end [2025-04-22 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:04:22] Production.INFO: ==20163== Releasing lock... [2025-04-22 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:04:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:05:05 [end_date_ymd] => 2025-04-22 04:05:05 [RateCDR] => 1 ) [2025-04-22 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:05:05' and `end` < '2025-04-22 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:05:18] Production.INFO: count ==578 [2025-04-22 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:05:05 - End Time 2025-04-22 04:05:05 [2025-04-22 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962374', 'tblTempUsageDetail_20' ) start [2025-04-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962374', 'tblTempUsageDetail_20' ) end [2025-04-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962374', 'tblTempVendorCDR_20' ) start [2025-04-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962374', 'tblTempVendorCDR_20' ) end [2025-04-22 04:05:18] Production.INFO: ProcessCDR(1,14962374,1,1,2) [2025-04-22 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962374', 'tblTempUsageDetail_20' ) start [2025-04-22 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962374', 'tblTempUsageDetail_20' ) end [2025-04-22 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:05:21] Production.INFO: ==20243== Releasing lock... [2025-04-22 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:05:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:06:05 [end_date_ymd] => 2025-04-22 04:06:05 [RateCDR] => 1 ) [2025-04-22 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:06:05' and `end` < '2025-04-22 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:06:18] Production.INFO: count ==577 [2025-04-22 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:06:05 - End Time 2025-04-22 04:06:05 [2025-04-22 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962379', 'tblTempUsageDetail_20' ) start [2025-04-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962379', 'tblTempUsageDetail_20' ) end [2025-04-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962379', 'tblTempVendorCDR_20' ) start [2025-04-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962379', 'tblTempVendorCDR_20' ) end [2025-04-22 04:06:18] Production.INFO: ProcessCDR(1,14962379,1,1,2) [2025-04-22 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962379', 'tblTempUsageDetail_20' ) start [2025-04-22 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962379', 'tblTempUsageDetail_20' ) end [2025-04-22 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:06:21] Production.INFO: ==20320== Releasing lock... [2025-04-22 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:07:05 [end_date_ymd] => 2025-04-22 04:07:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:07:05' and `end` < '2025-04-22 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-04-22 04:07:18] Production.INFO: count ==577 [2025-04-22 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:07:05 - End Time 2025-04-22 04:07:05 [2025-04-22 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962384', 'tblTempUsageDetail_20' ) start [2025-04-22 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962384', 'tblTempUsageDetail_20' ) end [2025-04-22 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962384', 'tblTempVendorCDR_20' ) start [2025-04-22 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962384', 'tblTempVendorCDR_20' ) end [2025-04-22 04:07:18] Production.INFO: ProcessCDR(1,14962384,1,1,2) [2025-04-22 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962384', 'tblTempUsageDetail_20' ) start [2025-04-22 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962384', 'tblTempUsageDetail_20' ) end [2025-04-22 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:07:21] Production.INFO: ==20393== Releasing lock... [2025-04-22 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:07:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:08:06 [end_date_ymd] => 2025-04-22 04:08:06 [RateCDR] => 1 ) [2025-04-22 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:08:06' and `end` < '2025-04-22 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:08:18] Production.INFO: count ==575 [2025-04-22 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:08:06 - End Time 2025-04-22 04:08:06 [2025-04-22 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962389', 'tblTempUsageDetail_20' ) start [2025-04-22 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962389', 'tblTempUsageDetail_20' ) end [2025-04-22 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962389', 'tblTempVendorCDR_20' ) start [2025-04-22 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962389', 'tblTempVendorCDR_20' ) end [2025-04-22 04:08:18] Production.INFO: ProcessCDR(1,14962389,1,1,2) [2025-04-22 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962389', 'tblTempUsageDetail_20' ) start [2025-04-22 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962389', 'tblTempUsageDetail_20' ) end [2025-04-22 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:08:22] Production.INFO: ==20467== Releasing lock... [2025-04-22 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:08:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:09:05 [end_date_ymd] => 2025-04-22 04:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:09:05' and `end` < '2025-04-22 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-04-22 04:09:17] Production.INFO: count ==581 [2025-04-22 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:09:05 - End Time 2025-04-22 04:09:05 [2025-04-22 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962394', 'tblTempUsageDetail_20' ) start [2025-04-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962394', 'tblTempUsageDetail_20' ) end [2025-04-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962394', 'tblTempVendorCDR_20' ) start [2025-04-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962394', 'tblTempVendorCDR_20' ) end [2025-04-22 04:09:18] Production.INFO: ProcessCDR(1,14962394,1,1,2) [2025-04-22 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962394', 'tblTempUsageDetail_20' ) start [2025-04-22 04:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962394', 'tblTempUsageDetail_20' ) end [2025-04-22 04:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:09:23] Production.INFO: ==20542== Releasing lock... [2025-04-22 04:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:09:23] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:10:06 [end_date_ymd] => 2025-04-22 04:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:10:06' and `end` < '2025-04-22 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-04-22 04:10:18] Production.INFO: count ==572 [2025-04-22 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:10:06 - End Time 2025-04-22 04:10:06 [2025-04-22 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962400', 'tblTempUsageDetail_20' ) start [2025-04-22 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962400', 'tblTempUsageDetail_20' ) end [2025-04-22 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962400', 'tblTempVendorCDR_20' ) start [2025-04-22 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962400', 'tblTempVendorCDR_20' ) end [2025-04-22 04:10:19] Production.INFO: ProcessCDR(1,14962400,1,1,2) [2025-04-22 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962400', 'tblTempUsageDetail_20' ) start [2025-04-22 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962400', 'tblTempUsageDetail_20' ) end [2025-04-22 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:10:22] Production.INFO: ==20617== Releasing lock... [2025-04-22 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:10:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:11:05 [end_date_ymd] => 2025-04-22 04:11:05 [RateCDR] => 1 ) [2025-04-22 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:11:05' and `end` < '2025-04-22 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:11:18] Production.INFO: count ==572 [2025-04-22 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:11:05 - End Time 2025-04-22 04:11:05 [2025-04-22 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962405', 'tblTempUsageDetail_20' ) start [2025-04-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962405', 'tblTempUsageDetail_20' ) end [2025-04-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962405', 'tblTempVendorCDR_20' ) start [2025-04-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962405', 'tblTempVendorCDR_20' ) end [2025-04-22 04:11:18] Production.INFO: ProcessCDR(1,14962405,1,1,2) [2025-04-22 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962405', 'tblTempUsageDetail_20' ) start [2025-04-22 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962405', 'tblTempUsageDetail_20' ) end [2025-04-22 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:11:21] Production.INFO: ==20728== Releasing lock... [2025-04-22 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:11:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:12:05 [end_date_ymd] => 2025-04-22 04:12:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:12:05' and `end` < '2025-04-22 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-04-22 04:12:18] Production.INFO: count ==565 [2025-04-22 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:12:05 - End Time 2025-04-22 04:12:05 [2025-04-22 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962410', 'tblTempUsageDetail_20' ) start [2025-04-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962410', 'tblTempUsageDetail_20' ) end [2025-04-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962410', 'tblTempVendorCDR_20' ) start [2025-04-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962410', 'tblTempVendorCDR_20' ) end [2025-04-22 04:12:18] Production.INFO: ProcessCDR(1,14962410,1,1,2) [2025-04-22 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962410', 'tblTempUsageDetail_20' ) start [2025-04-22 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962410', 'tblTempUsageDetail_20' ) end [2025-04-22 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:12:21] Production.INFO: ==20802== Releasing lock... [2025-04-22 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:12:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:13:06 [end_date_ymd] => 2025-04-22 04:13:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:13:06' and `end` < '2025-04-22 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-04-22 04:13:18] Production.INFO: count ==562 [2025-04-22 04:13:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:13:06 - End Time 2025-04-22 04:13:06 [2025-04-22 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962415', 'tblTempUsageDetail_20' ) start [2025-04-22 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962415', 'tblTempUsageDetail_20' ) end [2025-04-22 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962415', 'tblTempVendorCDR_20' ) start [2025-04-22 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962415', 'tblTempVendorCDR_20' ) end [2025-04-22 04:13:19] Production.INFO: ProcessCDR(1,14962415,1,1,2) [2025-04-22 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962415', 'tblTempUsageDetail_20' ) start [2025-04-22 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962415', 'tblTempUsageDetail_20' ) end [2025-04-22 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:13:22] Production.INFO: ==20874== Releasing lock... [2025-04-22 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:13:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:14:06 [end_date_ymd] => 2025-04-22 04:14:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:14:06' and `end` < '2025-04-22 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-04-22 04:14:19] Production.INFO: count ==559 [2025-04-22 04:14:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:14:06 - End Time 2025-04-22 04:14:06 [2025-04-22 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962420', 'tblTempUsageDetail_20' ) start [2025-04-22 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962420', 'tblTempUsageDetail_20' ) end [2025-04-22 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962420', 'tblTempVendorCDR_20' ) start [2025-04-22 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962420', 'tblTempVendorCDR_20' ) end [2025-04-22 04:14:19] Production.INFO: ProcessCDR(1,14962420,1,1,2) [2025-04-22 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962420', 'tblTempUsageDetail_20' ) start [2025-04-22 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962420', 'tblTempUsageDetail_20' ) end [2025-04-22 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:14:22] Production.INFO: ==20969== Releasing lock... [2025-04-22 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:14:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:15:06 [end_date_ymd] => 2025-04-22 04:15:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:15:06' and `end` < '2025-04-22 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-04-22 04:15:18] Production.INFO: count ==558 [2025-04-22 04:15:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:15:06 - End Time 2025-04-22 04:15:06 [2025-04-22 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962425', 'tblTempUsageDetail_20' ) start [2025-04-22 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962425', 'tblTempUsageDetail_20' ) end [2025-04-22 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962425', 'tblTempVendorCDR_20' ) start [2025-04-22 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962425', 'tblTempVendorCDR_20' ) end [2025-04-22 04:15:19] Production.INFO: ProcessCDR(1,14962425,1,1,2) [2025-04-22 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962425', 'tblTempUsageDetail_20' ) start [2025-04-22 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962425', 'tblTempUsageDetail_20' ) end [2025-04-22 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:15:22] Production.INFO: ==21043== Releasing lock... [2025-04-22 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:15:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:16:05 [end_date_ymd] => 2025-04-22 04:16:05 [RateCDR] => 1 ) [2025-04-22 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:16:05' and `end` < '2025-04-22 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:16:18] Production.INFO: count ==557 [2025-04-22 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:16:05 - End Time 2025-04-22 04:16:05 [2025-04-22 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962430', 'tblTempUsageDetail_20' ) start [2025-04-22 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962430', 'tblTempUsageDetail_20' ) end [2025-04-22 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962430', 'tblTempVendorCDR_20' ) start [2025-04-22 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962430', 'tblTempVendorCDR_20' ) end [2025-04-22 04:16:18] Production.INFO: ProcessCDR(1,14962430,1,1,2) [2025-04-22 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962430', 'tblTempUsageDetail_20' ) start [2025-04-22 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962430', 'tblTempUsageDetail_20' ) end [2025-04-22 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:16:21] Production.INFO: ==21118== Releasing lock... [2025-04-22 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:16:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:17:06 [end_date_ymd] => 2025-04-22 04:17:06 [RateCDR] => 1 ) [2025-04-22 04:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:17:06' and `end` < '2025-04-22 04:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:17:18] Production.INFO: count ==556 [2025-04-22 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:17:06 - End Time 2025-04-22 04:17:06 [2025-04-22 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962435', 'tblTempUsageDetail_20' ) start [2025-04-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962435', 'tblTempUsageDetail_20' ) end [2025-04-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962435', 'tblTempVendorCDR_20' ) start [2025-04-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962435', 'tblTempVendorCDR_20' ) end [2025-04-22 04:17:18] Production.INFO: ProcessCDR(1,14962435,1,1,2) [2025-04-22 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962435', 'tblTempUsageDetail_20' ) start [2025-04-22 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962435', 'tblTempUsageDetail_20' ) end [2025-04-22 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:17:22] Production.INFO: ==21189== Releasing lock... [2025-04-22 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:17:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:18:05 [end_date_ymd] => 2025-04-22 04:18:05 [RateCDR] => 1 ) [2025-04-22 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:18:05' and `end` < '2025-04-22 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:18:18] Production.INFO: count ==555 [2025-04-22 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:18:05 - End Time 2025-04-22 04:18:05 [2025-04-22 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962440', 'tblTempUsageDetail_20' ) start [2025-04-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962440', 'tblTempUsageDetail_20' ) end [2025-04-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962440', 'tblTempVendorCDR_20' ) start [2025-04-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962440', 'tblTempVendorCDR_20' ) end [2025-04-22 04:18:18] Production.INFO: ProcessCDR(1,14962440,1,1,2) [2025-04-22 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962440', 'tblTempUsageDetail_20' ) start [2025-04-22 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962440', 'tblTempUsageDetail_20' ) end [2025-04-22 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:18:21] Production.INFO: ==21265== Releasing lock... [2025-04-22 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:18:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:19:05 [end_date_ymd] => 2025-04-22 04:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:19:05' and `end` < '2025-04-22 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-04-22 04:19:18] Production.INFO: count ==555 [2025-04-22 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:19:05 - End Time 2025-04-22 04:19:05 [2025-04-22 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962445', 'tblTempUsageDetail_20' ) start [2025-04-22 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962445', 'tblTempUsageDetail_20' ) end [2025-04-22 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962445', 'tblTempVendorCDR_20' ) start [2025-04-22 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962445', 'tblTempVendorCDR_20' ) end [2025-04-22 04:19:18] Production.INFO: ProcessCDR(1,14962445,1,1,2) [2025-04-22 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962445', 'tblTempUsageDetail_20' ) start [2025-04-22 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962445', 'tblTempUsageDetail_20' ) end [2025-04-22 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:19:21] Production.INFO: ==21339== Releasing lock... [2025-04-22 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:19:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:20:06 [end_date_ymd] => 2025-04-22 04:20:06 [RateCDR] => 1 ) [2025-04-22 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:20:06' and `end` < '2025-04-22 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:20:18] Production.INFO: count ==554 [2025-04-22 04:20:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:20:06 - End Time 2025-04-22 04:20:06 [2025-04-22 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962450', 'tblTempUsageDetail_20' ) start [2025-04-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962450', 'tblTempUsageDetail_20' ) end [2025-04-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962450', 'tblTempVendorCDR_20' ) start [2025-04-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962450', 'tblTempVendorCDR_20' ) end [2025-04-22 04:20:19] Production.INFO: ProcessCDR(1,14962450,1,1,2) [2025-04-22 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962450', 'tblTempUsageDetail_20' ) start [2025-04-22 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962450', 'tblTempUsageDetail_20' ) end [2025-04-22 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:20:22] Production.INFO: ==21420== Releasing lock... [2025-04-22 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:20:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:21:05 [end_date_ymd] => 2025-04-22 04:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:21:05' and `end` < '2025-04-22 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-04-22 04:21:18] Production.INFO: count ==553 [2025-04-22 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:21:05 - End Time 2025-04-22 04:21:05 [2025-04-22 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962456', 'tblTempUsageDetail_20' ) start [2025-04-22 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962456', 'tblTempUsageDetail_20' ) end [2025-04-22 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962456', 'tblTempVendorCDR_20' ) start [2025-04-22 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962456', 'tblTempVendorCDR_20' ) end [2025-04-22 04:21:18] Production.INFO: ProcessCDR(1,14962456,1,1,2) [2025-04-22 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962456', 'tblTempUsageDetail_20' ) start [2025-04-22 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962456', 'tblTempUsageDetail_20' ) end [2025-04-22 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:21:22] Production.INFO: ==21495== Releasing lock... [2025-04-22 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:22:05 [end_date_ymd] => 2025-04-22 04:22:05 [RateCDR] => 1 ) [2025-04-22 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:22:05' and `end` < '2025-04-22 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:22:18] Production.INFO: count ==552 [2025-04-22 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:22:05 - End Time 2025-04-22 04:22:05 [2025-04-22 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962461', 'tblTempUsageDetail_20' ) start [2025-04-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962461', 'tblTempUsageDetail_20' ) end [2025-04-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962461', 'tblTempVendorCDR_20' ) start [2025-04-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962461', 'tblTempVendorCDR_20' ) end [2025-04-22 04:22:18] Production.INFO: ProcessCDR(1,14962461,1,1,2) [2025-04-22 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962461', 'tblTempUsageDetail_20' ) start [2025-04-22 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962461', 'tblTempUsageDetail_20' ) end [2025-04-22 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:22:21] Production.INFO: ==21571== Releasing lock... [2025-04-22 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:23:05 [end_date_ymd] => 2025-04-22 04:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:23:05' and `end` < '2025-04-22 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-04-22 04:23:18] Production.INFO: count ==550 [2025-04-22 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:23:05 - End Time 2025-04-22 04:23:05 [2025-04-22 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962466', 'tblTempUsageDetail_20' ) start [2025-04-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962466', 'tblTempUsageDetail_20' ) end [2025-04-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962466', 'tblTempVendorCDR_20' ) start [2025-04-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962466', 'tblTempVendorCDR_20' ) end [2025-04-22 04:23:18] Production.INFO: ProcessCDR(1,14962466,1,1,2) [2025-04-22 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962466', 'tblTempUsageDetail_20' ) start [2025-04-22 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962466', 'tblTempUsageDetail_20' ) end [2025-04-22 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:23:21] Production.INFO: ==21642== Releasing lock... [2025-04-22 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:23:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:24:05 [end_date_ymd] => 2025-04-22 04:24:05 [RateCDR] => 1 ) [2025-04-22 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:24:05' and `end` < '2025-04-22 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:24:18] Production.INFO: count ==547 [2025-04-22 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:24:05 - End Time 2025-04-22 04:24:05 [2025-04-22 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962471', 'tblTempUsageDetail_20' ) start [2025-04-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962471', 'tblTempUsageDetail_20' ) end [2025-04-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962471', 'tblTempVendorCDR_20' ) start [2025-04-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962471', 'tblTempVendorCDR_20' ) end [2025-04-22 04:24:18] Production.INFO: ProcessCDR(1,14962471,1,1,2) [2025-04-22 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962471', 'tblTempUsageDetail_20' ) start [2025-04-22 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962471', 'tblTempUsageDetail_20' ) end [2025-04-22 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:24:22] Production.INFO: ==21712== Releasing lock... [2025-04-22 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:24:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:25:05 [end_date_ymd] => 2025-04-22 04:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:25:05' and `end` < '2025-04-22 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-04-22 04:25:18] Production.INFO: count ==544 [2025-04-22 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:25:05 - End Time 2025-04-22 04:25:05 [2025-04-22 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962476', 'tblTempUsageDetail_20' ) start [2025-04-22 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962476', 'tblTempUsageDetail_20' ) end [2025-04-22 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962476', 'tblTempVendorCDR_20' ) start [2025-04-22 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962476', 'tblTempVendorCDR_20' ) end [2025-04-22 04:25:18] Production.INFO: ProcessCDR(1,14962476,1,1,2) [2025-04-22 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962476', 'tblTempUsageDetail_20' ) start [2025-04-22 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962476', 'tblTempUsageDetail_20' ) end [2025-04-22 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:25:21] Production.INFO: ==21791== Releasing lock... [2025-04-22 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:26:05 [end_date_ymd] => 2025-04-22 04:26:05 [RateCDR] => 1 ) [2025-04-22 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:26:05' and `end` < '2025-04-22 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:26:18] Production.INFO: count ==543 [2025-04-22 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:26:05 - End Time 2025-04-22 04:26:05 [2025-04-22 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962481', 'tblTempUsageDetail_20' ) start [2025-04-22 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962481', 'tblTempUsageDetail_20' ) end [2025-04-22 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962481', 'tblTempVendorCDR_20' ) start [2025-04-22 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962481', 'tblTempVendorCDR_20' ) end [2025-04-22 04:26:18] Production.INFO: ProcessCDR(1,14962481,1,1,2) [2025-04-22 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962481', 'tblTempUsageDetail_20' ) start [2025-04-22 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962481', 'tblTempUsageDetail_20' ) end [2025-04-22 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:26:21] Production.INFO: ==21867== Releasing lock... [2025-04-22 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:27:05 [end_date_ymd] => 2025-04-22 04:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:27:05' and `end` < '2025-04-22 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-04-22 04:27:18] Production.INFO: count ==541 [2025-04-22 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:27:05 - End Time 2025-04-22 04:27:05 [2025-04-22 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962486', 'tblTempUsageDetail_20' ) start [2025-04-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962486', 'tblTempUsageDetail_20' ) end [2025-04-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962486', 'tblTempVendorCDR_20' ) start [2025-04-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962486', 'tblTempVendorCDR_20' ) end [2025-04-22 04:27:18] Production.INFO: ProcessCDR(1,14962486,1,1,2) [2025-04-22 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962486', 'tblTempUsageDetail_20' ) start [2025-04-22 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962486', 'tblTempUsageDetail_20' ) end [2025-04-22 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:27:21] Production.INFO: ==21980== Releasing lock... [2025-04-22 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:27:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:28:05 [end_date_ymd] => 2025-04-22 04:28:05 [RateCDR] => 1 ) [2025-04-22 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:28:05' and `end` < '2025-04-22 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:28:18] Production.INFO: count ==541 [2025-04-22 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:28:05 - End Time 2025-04-22 04:28:05 [2025-04-22 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962491', 'tblTempUsageDetail_20' ) start [2025-04-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962491', 'tblTempUsageDetail_20' ) end [2025-04-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962491', 'tblTempVendorCDR_20' ) start [2025-04-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962491', 'tblTempVendorCDR_20' ) end [2025-04-22 04:28:18] Production.INFO: ProcessCDR(1,14962491,1,1,2) [2025-04-22 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962491', 'tblTempUsageDetail_20' ) start [2025-04-22 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962491', 'tblTempUsageDetail_20' ) end [2025-04-22 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:28:21] Production.INFO: ==22051== Releasing lock... [2025-04-22 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:29:05 [end_date_ymd] => 2025-04-22 04:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:29:05' and `end` < '2025-04-22 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-04-22 04:29:18] Production.INFO: count ==541 [2025-04-22 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:29:05 - End Time 2025-04-22 04:29:05 [2025-04-22 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962496', 'tblTempUsageDetail_20' ) start [2025-04-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962496', 'tblTempUsageDetail_20' ) end [2025-04-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962496', 'tblTempVendorCDR_20' ) start [2025-04-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962496', 'tblTempVendorCDR_20' ) end [2025-04-22 04:29:18] Production.INFO: ProcessCDR(1,14962496,1,1,2) [2025-04-22 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962496', 'tblTempUsageDetail_20' ) start [2025-04-22 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962496', 'tblTempUsageDetail_20' ) end [2025-04-22 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:29:21] Production.INFO: ==22126== Releasing lock... [2025-04-22 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:29:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:30:07 [end_date_ymd] => 2025-04-22 04:30:07 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:30:07' and `end` < '2025-04-22 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-04-22 04:30:19] Production.INFO: count ==542 [2025-04-22 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:30:07 - End Time 2025-04-22 04:30:07 [2025-04-22 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962503', 'tblTempUsageDetail_20' ) start [2025-04-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962503', 'tblTempUsageDetail_20' ) end [2025-04-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962503', 'tblTempVendorCDR_20' ) start [2025-04-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962503', 'tblTempVendorCDR_20' ) end [2025-04-22 04:30:19] Production.INFO: ProcessCDR(1,14962503,1,1,2) [2025-04-22 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962503', 'tblTempUsageDetail_20' ) start [2025-04-22 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962503', 'tblTempUsageDetail_20' ) end [2025-04-22 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:30:23] Production.INFO: ==22206== Releasing lock... [2025-04-22 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:30:23] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:31:05 [end_date_ymd] => 2025-04-22 04:31:05 [RateCDR] => 1 ) [2025-04-22 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:31:05' and `end` < '2025-04-22 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:31:18] Production.INFO: count ==542 [2025-04-22 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:31:05 - End Time 2025-04-22 04:31:05 [2025-04-22 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962508', 'tblTempUsageDetail_20' ) start [2025-04-22 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962508', 'tblTempUsageDetail_20' ) end [2025-04-22 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962508', 'tblTempVendorCDR_20' ) start [2025-04-22 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962508', 'tblTempVendorCDR_20' ) end [2025-04-22 04:31:18] Production.INFO: ProcessCDR(1,14962508,1,1,2) [2025-04-22 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962508', 'tblTempUsageDetail_20' ) start [2025-04-22 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962508', 'tblTempUsageDetail_20' ) end [2025-04-22 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:31:21] Production.INFO: ==22313== Releasing lock... [2025-04-22 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:31:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:32:06 [end_date_ymd] => 2025-04-22 04:32:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:32:06' and `end` < '2025-04-22 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-04-22 04:32:18] Production.INFO: count ==542 [2025-04-22 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:32:06 - End Time 2025-04-22 04:32:06 [2025-04-22 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962513', 'tblTempUsageDetail_20' ) start [2025-04-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962513', 'tblTempUsageDetail_20' ) end [2025-04-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962513', 'tblTempVendorCDR_20' ) start [2025-04-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962513', 'tblTempVendorCDR_20' ) end [2025-04-22 04:32:18] Production.INFO: ProcessCDR(1,14962513,1,1,2) [2025-04-22 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962513', 'tblTempUsageDetail_20' ) start [2025-04-22 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962513', 'tblTempUsageDetail_20' ) end [2025-04-22 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:32:22] Production.INFO: ==22395== Releasing lock... [2025-04-22 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:32:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:33:04 [end_date_ymd] => 2025-04-22 04:33:04 [RateCDR] => 1 ) [2025-04-22 04:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:33:04' and `end` < '2025-04-22 04:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:33:17] Production.INFO: count ==542 [2025-04-22 04:33:17] Production.ERROR: pbx CDR StartTime 2025-04-22 01:33:04 - End Time 2025-04-22 04:33:04 [2025-04-22 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962518', 'tblTempUsageDetail_20' ) start [2025-04-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962518', 'tblTempUsageDetail_20' ) end [2025-04-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962518', 'tblTempVendorCDR_20' ) start [2025-04-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962518', 'tblTempVendorCDR_20' ) end [2025-04-22 04:33:17] Production.INFO: ProcessCDR(1,14962518,1,1,2) [2025-04-22 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962518', 'tblTempUsageDetail_20' ) start [2025-04-22 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962518', 'tblTempUsageDetail_20' ) end [2025-04-22 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:33:21] Production.INFO: ==22469== Releasing lock... [2025-04-22 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:33:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:34:05 [end_date_ymd] => 2025-04-22 04:34:05 [RateCDR] => 1 ) [2025-04-22 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:34:05' and `end` < '2025-04-22 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:34:18] Production.INFO: count ==541 [2025-04-22 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:34:05 - End Time 2025-04-22 04:34:05 [2025-04-22 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962523', 'tblTempUsageDetail_20' ) start [2025-04-22 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962523', 'tblTempUsageDetail_20' ) end [2025-04-22 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962523', 'tblTempVendorCDR_20' ) start [2025-04-22 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962523', 'tblTempVendorCDR_20' ) end [2025-04-22 04:34:18] Production.INFO: ProcessCDR(1,14962523,1,1,2) [2025-04-22 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962523', 'tblTempUsageDetail_20' ) start [2025-04-22 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962523', 'tblTempUsageDetail_20' ) end [2025-04-22 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:34:21] Production.INFO: ==22545== Releasing lock... [2025-04-22 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:34:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:35:05 [end_date_ymd] => 2025-04-22 04:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:35:05' and `end` < '2025-04-22 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-04-22 04:35:17] Production.INFO: count ==539 [2025-04-22 04:35:17] Production.ERROR: pbx CDR StartTime 2025-04-22 01:35:05 - End Time 2025-04-22 04:35:05 [2025-04-22 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962528', 'tblTempUsageDetail_20' ) start [2025-04-22 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962528', 'tblTempUsageDetail_20' ) end [2025-04-22 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962528', 'tblTempVendorCDR_20' ) start [2025-04-22 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962528', 'tblTempVendorCDR_20' ) end [2025-04-22 04:35:17] Production.INFO: ProcessCDR(1,14962528,1,1,2) [2025-04-22 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962528', 'tblTempUsageDetail_20' ) start [2025-04-22 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962528', 'tblTempUsageDetail_20' ) end [2025-04-22 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:35:21] Production.INFO: ==22621== Releasing lock... [2025-04-22 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:35:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:36:05 [end_date_ymd] => 2025-04-22 04:36:05 [RateCDR] => 1 ) [2025-04-22 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:36:05' and `end` < '2025-04-22 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:36:18] Production.INFO: count ==539 [2025-04-22 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:36:05 - End Time 2025-04-22 04:36:05 [2025-04-22 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962533', 'tblTempUsageDetail_20' ) start [2025-04-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962533', 'tblTempUsageDetail_20' ) end [2025-04-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962533', 'tblTempVendorCDR_20' ) start [2025-04-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962533', 'tblTempVendorCDR_20' ) end [2025-04-22 04:36:18] Production.INFO: ProcessCDR(1,14962533,1,1,2) [2025-04-22 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962533', 'tblTempUsageDetail_20' ) start [2025-04-22 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962533', 'tblTempUsageDetail_20' ) end [2025-04-22 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:36:22] Production.INFO: ==22692== Releasing lock... [2025-04-22 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:36:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:37:05 [end_date_ymd] => 2025-04-22 04:37:05 [RateCDR] => 1 ) [2025-04-22 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:37:05' and `end` < '2025-04-22 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:37:18] Production.INFO: count ==539 [2025-04-22 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:37:05 - End Time 2025-04-22 04:37:05 [2025-04-22 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962538', 'tblTempUsageDetail_20' ) start [2025-04-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962538', 'tblTempUsageDetail_20' ) end [2025-04-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962538', 'tblTempVendorCDR_20' ) start [2025-04-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962538', 'tblTempVendorCDR_20' ) end [2025-04-22 04:37:18] Production.INFO: ProcessCDR(1,14962538,1,1,2) [2025-04-22 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962538', 'tblTempUsageDetail_20' ) start [2025-04-22 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962538', 'tblTempUsageDetail_20' ) end [2025-04-22 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:37:22] Production.INFO: ==22767== Releasing lock... [2025-04-22 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:37:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:38:05 [end_date_ymd] => 2025-04-22 04:38:05 [RateCDR] => 1 ) [2025-04-22 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:38:05' and `end` < '2025-04-22 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:38:18] Production.INFO: count ==539 [2025-04-22 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:38:05 - End Time 2025-04-22 04:38:05 [2025-04-22 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962543', 'tblTempUsageDetail_20' ) start [2025-04-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962543', 'tblTempUsageDetail_20' ) end [2025-04-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962543', 'tblTempVendorCDR_20' ) start [2025-04-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962543', 'tblTempVendorCDR_20' ) end [2025-04-22 04:38:18] Production.INFO: ProcessCDR(1,14962543,1,1,2) [2025-04-22 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962543', 'tblTempUsageDetail_20' ) start [2025-04-22 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962543', 'tblTempUsageDetail_20' ) end [2025-04-22 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:38:22] Production.INFO: ==22841== Releasing lock... [2025-04-22 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:38:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:39:05 [end_date_ymd] => 2025-04-22 04:39:05 [RateCDR] => 1 ) [2025-04-22 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:39:05' and `end` < '2025-04-22 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:39:18] Production.INFO: count ==539 [2025-04-22 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:39:05 - End Time 2025-04-22 04:39:05 [2025-04-22 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962548', 'tblTempUsageDetail_20' ) start [2025-04-22 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962548', 'tblTempUsageDetail_20' ) end [2025-04-22 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962548', 'tblTempVendorCDR_20' ) start [2025-04-22 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962548', 'tblTempVendorCDR_20' ) end [2025-04-22 04:39:18] Production.INFO: ProcessCDR(1,14962548,1,1,2) [2025-04-22 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962548', 'tblTempUsageDetail_20' ) start [2025-04-22 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962548', 'tblTempUsageDetail_20' ) end [2025-04-22 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:39:21] Production.INFO: ==22920== Releasing lock... [2025-04-22 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:39:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:40:06 [end_date_ymd] => 2025-04-22 04:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:40:06' and `end` < '2025-04-22 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-04-22 04:40:19] Production.INFO: count ==538 [2025-04-22 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:40:06 - End Time 2025-04-22 04:40:06 [2025-04-22 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962554', 'tblTempUsageDetail_20' ) start [2025-04-22 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962554', 'tblTempUsageDetail_20' ) end [2025-04-22 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962554', 'tblTempVendorCDR_20' ) start [2025-04-22 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962554', 'tblTempVendorCDR_20' ) end [2025-04-22 04:40:19] Production.INFO: ProcessCDR(1,14962554,1,1,2) [2025-04-22 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962554', 'tblTempUsageDetail_20' ) start [2025-04-22 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962554', 'tblTempUsageDetail_20' ) end [2025-04-22 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:40:22] Production.INFO: ==22999== Releasing lock... [2025-04-22 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:41:05 [end_date_ymd] => 2025-04-22 04:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:41:05' and `end` < '2025-04-22 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-04-22 04:41:17] Production.INFO: count ==537 [2025-04-22 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:41:05 - End Time 2025-04-22 04:41:05 [2025-04-22 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962559', 'tblTempUsageDetail_20' ) start [2025-04-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962559', 'tblTempUsageDetail_20' ) end [2025-04-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962559', 'tblTempVendorCDR_20' ) start [2025-04-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962559', 'tblTempVendorCDR_20' ) end [2025-04-22 04:41:18] Production.INFO: ProcessCDR(1,14962559,1,1,2) [2025-04-22 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962559', 'tblTempUsageDetail_20' ) start [2025-04-22 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962559', 'tblTempUsageDetail_20' ) end [2025-04-22 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:41:21] Production.INFO: ==23074== Releasing lock... [2025-04-22 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:41:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:42:05 [end_date_ymd] => 2025-04-22 04:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:42:05' and `end` < '2025-04-22 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-04-22 04:42:18] Production.INFO: count ==539 [2025-04-22 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:42:05 - End Time 2025-04-22 04:42:05 [2025-04-22 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962564', 'tblTempUsageDetail_20' ) start [2025-04-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962564', 'tblTempUsageDetail_20' ) end [2025-04-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962564', 'tblTempVendorCDR_20' ) start [2025-04-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962564', 'tblTempVendorCDR_20' ) end [2025-04-22 04:42:18] Production.INFO: ProcessCDR(1,14962564,1,1,2) [2025-04-22 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962564', 'tblTempUsageDetail_20' ) start [2025-04-22 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962564', 'tblTempUsageDetail_20' ) end [2025-04-22 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:42:22] Production.INFO: ==23184== Releasing lock... [2025-04-22 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:42:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:43:06 [end_date_ymd] => 2025-04-22 04:43:06 [RateCDR] => 1 ) [2025-04-22 04: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-04-22 01:43:06' and `end` < '2025-04-22 04: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-04-22 04:43:18] Production.INFO: count ==539 [2025-04-22 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:43:06 - End Time 2025-04-22 04:43:06 [2025-04-22 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962569', 'tblTempUsageDetail_20' ) start [2025-04-22 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962569', 'tblTempUsageDetail_20' ) end [2025-04-22 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962569', 'tblTempVendorCDR_20' ) start [2025-04-22 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962569', 'tblTempVendorCDR_20' ) end [2025-04-22 04:43:19] Production.INFO: ProcessCDR(1,14962569,1,1,2) [2025-04-22 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962569', 'tblTempUsageDetail_20' ) start [2025-04-22 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962569', 'tblTempUsageDetail_20' ) end [2025-04-22 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:43:22] Production.INFO: ==23261== Releasing lock... [2025-04-22 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:43:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:44:05 [end_date_ymd] => 2025-04-22 04:44:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:44:05' and `end` < '2025-04-22 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-04-22 04:44:18] Production.INFO: count ==539 [2025-04-22 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:44:05 - End Time 2025-04-22 04:44:05 [2025-04-22 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962574', 'tblTempUsageDetail_20' ) start [2025-04-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962574', 'tblTempUsageDetail_20' ) end [2025-04-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962574', 'tblTempVendorCDR_20' ) start [2025-04-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962574', 'tblTempVendorCDR_20' ) end [2025-04-22 04:44:18] Production.INFO: ProcessCDR(1,14962574,1,1,2) [2025-04-22 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962574', 'tblTempUsageDetail_20' ) start [2025-04-22 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962574', 'tblTempUsageDetail_20' ) end [2025-04-22 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:44:22] Production.INFO: ==23337== Releasing lock... [2025-04-22 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:44:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:45:05 [end_date_ymd] => 2025-04-22 04:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:45:05' and `end` < '2025-04-22 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-04-22 04:45:18] Production.INFO: count ==539 [2025-04-22 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:45:05 - End Time 2025-04-22 04:45:05 [2025-04-22 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962579', 'tblTempUsageDetail_20' ) start [2025-04-22 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962579', 'tblTempUsageDetail_20' ) end [2025-04-22 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962579', 'tblTempVendorCDR_20' ) start [2025-04-22 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962579', 'tblTempVendorCDR_20' ) end [2025-04-22 04:45:18] Production.INFO: ProcessCDR(1,14962579,1,1,2) [2025-04-22 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962579', 'tblTempUsageDetail_20' ) start [2025-04-22 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962579', 'tblTempUsageDetail_20' ) end [2025-04-22 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:45:22] Production.INFO: ==23411== Releasing lock... [2025-04-22 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:45:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:46:05 [end_date_ymd] => 2025-04-22 04:46:05 [RateCDR] => 1 ) [2025-04-22 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:46:05' and `end` < '2025-04-22 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:46:18] Production.INFO: count ==539 [2025-04-22 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:46:05 - End Time 2025-04-22 04:46:05 [2025-04-22 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962584', 'tblTempUsageDetail_20' ) start [2025-04-22 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962584', 'tblTempUsageDetail_20' ) end [2025-04-22 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962584', 'tblTempVendorCDR_20' ) start [2025-04-22 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962584', 'tblTempVendorCDR_20' ) end [2025-04-22 04:46:18] Production.INFO: ProcessCDR(1,14962584,1,1,2) [2025-04-22 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962584', 'tblTempUsageDetail_20' ) start [2025-04-22 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962584', 'tblTempUsageDetail_20' ) end [2025-04-22 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:46:21] Production.INFO: ==23493== Releasing lock... [2025-04-22 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:46:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:47:05 [end_date_ymd] => 2025-04-22 04:47:05 [RateCDR] => 1 ) [2025-04-22 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:47:05' and `end` < '2025-04-22 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:47:18] Production.INFO: count ==539 [2025-04-22 04:47:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:47:05 - End Time 2025-04-22 04:47:05 [2025-04-22 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962589', 'tblTempUsageDetail_20' ) start [2025-04-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962589', 'tblTempUsageDetail_20' ) end [2025-04-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962589', 'tblTempVendorCDR_20' ) start [2025-04-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962589', 'tblTempVendorCDR_20' ) end [2025-04-22 04:47:18] Production.INFO: ProcessCDR(1,14962589,1,1,2) [2025-04-22 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962589', 'tblTempUsageDetail_20' ) start [2025-04-22 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962589', 'tblTempUsageDetail_20' ) end [2025-04-22 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:47:22] Production.INFO: ==23565== Releasing lock... [2025-04-22 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:47:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:48:05 [end_date_ymd] => 2025-04-22 04:48:05 [RateCDR] => 1 ) [2025-04-22 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:48:05' and `end` < '2025-04-22 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:48:18] Production.INFO: count ==536 [2025-04-22 04:48:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:48:05 - End Time 2025-04-22 04:48:05 [2025-04-22 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962594', 'tblTempUsageDetail_20' ) start [2025-04-22 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962594', 'tblTempUsageDetail_20' ) end [2025-04-22 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962594', 'tblTempVendorCDR_20' ) start [2025-04-22 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962594', 'tblTempVendorCDR_20' ) end [2025-04-22 04:48:18] Production.INFO: ProcessCDR(1,14962594,1,1,2) [2025-04-22 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962594', 'tblTempUsageDetail_20' ) start [2025-04-22 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962594', 'tblTempUsageDetail_20' ) end [2025-04-22 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:48:21] Production.INFO: ==23637== Releasing lock... [2025-04-22 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:49:05 [end_date_ymd] => 2025-04-22 04:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:49:05' and `end` < '2025-04-22 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-04-22 04:49:18] Production.INFO: count ==534 [2025-04-22 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:49:05 - End Time 2025-04-22 04:49:05 [2025-04-22 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962599', 'tblTempUsageDetail_20' ) start [2025-04-22 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962599', 'tblTempUsageDetail_20' ) end [2025-04-22 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962599', 'tblTempVendorCDR_20' ) start [2025-04-22 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962599', 'tblTempVendorCDR_20' ) end [2025-04-22 04:49:18] Production.INFO: ProcessCDR(1,14962599,1,1,2) [2025-04-22 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962599', 'tblTempUsageDetail_20' ) start [2025-04-22 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962599', 'tblTempUsageDetail_20' ) end [2025-04-22 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:49:22] Production.INFO: ==23716== Releasing lock... [2025-04-22 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:49:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:50:05 [end_date_ymd] => 2025-04-22 04:50:05 [RateCDR] => 1 ) [2025-04-22 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:50:05' and `end` < '2025-04-22 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:50:18] Production.INFO: count ==526 [2025-04-22 04:50:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:50:05 - End Time 2025-04-22 04:50:05 [2025-04-22 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962604', 'tblTempUsageDetail_20' ) start [2025-04-22 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962604', 'tblTempUsageDetail_20' ) end [2025-04-22 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962604', 'tblTempVendorCDR_20' ) start [2025-04-22 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962604', 'tblTempVendorCDR_20' ) end [2025-04-22 04:50:18] Production.INFO: ProcessCDR(1,14962604,1,1,2) [2025-04-22 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962604', 'tblTempUsageDetail_20' ) start [2025-04-22 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962604', 'tblTempUsageDetail_20' ) end [2025-04-22 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:50:22] Production.INFO: ==23792== Releasing lock... [2025-04-22 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:51:05 [end_date_ymd] => 2025-04-22 04:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:51:05' and `end` < '2025-04-22 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-04-22 04:51:19] Production.INFO: count ==525 [2025-04-22 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:51:05 - End Time 2025-04-22 04:51:05 [2025-04-22 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962610', 'tblTempUsageDetail_20' ) start [2025-04-22 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962610', 'tblTempUsageDetail_20' ) end [2025-04-22 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962610', 'tblTempVendorCDR_20' ) start [2025-04-22 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962610', 'tblTempVendorCDR_20' ) end [2025-04-22 04:51:19] Production.INFO: ProcessCDR(1,14962610,1,1,2) [2025-04-22 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962610', 'tblTempUsageDetail_20' ) start [2025-04-22 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962610', 'tblTempUsageDetail_20' ) end [2025-04-22 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:51:22] Production.INFO: ==23869== Releasing lock... [2025-04-22 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:51:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:52:05 [end_date_ymd] => 2025-04-22 04:52:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:52:05' and `end` < '2025-04-22 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-04-22 04:52:19] Production.INFO: count ==525 [2025-04-22 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:52:05 - End Time 2025-04-22 04:52:05 [2025-04-22 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962615', 'tblTempUsageDetail_20' ) start [2025-04-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962615', 'tblTempUsageDetail_20' ) end [2025-04-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962615', 'tblTempVendorCDR_20' ) start [2025-04-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962615', 'tblTempVendorCDR_20' ) end [2025-04-22 04:52:19] Production.INFO: ProcessCDR(1,14962615,1,1,2) [2025-04-22 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962615', 'tblTempUsageDetail_20' ) start [2025-04-22 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962615', 'tblTempUsageDetail_20' ) end [2025-04-22 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:52:23] Production.INFO: ==23940== Releasing lock... [2025-04-22 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:52:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:53:05 [end_date_ymd] => 2025-04-22 04:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:53:05' and `end` < '2025-04-22 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-04-22 04:53:18] Production.INFO: count ==526 [2025-04-22 04:53:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:53:05 - End Time 2025-04-22 04:53:05 [2025-04-22 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962620', 'tblTempUsageDetail_20' ) start [2025-04-22 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962620', 'tblTempUsageDetail_20' ) end [2025-04-22 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962620', 'tblTempVendorCDR_20' ) start [2025-04-22 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962620', 'tblTempVendorCDR_20' ) end [2025-04-22 04:53:18] Production.INFO: ProcessCDR(1,14962620,1,1,2) [2025-04-22 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962620', 'tblTempUsageDetail_20' ) start [2025-04-22 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962620', 'tblTempUsageDetail_20' ) end [2025-04-22 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:53:21] Production.INFO: ==24012== Releasing lock... [2025-04-22 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:53:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:54:05 [end_date_ymd] => 2025-04-22 04:54:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:54:05' and `end` < '2025-04-22 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-04-22 04:54:18] Production.INFO: count ==526 [2025-04-22 04:54:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:54:05 - End Time 2025-04-22 04:54:05 [2025-04-22 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962625', 'tblTempUsageDetail_20' ) start [2025-04-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962625', 'tblTempUsageDetail_20' ) end [2025-04-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962625', 'tblTempVendorCDR_20' ) start [2025-04-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962625', 'tblTempVendorCDR_20' ) end [2025-04-22 04:54:18] Production.INFO: ProcessCDR(1,14962625,1,1,2) [2025-04-22 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962625', 'tblTempUsageDetail_20' ) start [2025-04-22 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962625', 'tblTempUsageDetail_20' ) end [2025-04-22 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:54:22] Production.INFO: ==24081== Releasing lock... [2025-04-22 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:54:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:55:05 [end_date_ymd] => 2025-04-22 04:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:55:05' and `end` < '2025-04-22 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-04-22 04:55:19] Production.INFO: count ==526 [2025-04-22 04:55:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:55:05 - End Time 2025-04-22 04:55:05 [2025-04-22 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962630', 'tblTempUsageDetail_20' ) start [2025-04-22 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962630', 'tblTempUsageDetail_20' ) end [2025-04-22 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962630', 'tblTempVendorCDR_20' ) start [2025-04-22 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962630', 'tblTempVendorCDR_20' ) end [2025-04-22 04:55:19] Production.INFO: ProcessCDR(1,14962630,1,1,2) [2025-04-22 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962630', 'tblTempUsageDetail_20' ) start [2025-04-22 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962630', 'tblTempUsageDetail_20' ) end [2025-04-22 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:55:22] Production.INFO: ==24155== Releasing lock... [2025-04-22 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:55:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:56:05 [end_date_ymd] => 2025-04-22 04:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:56:05' and `end` < '2025-04-22 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-04-22 04:56:18] Production.INFO: count ==523 [2025-04-22 04:56:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:56:05 - End Time 2025-04-22 04:56:05 [2025-04-22 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962635', 'tblTempUsageDetail_20' ) start [2025-04-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962635', 'tblTempUsageDetail_20' ) end [2025-04-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962635', 'tblTempVendorCDR_20' ) start [2025-04-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962635', 'tblTempVendorCDR_20' ) end [2025-04-22 04:56:18] Production.INFO: ProcessCDR(1,14962635,1,1,2) [2025-04-22 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962635', 'tblTempUsageDetail_20' ) start [2025-04-22 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962635', 'tblTempUsageDetail_20' ) end [2025-04-22 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:56:22] Production.INFO: ==24237== Releasing lock... [2025-04-22 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:56:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:57:05 [end_date_ymd] => 2025-04-22 04:57:05 [RateCDR] => 1 ) [2025-04-22 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:57:05' and `end` < '2025-04-22 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:57:20] Production.INFO: count ==524 [2025-04-22 04:57:20] Production.ERROR: pbx CDR StartTime 2025-04-22 01:57:05 - End Time 2025-04-22 04:57:05 [2025-04-22 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962640', 'tblTempUsageDetail_20' ) start [2025-04-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962640', 'tblTempUsageDetail_20' ) end [2025-04-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962640', 'tblTempVendorCDR_20' ) start [2025-04-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962640', 'tblTempVendorCDR_20' ) end [2025-04-22 04:57:20] Production.INFO: ProcessCDR(1,14962640,1,1,2) [2025-04-22 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962640', 'tblTempUsageDetail_20' ) start [2025-04-22 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962640', 'tblTempUsageDetail_20' ) end [2025-04-22 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:57:24] Production.INFO: ==24314== Releasing lock... [2025-04-22 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:57:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:58:06 [end_date_ymd] => 2025-04-22 04:58:06 [RateCDR] => 1 ) [2025-04-22 04:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 01:58:06' and `end` < '2025-04-22 04:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 04:58:19] Production.INFO: count ==522 [2025-04-22 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-22 01:58:06 - End Time 2025-04-22 04:58:06 [2025-04-22 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962645', 'tblTempUsageDetail_20' ) start [2025-04-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962645', 'tblTempUsageDetail_20' ) end [2025-04-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962645', 'tblTempVendorCDR_20' ) start [2025-04-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962645', 'tblTempVendorCDR_20' ) end [2025-04-22 04:58:19] Production.INFO: ProcessCDR(1,14962645,1,1,2) [2025-04-22 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962645', 'tblTempUsageDetail_20' ) start [2025-04-22 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962645', 'tblTempUsageDetail_20' ) end [2025-04-22 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:58:22] Production.INFO: ==24434== Releasing lock... [2025-04-22 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:58:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 01:59:05 [end_date_ymd] => 2025-04-22 04:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 01:59:05' and `end` < '2025-04-22 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-04-22 04:59:18] Production.INFO: count ==517 [2025-04-22 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-22 01:59:05 - End Time 2025-04-22 04:59:05 [2025-04-22 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962650', 'tblTempUsageDetail_20' ) start [2025-04-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962650', 'tblTempUsageDetail_20' ) end [2025-04-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962650', 'tblTempVendorCDR_20' ) start [2025-04-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962650', 'tblTempVendorCDR_20' ) end [2025-04-22 04:59:18] Production.INFO: ProcessCDR(1,14962650,1,1,2) [2025-04-22 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962650', 'tblTempUsageDetail_20' ) start [2025-04-22 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962650', 'tblTempUsageDetail_20' ) end [2025-04-22 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 04:59:22] Production.INFO: ==24543== Releasing lock... [2025-04-22 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 04:59:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:00:06 [end_date_ymd] => 2025-04-22 05:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:00:06' and `end` < '2025-04-22 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-04-22 05:00:19] Production.INFO: count ==505 [2025-04-22 05:00:19] Production.ERROR: pbx CDR StartTime 2025-04-22 02:00:06 - End Time 2025-04-22 05:00:06 [2025-04-22 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962656', 'tblTempUsageDetail_20' ) start [2025-04-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962656', 'tblTempUsageDetail_20' ) end [2025-04-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962656', 'tblTempVendorCDR_20' ) start [2025-04-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962656', 'tblTempVendorCDR_20' ) end [2025-04-22 05:00:19] Production.INFO: ProcessCDR(1,14962656,1,1,2) [2025-04-22 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962656', 'tblTempUsageDetail_20' ) start [2025-04-22 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962656', 'tblTempUsageDetail_20' ) end [2025-04-22 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:00:23] Production.INFO: ==24650== Releasing lock... [2025-04-22 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:00:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 05:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:01:04 [end_date_ymd] => 2025-04-22 05:01:04 [RateCDR] => 1 ) [2025-04-22 05: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-04-22 02:01:04' and `end` < '2025-04-22 05: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-04-22 05:01:17] Production.INFO: count ==500 [2025-04-22 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:01:04 - End Time 2025-04-22 05:01:04 [2025-04-22 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962661', 'tblTempUsageDetail_20' ) start [2025-04-22 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962661', 'tblTempUsageDetail_20' ) end [2025-04-22 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962661', 'tblTempVendorCDR_20' ) start [2025-04-22 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962661', 'tblTempVendorCDR_20' ) end [2025-04-22 05:01:18] Production.INFO: ProcessCDR(1,14962661,1,1,2) [2025-04-22 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962661', 'tblTempUsageDetail_20' ) start [2025-04-22 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962661', 'tblTempUsageDetail_20' ) end [2025-04-22 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:01:21] Production.INFO: ==24769== Releasing lock... [2025-04-22 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:01:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:02:05 [end_date_ymd] => 2025-04-22 05:02:05 [RateCDR] => 1 ) [2025-04-22 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:02:05' and `end` < '2025-04-22 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:02:19] Production.INFO: count ==497 [2025-04-22 05:02:19] Production.ERROR: pbx CDR StartTime 2025-04-22 02:02:05 - End Time 2025-04-22 05:02:05 [2025-04-22 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962666', 'tblTempUsageDetail_20' ) start [2025-04-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962666', 'tblTempUsageDetail_20' ) end [2025-04-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962666', 'tblTempVendorCDR_20' ) start [2025-04-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962666', 'tblTempVendorCDR_20' ) end [2025-04-22 05:02:19] Production.INFO: ProcessCDR(1,14962666,1,1,2) [2025-04-22 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962666', 'tblTempUsageDetail_20' ) start [2025-04-22 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962666', 'tblTempUsageDetail_20' ) end [2025-04-22 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:02:22] Production.INFO: ==24880== Releasing lock... [2025-04-22 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:02:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 05:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:03:04 [end_date_ymd] => 2025-04-22 05:03:04 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:03:04' and `end` < '2025-04-22 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-04-22 05:03:17] Production.INFO: count ==500 [2025-04-22 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:03:04 - End Time 2025-04-22 05:03:04 [2025-04-22 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962667', 'tblTempUsageDetail_20' ) start [2025-04-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962667', 'tblTempUsageDetail_20' ) end [2025-04-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962667', 'tblTempVendorCDR_20' ) start [2025-04-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962667', 'tblTempVendorCDR_20' ) end [2025-04-22 05:03:18] Production.INFO: ProcessCDR(1,14962667,1,1,2) [2025-04-22 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962667', 'tblTempUsageDetail_20' ) start [2025-04-22 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962667', 'tblTempUsageDetail_20' ) end [2025-04-22 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:03:21] Production.INFO: ==24997== Releasing lock... [2025-04-22 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:03:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:04:05 [end_date_ymd] => 2025-04-22 05:04:05 [RateCDR] => 1 ) [2025-04-22 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:04:05' and `end` < '2025-04-22 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:04:17] Production.INFO: count ==500 [2025-04-22 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:04:05 - End Time 2025-04-22 05:04:05 [2025-04-22 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962676', 'tblTempUsageDetail_20' ) start [2025-04-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962676', 'tblTempUsageDetail_20' ) end [2025-04-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962676', 'tblTempVendorCDR_20' ) start [2025-04-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962676', 'tblTempVendorCDR_20' ) end [2025-04-22 05:04:18] Production.INFO: ProcessCDR(1,14962676,1,1,2) [2025-04-22 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962676', 'tblTempUsageDetail_20' ) start [2025-04-22 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962676', 'tblTempUsageDetail_20' ) end [2025-04-22 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:04:21] Production.INFO: ==25117== Releasing lock... [2025-04-22 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:04:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:05:06 [end_date_ymd] => 2025-04-22 05:05:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:05:06' and `end` < '2025-04-22 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-04-22 05:05:19] Production.INFO: count ==500 [2025-04-22 05:05:19] Production.ERROR: pbx CDR StartTime 2025-04-22 02:05:06 - End Time 2025-04-22 05:05:06 [2025-04-22 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962681', 'tblTempUsageDetail_20' ) start [2025-04-22 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962681', 'tblTempUsageDetail_20' ) end [2025-04-22 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962681', 'tblTempVendorCDR_20' ) start [2025-04-22 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962681', 'tblTempVendorCDR_20' ) end [2025-04-22 05:05:19] Production.INFO: ProcessCDR(1,14962681,1,1,2) [2025-04-22 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962681', 'tblTempUsageDetail_20' ) start [2025-04-22 05:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962681', 'tblTempUsageDetail_20' ) end [2025-04-22 05:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:05:23] Production.INFO: ==25242== Releasing lock... [2025-04-22 05:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:05:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:06:05 [end_date_ymd] => 2025-04-22 05:06:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:06:05' and `end` < '2025-04-22 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-04-22 05:06:18] Production.INFO: count ==499 [2025-04-22 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:06:05 - End Time 2025-04-22 05:06:05 [2025-04-22 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962686', 'tblTempUsageDetail_20' ) start [2025-04-22 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962686', 'tblTempUsageDetail_20' ) end [2025-04-22 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962686', 'tblTempVendorCDR_20' ) start [2025-04-22 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962686', 'tblTempVendorCDR_20' ) end [2025-04-22 05:06:18] Production.INFO: ProcessCDR(1,14962686,1,1,2) [2025-04-22 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962686', 'tblTempUsageDetail_20' ) start [2025-04-22 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962686', 'tblTempUsageDetail_20' ) end [2025-04-22 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:06:21] Production.INFO: ==25359== Releasing lock... [2025-04-22 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:06:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:07:05 [end_date_ymd] => 2025-04-22 05:07:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:07:05' and `end` < '2025-04-22 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-04-22 05:07:18] Production.INFO: count ==498 [2025-04-22 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:07:05 - End Time 2025-04-22 05:07:05 [2025-04-22 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962691', 'tblTempUsageDetail_20' ) start [2025-04-22 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962691', 'tblTempUsageDetail_20' ) end [2025-04-22 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962691', 'tblTempVendorCDR_20' ) start [2025-04-22 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962691', 'tblTempVendorCDR_20' ) end [2025-04-22 05:07:18] Production.INFO: ProcessCDR(1,14962691,1,1,2) [2025-04-22 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962691', 'tblTempUsageDetail_20' ) start [2025-04-22 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962691', 'tblTempUsageDetail_20' ) end [2025-04-22 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:07:22] Production.INFO: ==25484== Releasing lock... [2025-04-22 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:07:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:08:05 [end_date_ymd] => 2025-04-22 05:08:05 [RateCDR] => 1 ) [2025-04-22 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:08:05' and `end` < '2025-04-22 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:08:18] Production.INFO: count ==491 [2025-04-22 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:08:05 - End Time 2025-04-22 05:08:05 [2025-04-22 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962696', 'tblTempUsageDetail_20' ) start [2025-04-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962696', 'tblTempUsageDetail_20' ) end [2025-04-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962696', 'tblTempVendorCDR_20' ) start [2025-04-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962696', 'tblTempVendorCDR_20' ) end [2025-04-22 05:08:18] Production.INFO: ProcessCDR(1,14962696,1,1,2) [2025-04-22 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962696', 'tblTempUsageDetail_20' ) start [2025-04-22 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962696', 'tblTempUsageDetail_20' ) end [2025-04-22 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:08:21] Production.INFO: ==25600== Releasing lock... [2025-04-22 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:08:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:09:05 [end_date_ymd] => 2025-04-22 05:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:09:05' and `end` < '2025-04-22 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-04-22 05:09:18] Production.INFO: count ==448 [2025-04-22 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:09:05 - End Time 2025-04-22 05:09:05 [2025-04-22 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962701', 'tblTempUsageDetail_20' ) start [2025-04-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962701', 'tblTempUsageDetail_20' ) end [2025-04-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962701', 'tblTempVendorCDR_20' ) start [2025-04-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962701', 'tblTempVendorCDR_20' ) end [2025-04-22 05:09:18] Production.INFO: ProcessCDR(1,14962701,1,1,2) [2025-04-22 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962701', 'tblTempUsageDetail_20' ) start [2025-04-22 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962701', 'tblTempUsageDetail_20' ) end [2025-04-22 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:09:21] Production.INFO: ==25721== Releasing lock... [2025-04-22 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:10:06 [end_date_ymd] => 2025-04-22 05:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:10:06' and `end` < '2025-04-22 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-04-22 05:10:19] Production.INFO: count ==393 [2025-04-22 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-22 02:10:06 - End Time 2025-04-22 05:10:06 [2025-04-22 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962707', 'tblTempUsageDetail_20' ) start [2025-04-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962707', 'tblTempUsageDetail_20' ) end [2025-04-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962707', 'tblTempVendorCDR_20' ) start [2025-04-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962707', 'tblTempVendorCDR_20' ) end [2025-04-22 05:10:19] Production.INFO: ProcessCDR(1,14962707,1,1,2) [2025-04-22 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962707', 'tblTempUsageDetail_20' ) start [2025-04-22 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962707', 'tblTempUsageDetail_20' ) end [2025-04-22 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:10:22] Production.INFO: ==25845== Releasing lock... [2025-04-22 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:10:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:11:06 [end_date_ymd] => 2025-04-22 05:11:06 [RateCDR] => 1 ) [2025-04-22 05:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:11:06' and `end` < '2025-04-22 05:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:11:18] Production.INFO: count ==336 [2025-04-22 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:11:06 - End Time 2025-04-22 05:11:06 [2025-04-22 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962712', 'tblTempUsageDetail_20' ) start [2025-04-22 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962712', 'tblTempUsageDetail_20' ) end [2025-04-22 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962712', 'tblTempVendorCDR_20' ) start [2025-04-22 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962712', 'tblTempVendorCDR_20' ) end [2025-04-22 05:11:18] Production.INFO: ProcessCDR(1,14962712,1,1,2) [2025-04-22 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962712', 'tblTempUsageDetail_20' ) start [2025-04-22 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962712', 'tblTempUsageDetail_20' ) end [2025-04-22 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:11:22] Production.INFO: ==25966== Releasing lock... [2025-04-22 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:11:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-22 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:12:05 [end_date_ymd] => 2025-04-22 05:12:05 [RateCDR] => 1 ) [2025-04-22 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:12:05' and `end` < '2025-04-22 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:12:17] Production.INFO: count ==293 [2025-04-22 05:12:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:12:05 - End Time 2025-04-22 05:12:05 [2025-04-22 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962717', 'tblTempUsageDetail_20' ) start [2025-04-22 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962717', 'tblTempUsageDetail_20' ) end [2025-04-22 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962717', 'tblTempVendorCDR_20' ) start [2025-04-22 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962717', 'tblTempVendorCDR_20' ) end [2025-04-22 05:12:17] Production.INFO: ProcessCDR(1,14962717,1,1,2) [2025-04-22 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962717', 'tblTempUsageDetail_20' ) start [2025-04-22 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962717', 'tblTempUsageDetail_20' ) end [2025-04-22 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:12:21] Production.INFO: ==26087== Releasing lock... [2025-04-22 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-22 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:13:05 [end_date_ymd] => 2025-04-22 05:13:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:13:05' and `end` < '2025-04-22 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-04-22 05:13:18] Production.INFO: count ==250 [2025-04-22 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:13:05 - End Time 2025-04-22 05:13:05 [2025-04-22 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962722', 'tblTempUsageDetail_20' ) start [2025-04-22 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962722', 'tblTempUsageDetail_20' ) end [2025-04-22 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962722', 'tblTempVendorCDR_20' ) start [2025-04-22 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962722', 'tblTempVendorCDR_20' ) end [2025-04-22 05:13:18] Production.INFO: ProcessCDR(1,14962722,1,1,2) [2025-04-22 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962722', 'tblTempUsageDetail_20' ) start [2025-04-22 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962722', 'tblTempUsageDetail_20' ) end [2025-04-22 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:13:21] Production.INFO: ==26253== Releasing lock... [2025-04-22 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-22 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:14:05 [end_date_ymd] => 2025-04-22 05:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:14:05' and `end` < '2025-04-22 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-04-22 05:14:17] Production.INFO: count ==208 [2025-04-22 05:14:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:14:05 - End Time 2025-04-22 05:14:05 [2025-04-22 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962727', 'tblTempUsageDetail_20' ) start [2025-04-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962727', 'tblTempUsageDetail_20' ) end [2025-04-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962727', 'tblTempVendorCDR_20' ) start [2025-04-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962727', 'tblTempVendorCDR_20' ) end [2025-04-22 05:14:17] Production.INFO: ProcessCDR(1,14962727,1,1,2) [2025-04-22 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962727', 'tblTempUsageDetail_20' ) start [2025-04-22 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962727', 'tblTempUsageDetail_20' ) end [2025-04-22 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:14:21] Production.INFO: ==26374== Releasing lock... [2025-04-22 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-22 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:15:05 [end_date_ymd] => 2025-04-22 05:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:15:05' and `end` < '2025-04-22 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-04-22 05:15:17] Production.INFO: count ==162 [2025-04-22 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:15:05 - End Time 2025-04-22 05:15:05 [2025-04-22 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962732', 'tblTempUsageDetail_20' ) start [2025-04-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962732', 'tblTempUsageDetail_20' ) end [2025-04-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962732', 'tblTempVendorCDR_20' ) start [2025-04-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962732', 'tblTempVendorCDR_20' ) end [2025-04-22 05:15:18] Production.INFO: ProcessCDR(1,14962732,1,1,2) [2025-04-22 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962732', 'tblTempUsageDetail_20' ) start [2025-04-22 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962732', 'tblTempUsageDetail_20' ) end [2025-04-22 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:15:21] Production.INFO: ==26495== Releasing lock... [2025-04-22 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-22 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:16:06 [end_date_ymd] => 2025-04-22 05:16:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:16:06' and `end` < '2025-04-22 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-04-22 05:16:19] Production.INFO: count ==119 [2025-04-22 05:16:19] Production.ERROR: pbx CDR StartTime 2025-04-22 02:16:06 - End Time 2025-04-22 05:16:06 [2025-04-22 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962737', 'tblTempUsageDetail_20' ) start [2025-04-22 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962737', 'tblTempUsageDetail_20' ) end [2025-04-22 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962737', 'tblTempVendorCDR_20' ) start [2025-04-22 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962737', 'tblTempVendorCDR_20' ) end [2025-04-22 05:16:19] Production.INFO: ProcessCDR(1,14962737,1,1,2) [2025-04-22 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962737', 'tblTempUsageDetail_20' ) start [2025-04-22 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962737', 'tblTempUsageDetail_20' ) end [2025-04-22 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:16:22] Production.INFO: ==26619== Releasing lock... [2025-04-22 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:16:22] Production.INFO: 29 MB #Memory Used# [2025-04-22 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:17:05 [end_date_ymd] => 2025-04-22 05:17:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:17:05' and `end` < '2025-04-22 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-04-22 05:17:17] Production.INFO: count ==85 [2025-04-22 05:17:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:17:05 - End Time 2025-04-22 05:17:05 [2025-04-22 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962742', 'tblTempUsageDetail_20' ) start [2025-04-22 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962742', 'tblTempUsageDetail_20' ) end [2025-04-22 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962742', 'tblTempVendorCDR_20' ) start [2025-04-22 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962742', 'tblTempVendorCDR_20' ) end [2025-04-22 05:17:17] Production.INFO: ProcessCDR(1,14962742,1,1,2) [2025-04-22 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962742', 'tblTempUsageDetail_20' ) start [2025-04-22 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962742', 'tblTempUsageDetail_20' ) end [2025-04-22 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:17:21] Production.INFO: ==26738== Releasing lock... [2025-04-22 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:18:06 [end_date_ymd] => 2025-04-22 05:18:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:18:06' and `end` < '2025-04-22 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-04-22 05:18:18] Production.INFO: count ==85 [2025-04-22 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:18:06 - End Time 2025-04-22 05:18:06 [2025-04-22 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962747', 'tblTempUsageDetail_20' ) start [2025-04-22 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962747', 'tblTempUsageDetail_20' ) end [2025-04-22 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962747', 'tblTempVendorCDR_20' ) start [2025-04-22 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962747', 'tblTempVendorCDR_20' ) end [2025-04-22 05:18:18] Production.INFO: ProcessCDR(1,14962747,1,1,2) [2025-04-22 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962747', 'tblTempUsageDetail_20' ) start [2025-04-22 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962747', 'tblTempUsageDetail_20' ) end [2025-04-22 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:18:21] Production.INFO: ==26871== Releasing lock... [2025-04-22 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:19:05 [end_date_ymd] => 2025-04-22 05:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:19:05' and `end` < '2025-04-22 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-04-22 05:19:17] Production.INFO: count ==85 [2025-04-22 05:19:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:19:05 - End Time 2025-04-22 05:19:05 [2025-04-22 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962752', 'tblTempUsageDetail_20' ) start [2025-04-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962752', 'tblTempUsageDetail_20' ) end [2025-04-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962752', 'tblTempVendorCDR_20' ) start [2025-04-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962752', 'tblTempVendorCDR_20' ) end [2025-04-22 05:19:17] Production.INFO: ProcessCDR(1,14962752,1,1,2) [2025-04-22 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962752', 'tblTempUsageDetail_20' ) start [2025-04-22 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962752', 'tblTempUsageDetail_20' ) end [2025-04-22 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:19:20] Production.INFO: ==26991== Releasing lock... [2025-04-22 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:19:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:20:07 [end_date_ymd] => 2025-04-22 05:20:07 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:20:07' and `end` < '2025-04-22 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-04-22 05:20:19] Production.INFO: count ==93 [2025-04-22 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-22 02:20:07 - End Time 2025-04-22 05:20:07 [2025-04-22 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962758', 'tblTempUsageDetail_20' ) start [2025-04-22 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962758', 'tblTempUsageDetail_20' ) end [2025-04-22 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962758', 'tblTempVendorCDR_20' ) start [2025-04-22 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962758', 'tblTempVendorCDR_20' ) end [2025-04-22 05:20:19] Production.INFO: ProcessCDR(1,14962758,1,1,2) [2025-04-22 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962758', 'tblTempUsageDetail_20' ) start [2025-04-22 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962758', 'tblTempUsageDetail_20' ) end [2025-04-22 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:20:23] Production.INFO: ==27121== Releasing lock... [2025-04-22 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:20:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:21:05 [end_date_ymd] => 2025-04-22 05:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:21:05' and `end` < '2025-04-22 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-04-22 05:21:17] Production.INFO: count ==94 [2025-04-22 05:21:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:21:05 - End Time 2025-04-22 05:21:05 [2025-04-22 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962763', 'tblTempUsageDetail_20' ) start [2025-04-22 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962763', 'tblTempUsageDetail_20' ) end [2025-04-22 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962763', 'tblTempVendorCDR_20' ) start [2025-04-22 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962763', 'tblTempVendorCDR_20' ) end [2025-04-22 05:21:17] Production.INFO: ProcessCDR(1,14962763,1,1,2) [2025-04-22 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962763', 'tblTempUsageDetail_20' ) start [2025-04-22 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962763', 'tblTempUsageDetail_20' ) end [2025-04-22 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:21:21] Production.INFO: ==27257== Releasing lock... [2025-04-22 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:22:05 [end_date_ymd] => 2025-04-22 05:22:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:22:05' and `end` < '2025-04-22 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-04-22 05:22:17] Production.INFO: count ==94 [2025-04-22 05:22:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:22:05 - End Time 2025-04-22 05:22:05 [2025-04-22 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962768', 'tblTempUsageDetail_20' ) start [2025-04-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962768', 'tblTempUsageDetail_20' ) end [2025-04-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962768', 'tblTempVendorCDR_20' ) start [2025-04-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962768', 'tblTempVendorCDR_20' ) end [2025-04-22 05:22:17] Production.INFO: ProcessCDR(1,14962768,1,1,2) [2025-04-22 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962768', 'tblTempUsageDetail_20' ) start [2025-04-22 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962768', 'tblTempUsageDetail_20' ) end [2025-04-22 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:22:21] Production.INFO: ==27379== Releasing lock... [2025-04-22 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:23:05 [end_date_ymd] => 2025-04-22 05:23:05 [RateCDR] => 1 ) [2025-04-22 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:23:05' and `end` < '2025-04-22 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:23:17] Production.INFO: count ==93 [2025-04-22 05:23:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:23:05 - End Time 2025-04-22 05:23:05 [2025-04-22 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962773', 'tblTempUsageDetail_20' ) start [2025-04-22 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962773', 'tblTempUsageDetail_20' ) end [2025-04-22 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962773', 'tblTempVendorCDR_20' ) start [2025-04-22 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962773', 'tblTempVendorCDR_20' ) end [2025-04-22 05:23:17] Production.INFO: ProcessCDR(1,14962773,1,1,2) [2025-04-22 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962773', 'tblTempUsageDetail_20' ) start [2025-04-22 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962773', 'tblTempUsageDetail_20' ) end [2025-04-22 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:23:21] Production.INFO: ==27499== Releasing lock... [2025-04-22 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:24:06 [end_date_ymd] => 2025-04-22 05:24:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:24:06' and `end` < '2025-04-22 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-04-22 05:24:18] Production.INFO: count ==93 [2025-04-22 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:24:06 - End Time 2025-04-22 05:24:06 [2025-04-22 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962778', 'tblTempUsageDetail_20' ) start [2025-04-22 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962778', 'tblTempUsageDetail_20' ) end [2025-04-22 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962778', 'tblTempVendorCDR_20' ) start [2025-04-22 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962778', 'tblTempVendorCDR_20' ) end [2025-04-22 05:24:18] Production.INFO: ProcessCDR(1,14962778,1,1,2) [2025-04-22 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962778', 'tblTempUsageDetail_20' ) start [2025-04-22 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962778', 'tblTempUsageDetail_20' ) end [2025-04-22 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:24:22] Production.INFO: ==27621== Releasing lock... [2025-04-22 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:25:05 [end_date_ymd] => 2025-04-22 05:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:25:05' and `end` < '2025-04-22 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-04-22 05:25:17] Production.INFO: count ==93 [2025-04-22 05:25:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:25:05 - End Time 2025-04-22 05:25:05 [2025-04-22 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962783', 'tblTempUsageDetail_20' ) start [2025-04-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962783', 'tblTempUsageDetail_20' ) end [2025-04-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962783', 'tblTempVendorCDR_20' ) start [2025-04-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962783', 'tblTempVendorCDR_20' ) end [2025-04-22 05:25:17] Production.INFO: ProcessCDR(1,14962783,1,1,2) [2025-04-22 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962783', 'tblTempUsageDetail_20' ) start [2025-04-22 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962783', 'tblTempUsageDetail_20' ) end [2025-04-22 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:25:21] Production.INFO: ==27741== Releasing lock... [2025-04-22 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:26:05 [end_date_ymd] => 2025-04-22 05:26:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:26:05' and `end` < '2025-04-22 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-04-22 05:26:18] Production.INFO: count ==93 [2025-04-22 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:26:05 - End Time 2025-04-22 05:26:05 [2025-04-22 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962788', 'tblTempUsageDetail_20' ) start [2025-04-22 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962788', 'tblTempUsageDetail_20' ) end [2025-04-22 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962788', 'tblTempVendorCDR_20' ) start [2025-04-22 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962788', 'tblTempVendorCDR_20' ) end [2025-04-22 05:26:18] Production.INFO: ProcessCDR(1,14962788,1,1,2) [2025-04-22 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962788', 'tblTempUsageDetail_20' ) start [2025-04-22 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962788', 'tblTempUsageDetail_20' ) end [2025-04-22 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:26:21] Production.INFO: ==27835== Releasing lock... [2025-04-22 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:27:05 [end_date_ymd] => 2025-04-22 05:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:27:05' and `end` < '2025-04-22 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-04-22 05:27:18] Production.INFO: count ==93 [2025-04-22 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:27:05 - End Time 2025-04-22 05:27:05 [2025-04-22 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962793', 'tblTempUsageDetail_20' ) start [2025-04-22 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962793', 'tblTempUsageDetail_20' ) end [2025-04-22 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962793', 'tblTempVendorCDR_20' ) start [2025-04-22 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962793', 'tblTempVendorCDR_20' ) end [2025-04-22 05:27:18] Production.INFO: ProcessCDR(1,14962793,1,1,2) [2025-04-22 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962793', 'tblTempUsageDetail_20' ) start [2025-04-22 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962793', 'tblTempUsageDetail_20' ) end [2025-04-22 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:27:21] Production.INFO: ==27924== Releasing lock... [2025-04-22 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:28:05 [end_date_ymd] => 2025-04-22 05:28:05 [RateCDR] => 1 ) [2025-04-22 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:28:05' and `end` < '2025-04-22 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:28:18] Production.INFO: count ==93 [2025-04-22 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:28:05 - End Time 2025-04-22 05:28:05 [2025-04-22 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962798', 'tblTempUsageDetail_20' ) start [2025-04-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962798', 'tblTempUsageDetail_20' ) end [2025-04-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962798', 'tblTempVendorCDR_20' ) start [2025-04-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962798', 'tblTempVendorCDR_20' ) end [2025-04-22 05:28:18] Production.INFO: ProcessCDR(1,14962798,1,1,2) [2025-04-22 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962798', 'tblTempUsageDetail_20' ) start [2025-04-22 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962798', 'tblTempUsageDetail_20' ) end [2025-04-22 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:28:21] Production.INFO: ==28012== Releasing lock... [2025-04-22 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:29:06 [end_date_ymd] => 2025-04-22 05:29:06 [RateCDR] => 1 ) [2025-04-22 05: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-04-22 02:29:06' and `end` < '2025-04-22 05: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-04-22 05:29:18] Production.INFO: count ==94 [2025-04-22 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:29:06 - End Time 2025-04-22 05:29:06 [2025-04-22 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962803', 'tblTempUsageDetail_20' ) start [2025-04-22 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962803', 'tblTempUsageDetail_20' ) end [2025-04-22 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962803', 'tblTempVendorCDR_20' ) start [2025-04-22 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962803', 'tblTempVendorCDR_20' ) end [2025-04-22 05:29:18] Production.INFO: ProcessCDR(1,14962803,1,1,2) [2025-04-22 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962803', 'tblTempUsageDetail_20' ) start [2025-04-22 05:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962803', 'tblTempUsageDetail_20' ) end [2025-04-22 05:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:29:23] Production.INFO: ==28141== Releasing lock... [2025-04-22 05:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:29:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:30:06 [end_date_ymd] => 2025-04-22 05:30:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:30:06' and `end` < '2025-04-22 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-04-22 05:30:18] Production.INFO: count ==92 [2025-04-22 05:30:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:30:06 - End Time 2025-04-22 05:30:06 [2025-04-22 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962809', 'tblTempUsageDetail_20' ) start [2025-04-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962809', 'tblTempUsageDetail_20' ) end [2025-04-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962809', 'tblTempVendorCDR_20' ) start [2025-04-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962809', 'tblTempVendorCDR_20' ) end [2025-04-22 05:30:18] Production.INFO: ProcessCDR(1,14962809,1,1,2) [2025-04-22 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962809', 'tblTempUsageDetail_20' ) start [2025-04-22 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962809', 'tblTempUsageDetail_20' ) end [2025-04-22 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:30:22] Production.INFO: ==28235== Releasing lock... [2025-04-22 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:31:05 [end_date_ymd] => 2025-04-22 05:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:31:05' and `end` < '2025-04-22 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-04-22 05:31:18] Production.INFO: count ==92 [2025-04-22 05:31:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:31:05 - End Time 2025-04-22 05:31:05 [2025-04-22 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962814', 'tblTempUsageDetail_20' ) start [2025-04-22 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962814', 'tblTempUsageDetail_20' ) end [2025-04-22 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962814', 'tblTempVendorCDR_20' ) start [2025-04-22 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962814', 'tblTempVendorCDR_20' ) end [2025-04-22 05:31:18] Production.INFO: ProcessCDR(1,14962814,1,1,2) [2025-04-22 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962814', 'tblTempUsageDetail_20' ) start [2025-04-22 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962814', 'tblTempUsageDetail_20' ) end [2025-04-22 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:31:21] Production.INFO: ==28336== Releasing lock... [2025-04-22 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:32:05 [end_date_ymd] => 2025-04-22 05:32:05 [RateCDR] => 1 ) [2025-04-22 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:32:05' and `end` < '2025-04-22 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:32:17] Production.INFO: count ==92 [2025-04-22 05:32:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:32:05 - End Time 2025-04-22 05:32:05 [2025-04-22 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962819', 'tblTempUsageDetail_20' ) start [2025-04-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962819', 'tblTempUsageDetail_20' ) end [2025-04-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962819', 'tblTempVendorCDR_20' ) start [2025-04-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962819', 'tblTempVendorCDR_20' ) end [2025-04-22 05:32:17] Production.INFO: ProcessCDR(1,14962819,1,1,2) [2025-04-22 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962819', 'tblTempUsageDetail_20' ) start [2025-04-22 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962819', 'tblTempUsageDetail_20' ) end [2025-04-22 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:32:21] Production.INFO: ==28428== Releasing lock... [2025-04-22 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:33:05 [end_date_ymd] => 2025-04-22 05:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:33:05' and `end` < '2025-04-22 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-04-22 05:33:18] Production.INFO: count ==92 [2025-04-22 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:33:05 - End Time 2025-04-22 05:33:05 [2025-04-22 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962824', 'tblTempUsageDetail_20' ) start [2025-04-22 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962824', 'tblTempUsageDetail_20' ) end [2025-04-22 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962824', 'tblTempVendorCDR_20' ) start [2025-04-22 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962824', 'tblTempVendorCDR_20' ) end [2025-04-22 05:33:18] Production.INFO: ProcessCDR(1,14962824,1,1,2) [2025-04-22 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962824', 'tblTempUsageDetail_20' ) start [2025-04-22 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962824', 'tblTempUsageDetail_20' ) end [2025-04-22 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:33:21] Production.INFO: ==28515== Releasing lock... [2025-04-22 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:34:06 [end_date_ymd] => 2025-04-22 05:34:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:34:06' and `end` < '2025-04-22 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-04-22 05:34:18] Production.INFO: count ==92 [2025-04-22 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:34:06 - End Time 2025-04-22 05:34:06 [2025-04-22 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962829', 'tblTempUsageDetail_20' ) start [2025-04-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962829', 'tblTempUsageDetail_20' ) end [2025-04-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962829', 'tblTempVendorCDR_20' ) start [2025-04-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962829', 'tblTempVendorCDR_20' ) end [2025-04-22 05:34:18] Production.INFO: ProcessCDR(1,14962829,1,1,2) [2025-04-22 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962829', 'tblTempUsageDetail_20' ) start [2025-04-22 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962829', 'tblTempUsageDetail_20' ) end [2025-04-22 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:34:22] Production.INFO: ==28589== Releasing lock... [2025-04-22 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:35:05 [end_date_ymd] => 2025-04-22 05:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:35:05' and `end` < '2025-04-22 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-04-22 05:35:17] Production.INFO: count ==92 [2025-04-22 05:35:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:35:05 - End Time 2025-04-22 05:35:05 [2025-04-22 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962834', 'tblTempUsageDetail_20' ) start [2025-04-22 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962834', 'tblTempUsageDetail_20' ) end [2025-04-22 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962834', 'tblTempVendorCDR_20' ) start [2025-04-22 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962834', 'tblTempVendorCDR_20' ) end [2025-04-22 05:35:17] Production.INFO: ProcessCDR(1,14962834,1,1,2) [2025-04-22 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962834', 'tblTempUsageDetail_20' ) start [2025-04-22 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962834', 'tblTempUsageDetail_20' ) end [2025-04-22 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:35:21] Production.INFO: ==28663== Releasing lock... [2025-04-22 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:36:06 [end_date_ymd] => 2025-04-22 05:36:06 [RateCDR] => 1 ) [2025-04-22 05: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-04-22 02:36:06' and `end` < '2025-04-22 05: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-04-22 05:36:18] Production.INFO: count ==92 [2025-04-22 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:36:06 - End Time 2025-04-22 05:36:06 [2025-04-22 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962839', 'tblTempUsageDetail_20' ) start [2025-04-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962839', 'tblTempUsageDetail_20' ) end [2025-04-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962839', 'tblTempVendorCDR_20' ) start [2025-04-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962839', 'tblTempVendorCDR_20' ) end [2025-04-22 05:36:18] Production.INFO: ProcessCDR(1,14962839,1,1,2) [2025-04-22 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962839', 'tblTempUsageDetail_20' ) start [2025-04-22 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962839', 'tblTempUsageDetail_20' ) end [2025-04-22 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:36:22] Production.INFO: ==28737== Releasing lock... [2025-04-22 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:37:05 [end_date_ymd] => 2025-04-22 05:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:37:05' and `end` < '2025-04-22 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-04-22 05:37:18] Production.INFO: count ==92 [2025-04-22 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:37:05 - End Time 2025-04-22 05:37:05 [2025-04-22 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962844', 'tblTempUsageDetail_20' ) start [2025-04-22 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962844', 'tblTempUsageDetail_20' ) end [2025-04-22 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962844', 'tblTempVendorCDR_20' ) start [2025-04-22 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962844', 'tblTempVendorCDR_20' ) end [2025-04-22 05:37:18] Production.INFO: ProcessCDR(1,14962844,1,1,2) [2025-04-22 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962844', 'tblTempUsageDetail_20' ) start [2025-04-22 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962844', 'tblTempUsageDetail_20' ) end [2025-04-22 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:37:21] Production.INFO: ==28812== Releasing lock... [2025-04-22 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:38:05 [end_date_ymd] => 2025-04-22 05:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:38:05' and `end` < '2025-04-22 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-04-22 05:38:18] Production.INFO: count ==92 [2025-04-22 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:38:05 - End Time 2025-04-22 05:38:05 [2025-04-22 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962849', 'tblTempUsageDetail_20' ) start [2025-04-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962849', 'tblTempUsageDetail_20' ) end [2025-04-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962849', 'tblTempVendorCDR_20' ) start [2025-04-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962849', 'tblTempVendorCDR_20' ) end [2025-04-22 05:38:18] Production.INFO: ProcessCDR(1,14962849,1,1,2) [2025-04-22 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962849', 'tblTempUsageDetail_20' ) start [2025-04-22 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962849', 'tblTempUsageDetail_20' ) end [2025-04-22 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:38:21] Production.INFO: ==28891== Releasing lock... [2025-04-22 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:39:05 [end_date_ymd] => 2025-04-22 05:39:05 [RateCDR] => 1 ) [2025-04-22 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:39:05' and `end` < '2025-04-22 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:39:17] Production.INFO: count ==92 [2025-04-22 05:39:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:39:05 - End Time 2025-04-22 05:39:05 [2025-04-22 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962854', 'tblTempUsageDetail_20' ) start [2025-04-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962854', 'tblTempUsageDetail_20' ) end [2025-04-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962854', 'tblTempVendorCDR_20' ) start [2025-04-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962854', 'tblTempVendorCDR_20' ) end [2025-04-22 05:39:17] Production.INFO: ProcessCDR(1,14962854,1,1,2) [2025-04-22 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962854', 'tblTempUsageDetail_20' ) start [2025-04-22 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962854', 'tblTempUsageDetail_20' ) end [2025-04-22 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:39:21] Production.INFO: ==28964== Releasing lock... [2025-04-22 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:40:07 [end_date_ymd] => 2025-04-22 05:40:07 [RateCDR] => 1 ) [2025-04-22 05: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-04-22 02:40:07' and `end` < '2025-04-22 05: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-04-22 05:40:19] Production.INFO: count ==82 [2025-04-22 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-22 02:40:07 - End Time 2025-04-22 05:40:07 [2025-04-22 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962860', 'tblTempUsageDetail_20' ) start [2025-04-22 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962860', 'tblTempUsageDetail_20' ) end [2025-04-22 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962860', 'tblTempVendorCDR_20' ) start [2025-04-22 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962860', 'tblTempVendorCDR_20' ) end [2025-04-22 05:40:19] Production.INFO: ProcessCDR(1,14962860,1,1,2) [2025-04-22 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962860', 'tblTempUsageDetail_20' ) start [2025-04-22 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962860', 'tblTempUsageDetail_20' ) end [2025-04-22 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:40:23] Production.INFO: ==29045== Releasing lock... [2025-04-22 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:41:06 [end_date_ymd] => 2025-04-22 05:41:06 [RateCDR] => 1 ) [2025-04-22 05: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-04-22 02:41:06' and `end` < '2025-04-22 05: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-04-22 05:41:18] Production.INFO: count ==81 [2025-04-22 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:41:06 - End Time 2025-04-22 05:41:06 [2025-04-22 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962865', 'tblTempUsageDetail_20' ) start [2025-04-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962865', 'tblTempUsageDetail_20' ) end [2025-04-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962865', 'tblTempVendorCDR_20' ) start [2025-04-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962865', 'tblTempVendorCDR_20' ) end [2025-04-22 05:41:18] Production.INFO: ProcessCDR(1,14962865,1,1,2) [2025-04-22 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962865', 'tblTempUsageDetail_20' ) start [2025-04-22 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962865', 'tblTempUsageDetail_20' ) end [2025-04-22 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:41:22] Production.INFO: ==29119== Releasing lock... [2025-04-22 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:42:05 [end_date_ymd] => 2025-04-22 05:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:42:05' and `end` < '2025-04-22 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-04-22 05:42:18] Production.INFO: count ==85 [2025-04-22 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:42:05 - End Time 2025-04-22 05:42:05 [2025-04-22 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962870', 'tblTempUsageDetail_20' ) start [2025-04-22 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962870', 'tblTempUsageDetail_20' ) end [2025-04-22 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962870', 'tblTempVendorCDR_20' ) start [2025-04-22 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962870', 'tblTempVendorCDR_20' ) end [2025-04-22 05:42:18] Production.INFO: ProcessCDR(1,14962870,1,1,2) [2025-04-22 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962870', 'tblTempUsageDetail_20' ) start [2025-04-22 05:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962870', 'tblTempUsageDetail_20' ) end [2025-04-22 05:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:42:23] Production.INFO: ==29195== Releasing lock... [2025-04-22 05:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:42:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:43:06 [end_date_ymd] => 2025-04-22 05:43:06 [RateCDR] => 1 ) [2025-04-22 05: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-04-22 02:43:06' and `end` < '2025-04-22 05: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-04-22 05:43:18] Production.INFO: count ==89 [2025-04-22 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:43:06 - End Time 2025-04-22 05:43:06 [2025-04-22 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962875', 'tblTempUsageDetail_20' ) start [2025-04-22 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962875', 'tblTempUsageDetail_20' ) end [2025-04-22 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962875', 'tblTempVendorCDR_20' ) start [2025-04-22 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962875', 'tblTempVendorCDR_20' ) end [2025-04-22 05:43:18] Production.INFO: ProcessCDR(1,14962875,1,1,2) [2025-04-22 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962875', 'tblTempUsageDetail_20' ) start [2025-04-22 05:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962875', 'tblTempUsageDetail_20' ) end [2025-04-22 05:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:43:23] Production.INFO: ==29270== Releasing lock... [2025-04-22 05:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:43:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:44:05 [end_date_ymd] => 2025-04-22 05:44:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:44:05' and `end` < '2025-04-22 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-04-22 05:44:18] Production.INFO: count ==89 [2025-04-22 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:44:05 - End Time 2025-04-22 05:44:05 [2025-04-22 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962880', 'tblTempUsageDetail_20' ) start [2025-04-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962880', 'tblTempUsageDetail_20' ) end [2025-04-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962880', 'tblTempVendorCDR_20' ) start [2025-04-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962880', 'tblTempVendorCDR_20' ) end [2025-04-22 05:44:18] Production.INFO: ProcessCDR(1,14962880,1,1,2) [2025-04-22 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962880', 'tblTempUsageDetail_20' ) start [2025-04-22 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962880', 'tblTempUsageDetail_20' ) end [2025-04-22 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:44:21] Production.INFO: ==29383== Releasing lock... [2025-04-22 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:45:05 [end_date_ymd] => 2025-04-22 05:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:45:05' and `end` < '2025-04-22 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-04-22 05:45:18] Production.INFO: count ==89 [2025-04-22 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:45:05 - End Time 2025-04-22 05:45:05 [2025-04-22 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962885', 'tblTempUsageDetail_20' ) start [2025-04-22 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962885', 'tblTempUsageDetail_20' ) end [2025-04-22 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962885', 'tblTempVendorCDR_20' ) start [2025-04-22 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962885', 'tblTempVendorCDR_20' ) end [2025-04-22 05:45:18] Production.INFO: ProcessCDR(1,14962885,1,1,2) [2025-04-22 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962885', 'tblTempUsageDetail_20' ) start [2025-04-22 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962885', 'tblTempUsageDetail_20' ) end [2025-04-22 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:45:22] Production.INFO: ==29456== Releasing lock... [2025-04-22 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:45:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:46:05 [end_date_ymd] => 2025-04-22 05:46:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:46:05' and `end` < '2025-04-22 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-04-22 05:46:17] Production.INFO: count ==89 [2025-04-22 05:46:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:46:05 - End Time 2025-04-22 05:46:05 [2025-04-22 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962890', 'tblTempUsageDetail_20' ) start [2025-04-22 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962890', 'tblTempUsageDetail_20' ) end [2025-04-22 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962890', 'tblTempVendorCDR_20' ) start [2025-04-22 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962890', 'tblTempVendorCDR_20' ) end [2025-04-22 05:46:17] Production.INFO: ProcessCDR(1,14962890,1,1,2) [2025-04-22 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962890', 'tblTempUsageDetail_20' ) start [2025-04-22 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962890', 'tblTempUsageDetail_20' ) end [2025-04-22 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:46:21] Production.INFO: ==29528== Releasing lock... [2025-04-22 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:47:06 [end_date_ymd] => 2025-04-22 05:47:06 [RateCDR] => 1 ) [2025-04-22 05:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:47:06' and `end` < '2025-04-22 05:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:47:18] Production.INFO: count ==89 [2025-04-22 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:47:06 - End Time 2025-04-22 05:47:06 [2025-04-22 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962895', 'tblTempUsageDetail_20' ) start [2025-04-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962895', 'tblTempUsageDetail_20' ) end [2025-04-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962895', 'tblTempVendorCDR_20' ) start [2025-04-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962895', 'tblTempVendorCDR_20' ) end [2025-04-22 05:47:18] Production.INFO: ProcessCDR(1,14962895,1,1,2) [2025-04-22 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962895', 'tblTempUsageDetail_20' ) start [2025-04-22 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962895', 'tblTempUsageDetail_20' ) end [2025-04-22 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:47:22] Production.INFO: ==29608== Releasing lock... [2025-04-22 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:48:05 [end_date_ymd] => 2025-04-22 05:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:48:05' and `end` < '2025-04-22 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-04-22 05:48:17] Production.INFO: count ==87 [2025-04-22 05:48:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:48:05 - End Time 2025-04-22 05:48:05 [2025-04-22 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962900', 'tblTempUsageDetail_20' ) start [2025-04-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962900', 'tblTempUsageDetail_20' ) end [2025-04-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962900', 'tblTempVendorCDR_20' ) start [2025-04-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962900', 'tblTempVendorCDR_20' ) end [2025-04-22 05:48:17] Production.INFO: ProcessCDR(1,14962900,1,1,2) [2025-04-22 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962900', 'tblTempUsageDetail_20' ) start [2025-04-22 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962900', 'tblTempUsageDetail_20' ) end [2025-04-22 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:48:21] Production.INFO: ==29686== Releasing lock... [2025-04-22 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:49:06 [end_date_ymd] => 2025-04-22 05:49:06 [RateCDR] => 1 ) [2025-04-22 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:49:06' and `end` < '2025-04-22 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:49:18] Production.INFO: count ==87 [2025-04-22 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:49:06 - End Time 2025-04-22 05:49:06 [2025-04-22 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962905', 'tblTempUsageDetail_20' ) start [2025-04-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962905', 'tblTempUsageDetail_20' ) end [2025-04-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962905', 'tblTempVendorCDR_20' ) start [2025-04-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962905', 'tblTempVendorCDR_20' ) end [2025-04-22 05:49:18] Production.INFO: ProcessCDR(1,14962905,1,1,2) [2025-04-22 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962905', 'tblTempUsageDetail_20' ) start [2025-04-22 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962905', 'tblTempUsageDetail_20' ) end [2025-04-22 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:49:21] Production.INFO: ==29760== Releasing lock... [2025-04-22 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:50:06 [end_date_ymd] => 2025-04-22 05:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:50:06' and `end` < '2025-04-22 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-04-22 05:50:18] Production.INFO: count ==87 [2025-04-22 05:50:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:50:06 - End Time 2025-04-22 05:50:06 [2025-04-22 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962911', 'tblTempUsageDetail_20' ) start [2025-04-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962911', 'tblTempUsageDetail_20' ) end [2025-04-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962911', 'tblTempVendorCDR_20' ) start [2025-04-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962911', 'tblTempVendorCDR_20' ) end [2025-04-22 05:50:18] Production.INFO: ProcessCDR(1,14962911,1,1,2) [2025-04-22 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962911', 'tblTempUsageDetail_20' ) start [2025-04-22 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962911', 'tblTempUsageDetail_20' ) end [2025-04-22 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:50:22] Production.INFO: ==29837== Releasing lock... [2025-04-22 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:51:05 [end_date_ymd] => 2025-04-22 05:51:05 [RateCDR] => 1 ) [2025-04-22 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:51:05' and `end` < '2025-04-22 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-04-22 05:51:18] Production.INFO: count ==87 [2025-04-22 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:51:05 - End Time 2025-04-22 05:51:05 [2025-04-22 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962916', 'tblTempUsageDetail_20' ) start [2025-04-22 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962916', 'tblTempUsageDetail_20' ) end [2025-04-22 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962916', 'tblTempVendorCDR_20' ) start [2025-04-22 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962916', 'tblTempVendorCDR_20' ) end [2025-04-22 05:51:18] Production.INFO: ProcessCDR(1,14962916,1,1,2) [2025-04-22 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962916', 'tblTempUsageDetail_20' ) start [2025-04-22 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962916', 'tblTempUsageDetail_20' ) end [2025-04-22 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:51:22] Production.INFO: ==29909== Releasing lock... [2025-04-22 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:52:05 [end_date_ymd] => 2025-04-22 05:52:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:52:05' and `end` < '2025-04-22 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-04-22 05:52:17] Production.INFO: count ==90 [2025-04-22 05:52:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:52:05 - End Time 2025-04-22 05:52:05 [2025-04-22 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962921', 'tblTempUsageDetail_20' ) start [2025-04-22 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962921', 'tblTempUsageDetail_20' ) end [2025-04-22 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962921', 'tblTempVendorCDR_20' ) start [2025-04-22 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962921', 'tblTempVendorCDR_20' ) end [2025-04-22 05:52:17] Production.INFO: ProcessCDR(1,14962921,1,1,2) [2025-04-22 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962921', 'tblTempUsageDetail_20' ) start [2025-04-22 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962921', 'tblTempUsageDetail_20' ) end [2025-04-22 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:52:20] Production.INFO: ==29990== Releasing lock... [2025-04-22 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:52:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:53:05 [end_date_ymd] => 2025-04-22 05:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:53:05' and `end` < '2025-04-22 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-04-22 05:53:18] Production.INFO: count ==90 [2025-04-22 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:53:05 - End Time 2025-04-22 05:53:05 [2025-04-22 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962926', 'tblTempUsageDetail_20' ) start [2025-04-22 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962926', 'tblTempUsageDetail_20' ) end [2025-04-22 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962926', 'tblTempVendorCDR_20' ) start [2025-04-22 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962926', 'tblTempVendorCDR_20' ) end [2025-04-22 05:53:18] Production.INFO: ProcessCDR(1,14962926,1,1,2) [2025-04-22 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962926', 'tblTempUsageDetail_20' ) start [2025-04-22 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962926', 'tblTempUsageDetail_20' ) end [2025-04-22 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:53:21] Production.INFO: ==30059== Releasing lock... [2025-04-22 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:54:05 [end_date_ymd] => 2025-04-22 05:54:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:54:05' and `end` < '2025-04-22 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-04-22 05:54:18] Production.INFO: count ==90 [2025-04-22 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:54:05 - End Time 2025-04-22 05:54:05 [2025-04-22 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962931', 'tblTempUsageDetail_20' ) start [2025-04-22 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962931', 'tblTempUsageDetail_20' ) end [2025-04-22 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962931', 'tblTempVendorCDR_20' ) start [2025-04-22 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962931', 'tblTempVendorCDR_20' ) end [2025-04-22 05:54:18] Production.INFO: ProcessCDR(1,14962931,1,1,2) [2025-04-22 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962931', 'tblTempUsageDetail_20' ) start [2025-04-22 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962931', 'tblTempUsageDetail_20' ) end [2025-04-22 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:54:21] Production.INFO: ==30142== Releasing lock... [2025-04-22 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:55:05 [end_date_ymd] => 2025-04-22 05:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:55:05' and `end` < '2025-04-22 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-04-22 05:55:18] Production.INFO: count ==90 [2025-04-22 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:55:05 - End Time 2025-04-22 05:55:05 [2025-04-22 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962936', 'tblTempUsageDetail_20' ) start [2025-04-22 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962936', 'tblTempUsageDetail_20' ) end [2025-04-22 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962936', 'tblTempVendorCDR_20' ) start [2025-04-22 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962936', 'tblTempVendorCDR_20' ) end [2025-04-22 05:55:18] Production.INFO: ProcessCDR(1,14962936,1,1,2) [2025-04-22 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962936', 'tblTempUsageDetail_20' ) start [2025-04-22 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962936', 'tblTempUsageDetail_20' ) end [2025-04-22 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:55:21] Production.INFO: ==30214== Releasing lock... [2025-04-22 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:56:05 [end_date_ymd] => 2025-04-22 05:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:56:05' and `end` < '2025-04-22 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-04-22 05:56:18] Production.INFO: count ==90 [2025-04-22 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:56:05 - End Time 2025-04-22 05:56:05 [2025-04-22 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962941', 'tblTempUsageDetail_20' ) start [2025-04-22 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962941', 'tblTempUsageDetail_20' ) end [2025-04-22 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962941', 'tblTempVendorCDR_20' ) start [2025-04-22 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962941', 'tblTempVendorCDR_20' ) end [2025-04-22 05:56:18] Production.INFO: ProcessCDR(1,14962941,1,1,2) [2025-04-22 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962941', 'tblTempUsageDetail_20' ) start [2025-04-22 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962941', 'tblTempUsageDetail_20' ) end [2025-04-22 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:56:21] Production.INFO: ==30285== Releasing lock... [2025-04-22 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:57:05 [end_date_ymd] => 2025-04-22 05:57:05 [RateCDR] => 1 ) [2025-04-22 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 02:57:05' and `end` < '2025-04-22 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 05:57:17] Production.INFO: count ==90 [2025-04-22 05:57:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:57:05 - End Time 2025-04-22 05:57:05 [2025-04-22 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962946', 'tblTempUsageDetail_20' ) start [2025-04-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962946', 'tblTempUsageDetail_20' ) end [2025-04-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962946', 'tblTempVendorCDR_20' ) start [2025-04-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962946', 'tblTempVendorCDR_20' ) end [2025-04-22 05:57:17] Production.INFO: ProcessCDR(1,14962946,1,1,2) [2025-04-22 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962946', 'tblTempUsageDetail_20' ) start [2025-04-22 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962946', 'tblTempUsageDetail_20' ) end [2025-04-22 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:57:20] Production.INFO: ==30365== Releasing lock... [2025-04-22 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:58:05 [end_date_ymd] => 2025-04-22 05:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:58:05' and `end` < '2025-04-22 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-04-22 05:58:18] Production.INFO: count ==90 [2025-04-22 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-22 02:58:05 - End Time 2025-04-22 05:58:05 [2025-04-22 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962951', 'tblTempUsageDetail_20' ) start [2025-04-22 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962951', 'tblTempUsageDetail_20' ) end [2025-04-22 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962951', 'tblTempVendorCDR_20' ) start [2025-04-22 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962951', 'tblTempVendorCDR_20' ) end [2025-04-22 05:58:18] Production.INFO: ProcessCDR(1,14962951,1,1,2) [2025-04-22 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962951', 'tblTempUsageDetail_20' ) start [2025-04-22 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962951', 'tblTempUsageDetail_20' ) end [2025-04-22 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:58:21] Production.INFO: ==30441== Releasing lock... [2025-04-22 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 02:59:05 [end_date_ymd] => 2025-04-22 05:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 02:59:05' and `end` < '2025-04-22 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-04-22 05:59:17] Production.INFO: count ==89 [2025-04-22 05:59:17] Production.ERROR: pbx CDR StartTime 2025-04-22 02:59:05 - End Time 2025-04-22 05:59:05 [2025-04-22 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962956', 'tblTempUsageDetail_20' ) start [2025-04-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962956', 'tblTempUsageDetail_20' ) end [2025-04-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962956', 'tblTempVendorCDR_20' ) start [2025-04-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962956', 'tblTempVendorCDR_20' ) end [2025-04-22 05:59:17] Production.INFO: ProcessCDR(1,14962956,1,1,2) [2025-04-22 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962956', 'tblTempUsageDetail_20' ) start [2025-04-22 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962956', 'tblTempUsageDetail_20' ) end [2025-04-22 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 05:59:20] Production.INFO: ==30516== Releasing lock... [2025-04-22 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 05:59:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:00:06 [end_date_ymd] => 2025-04-22 06:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:00:06' and `end` < '2025-04-22 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-04-22 06:00:19] Production.INFO: count ==89 [2025-04-22 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-22 03:00:06 - End Time 2025-04-22 06:00:06 [2025-04-22 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962962', 'tblTempUsageDetail_20' ) start [2025-04-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962962', 'tblTempUsageDetail_20' ) end [2025-04-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962962', 'tblTempVendorCDR_20' ) start [2025-04-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962962', 'tblTempVendorCDR_20' ) end [2025-04-22 06:00:19] Production.INFO: ProcessCDR(1,14962962,1,1,2) [2025-04-22 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962962', 'tblTempUsageDetail_20' ) start [2025-04-22 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962962', 'tblTempUsageDetail_20' ) end [2025-04-22 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:00:22] Production.INFO: ==30631== Releasing lock... [2025-04-22 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:01:06 [end_date_ymd] => 2025-04-22 06:01:06 [RateCDR] => 1 ) [2025-04-22 06:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:01:06' and `end` < '2025-04-22 06:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:01:19] Production.INFO: count ==89 [2025-04-22 06:01:19] Production.ERROR: pbx CDR StartTime 2025-04-22 03:01:06 - End Time 2025-04-22 06:01:06 [2025-04-22 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962967', 'tblTempUsageDetail_20' ) start [2025-04-22 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962967', 'tblTempUsageDetail_20' ) end [2025-04-22 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962967', 'tblTempVendorCDR_20' ) start [2025-04-22 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962967', 'tblTempVendorCDR_20' ) end [2025-04-22 06:01:19] Production.INFO: ProcessCDR(1,14962967,1,1,2) [2025-04-22 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962967', 'tblTempUsageDetail_20' ) start [2025-04-22 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962967', 'tblTempUsageDetail_20' ) end [2025-04-22 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:01:22] Production.INFO: ==30718== Releasing lock... [2025-04-22 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:02:05 [end_date_ymd] => 2025-04-22 06:02:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:02:05' and `end` < '2025-04-22 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-04-22 06:02:18] Production.INFO: count ==89 [2025-04-22 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:02:05 - End Time 2025-04-22 06:02:05 [2025-04-22 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962972', 'tblTempUsageDetail_20' ) start [2025-04-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962972', 'tblTempUsageDetail_20' ) end [2025-04-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962972', 'tblTempVendorCDR_20' ) start [2025-04-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962972', 'tblTempVendorCDR_20' ) end [2025-04-22 06:02:18] Production.INFO: ProcessCDR(1,14962972,1,1,2) [2025-04-22 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962972', 'tblTempUsageDetail_20' ) start [2025-04-22 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962972', 'tblTempUsageDetail_20' ) end [2025-04-22 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:02:21] Production.INFO: ==30789== Releasing lock... [2025-04-22 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:03:05 [end_date_ymd] => 2025-04-22 06:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:03:05' and `end` < '2025-04-22 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-04-22 06:03:18] Production.INFO: count ==90 [2025-04-22 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:03:05 - End Time 2025-04-22 06:03:05 [2025-04-22 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962977', 'tblTempUsageDetail_20' ) start [2025-04-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962977', 'tblTempUsageDetail_20' ) end [2025-04-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962977', 'tblTempVendorCDR_20' ) start [2025-04-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962977', 'tblTempVendorCDR_20' ) end [2025-04-22 06:03:18] Production.INFO: ProcessCDR(1,14962977,1,1,2) [2025-04-22 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962977', 'tblTempUsageDetail_20' ) start [2025-04-22 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962977', 'tblTempUsageDetail_20' ) end [2025-04-22 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:03:21] Production.INFO: ==30866== Releasing lock... [2025-04-22 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:04:05 [end_date_ymd] => 2025-04-22 06:04:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:04:05' and `end` < '2025-04-22 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-04-22 06:04:17] Production.INFO: count ==90 [2025-04-22 06:04:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:04:05 - End Time 2025-04-22 06:04:05 [2025-04-22 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962982', 'tblTempUsageDetail_20' ) start [2025-04-22 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962982', 'tblTempUsageDetail_20' ) end [2025-04-22 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962982', 'tblTempVendorCDR_20' ) start [2025-04-22 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962982', 'tblTempVendorCDR_20' ) end [2025-04-22 06:04:17] Production.INFO: ProcessCDR(1,14962982,1,1,2) [2025-04-22 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962982', 'tblTempUsageDetail_20' ) start [2025-04-22 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962982', 'tblTempUsageDetail_20' ) end [2025-04-22 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:04:21] Production.INFO: ==30942== Releasing lock... [2025-04-22 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:05:05 [end_date_ymd] => 2025-04-22 06:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:05:05' and `end` < '2025-04-22 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-04-22 06:05:18] Production.INFO: count ==90 [2025-04-22 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:05:05 - End Time 2025-04-22 06:05:05 [2025-04-22 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962987', 'tblTempUsageDetail_20' ) start [2025-04-22 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962987', 'tblTempUsageDetail_20' ) end [2025-04-22 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962987', 'tblTempVendorCDR_20' ) start [2025-04-22 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962987', 'tblTempVendorCDR_20' ) end [2025-04-22 06:05:18] Production.INFO: ProcessCDR(1,14962987,1,1,2) [2025-04-22 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962987', 'tblTempUsageDetail_20' ) start [2025-04-22 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962987', 'tblTempUsageDetail_20' ) end [2025-04-22 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:05:21] Production.INFO: ==31020== Releasing lock... [2025-04-22 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:06:05 [end_date_ymd] => 2025-04-22 06:06:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:06:05' and `end` < '2025-04-22 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-04-22 06:06:17] Production.INFO: count ==88 [2025-04-22 06:06:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:06:05 - End Time 2025-04-22 06:06:05 [2025-04-22 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962992', 'tblTempUsageDetail_20' ) start [2025-04-22 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962992', 'tblTempUsageDetail_20' ) end [2025-04-22 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962992', 'tblTempVendorCDR_20' ) start [2025-04-22 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962992', 'tblTempVendorCDR_20' ) end [2025-04-22 06:06:17] Production.INFO: ProcessCDR(1,14962992,1,1,2) [2025-04-22 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962992', 'tblTempUsageDetail_20' ) start [2025-04-22 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962992', 'tblTempUsageDetail_20' ) end [2025-04-22 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:06:20] Production.INFO: ==31098== Releasing lock... [2025-04-22 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:06:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:07:05 [end_date_ymd] => 2025-04-22 06:07:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:07:05' and `end` < '2025-04-22 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-04-22 06:07:18] Production.INFO: count ==90 [2025-04-22 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:07:05 - End Time 2025-04-22 06:07:05 [2025-04-22 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962997', 'tblTempUsageDetail_20' ) start [2025-04-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14962997', 'tblTempUsageDetail_20' ) end [2025-04-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962997', 'tblTempVendorCDR_20' ) start [2025-04-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14962997', 'tblTempVendorCDR_20' ) end [2025-04-22 06:07:18] Production.INFO: ProcessCDR(1,14962997,1,1,2) [2025-04-22 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14962997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14962997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14962997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14962997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962997', 'tblTempUsageDetail_20' ) start [2025-04-22 06:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14962997', 'tblTempUsageDetail_20' ) end [2025-04-22 06:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:07:23] Production.INFO: ==31176== Releasing lock... [2025-04-22 06:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:07:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:08:05 [end_date_ymd] => 2025-04-22 06:08:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:08:05' and `end` < '2025-04-22 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-04-22 06:08:18] Production.INFO: count ==90 [2025-04-22 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:08:05 - End Time 2025-04-22 06:08:05 [2025-04-22 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963002', 'tblTempUsageDetail_20' ) start [2025-04-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963002', 'tblTempUsageDetail_20' ) end [2025-04-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963002', 'tblTempVendorCDR_20' ) start [2025-04-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963002', 'tblTempVendorCDR_20' ) end [2025-04-22 06:08:18] Production.INFO: ProcessCDR(1,14963002,1,1,2) [2025-04-22 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963002', 'tblTempUsageDetail_20' ) start [2025-04-22 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963002', 'tblTempUsageDetail_20' ) end [2025-04-22 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:08:21] Production.INFO: ==31253== Releasing lock... [2025-04-22 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:09:05 [end_date_ymd] => 2025-04-22 06:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:09:05' and `end` < '2025-04-22 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-04-22 06:09:18] Production.INFO: count ==91 [2025-04-22 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:09:05 - End Time 2025-04-22 06:09:05 [2025-04-22 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963007', 'tblTempUsageDetail_20' ) start [2025-04-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963007', 'tblTempUsageDetail_20' ) end [2025-04-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963007', 'tblTempVendorCDR_20' ) start [2025-04-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963007', 'tblTempVendorCDR_20' ) end [2025-04-22 06:09:18] Production.INFO: ProcessCDR(1,14963007,1,1,2) [2025-04-22 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963007', 'tblTempUsageDetail_20' ) start [2025-04-22 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963007', 'tblTempUsageDetail_20' ) end [2025-04-22 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:09:22] Production.INFO: ==31322== Releasing lock... [2025-04-22 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-22 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:10:06 [end_date_ymd] => 2025-04-22 06:10:06 [RateCDR] => 1 ) [2025-04-22 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:10:06' and `end` < '2025-04-22 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:10:19] Production.INFO: count ==99 [2025-04-22 06:10:19] Production.ERROR: pbx CDR StartTime 2025-04-22 03:10:06 - End Time 2025-04-22 06:10:06 [2025-04-22 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963012', 'tblTempUsageDetail_20' ) start [2025-04-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963012', 'tblTempUsageDetail_20' ) end [2025-04-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963012', 'tblTempVendorCDR_20' ) start [2025-04-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963012', 'tblTempVendorCDR_20' ) end [2025-04-22 06:10:19] Production.INFO: ProcessCDR(1,14963012,1,1,2) [2025-04-22 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963012', 'tblTempUsageDetail_20' ) start [2025-04-22 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963012', 'tblTempUsageDetail_20' ) end [2025-04-22 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:10:22] Production.INFO: ==31397== Releasing lock... [2025-04-22 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:11:05 [end_date_ymd] => 2025-04-22 06:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:11:05' and `end` < '2025-04-22 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-04-22 06:11:18] Production.INFO: count ==102 [2025-04-22 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:11:05 - End Time 2025-04-22 06:11:05 [2025-04-22 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963018', 'tblTempUsageDetail_20' ) start [2025-04-22 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963018', 'tblTempUsageDetail_20' ) end [2025-04-22 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963018', 'tblTempVendorCDR_20' ) start [2025-04-22 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963018', 'tblTempVendorCDR_20' ) end [2025-04-22 06:11:18] Production.INFO: ProcessCDR(1,14963018,1,1,2) [2025-04-22 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963018', 'tblTempUsageDetail_20' ) start [2025-04-22 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963018', 'tblTempUsageDetail_20' ) end [2025-04-22 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:11:22] Production.INFO: ==31474== Releasing lock... [2025-04-22 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:12:05 [end_date_ymd] => 2025-04-22 06:12:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:12:05' and `end` < '2025-04-22 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-04-22 06:12:18] Production.INFO: count ==104 [2025-04-22 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:12:05 - End Time 2025-04-22 06:12:05 [2025-04-22 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963023', 'tblTempUsageDetail_20' ) start [2025-04-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963023', 'tblTempUsageDetail_20' ) end [2025-04-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963023', 'tblTempVendorCDR_20' ) start [2025-04-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963023', 'tblTempVendorCDR_20' ) end [2025-04-22 06:12:18] Production.INFO: ProcessCDR(1,14963023,1,1,2) [2025-04-22 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963023', 'tblTempUsageDetail_20' ) start [2025-04-22 06:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963023', 'tblTempUsageDetail_20' ) end [2025-04-22 06:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:12:23] Production.INFO: ==31547== Releasing lock... [2025-04-22 06:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:12:23] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:13:05 [end_date_ymd] => 2025-04-22 06:13:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:13:05' and `end` < '2025-04-22 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:13:17] Production.INFO: count ==102 [2025-04-22 06:13:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:13:05 - End Time 2025-04-22 06:13:05 [2025-04-22 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963028', 'tblTempUsageDetail_20' ) start [2025-04-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963028', 'tblTempUsageDetail_20' ) end [2025-04-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963028', 'tblTempVendorCDR_20' ) start [2025-04-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963028', 'tblTempVendorCDR_20' ) end [2025-04-22 06:13:17] Production.INFO: ProcessCDR(1,14963028,1,1,2) [2025-04-22 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963028', 'tblTempUsageDetail_20' ) start [2025-04-22 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963028', 'tblTempUsageDetail_20' ) end [2025-04-22 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:13:22] Production.INFO: ==31625== Releasing lock... [2025-04-22 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:14:05 [end_date_ymd] => 2025-04-22 06:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:14:05' and `end` < '2025-04-22 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-04-22 06:14:18] Production.INFO: count ==103 [2025-04-22 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:14:05 - End Time 2025-04-22 06:14:05 [2025-04-22 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963033', 'tblTempUsageDetail_20' ) start [2025-04-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963033', 'tblTempUsageDetail_20' ) end [2025-04-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963033', 'tblTempVendorCDR_20' ) start [2025-04-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963033', 'tblTempVendorCDR_20' ) end [2025-04-22 06:14:18] Production.INFO: ProcessCDR(1,14963033,1,1,2) [2025-04-22 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963033', 'tblTempUsageDetail_20' ) start [2025-04-22 06:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963033', 'tblTempUsageDetail_20' ) end [2025-04-22 06:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:14:23] Production.INFO: ==31695== Releasing lock... [2025-04-22 06:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:14:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:15:05 [end_date_ymd] => 2025-04-22 06:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:15:05' and `end` < '2025-04-22 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-04-22 06:15:17] Production.INFO: count ==103 [2025-04-22 06:15:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:15:05 - End Time 2025-04-22 06:15:05 [2025-04-22 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963038', 'tblTempUsageDetail_20' ) start [2025-04-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963038', 'tblTempUsageDetail_20' ) end [2025-04-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963038', 'tblTempVendorCDR_20' ) start [2025-04-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963038', 'tblTempVendorCDR_20' ) end [2025-04-22 06:15:18] Production.INFO: ProcessCDR(1,14963038,1,1,2) [2025-04-22 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963038', 'tblTempUsageDetail_20' ) start [2025-04-22 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963038', 'tblTempUsageDetail_20' ) end [2025-04-22 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:15:21] Production.INFO: ==31808== Releasing lock... [2025-04-22 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:16:05 [end_date_ymd] => 2025-04-22 06:16:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:16:05' and `end` < '2025-04-22 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-04-22 06:16:18] Production.INFO: count ==103 [2025-04-22 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:16:05 - End Time 2025-04-22 06:16:05 [2025-04-22 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963043', 'tblTempUsageDetail_20' ) start [2025-04-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963043', 'tblTempUsageDetail_20' ) end [2025-04-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963043', 'tblTempVendorCDR_20' ) start [2025-04-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963043', 'tblTempVendorCDR_20' ) end [2025-04-22 06:16:18] Production.INFO: ProcessCDR(1,14963043,1,1,2) [2025-04-22 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963043', 'tblTempUsageDetail_20' ) start [2025-04-22 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963043', 'tblTempUsageDetail_20' ) end [2025-04-22 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:16:22] Production.INFO: ==31885== Releasing lock... [2025-04-22 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:17:04 [end_date_ymd] => 2025-04-22 06:17:04 [RateCDR] => 1 ) [2025-04-22 06:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:17:04' and `end` < '2025-04-22 06:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:17:17] Production.INFO: count ==103 [2025-04-22 06:17:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:17:04 - End Time 2025-04-22 06:17:04 [2025-04-22 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963048', 'tblTempUsageDetail_20' ) start [2025-04-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963048', 'tblTempUsageDetail_20' ) end [2025-04-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963048', 'tblTempVendorCDR_20' ) start [2025-04-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963048', 'tblTempVendorCDR_20' ) end [2025-04-22 06:17:17] Production.INFO: ProcessCDR(1,14963048,1,1,2) [2025-04-22 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963048', 'tblTempUsageDetail_20' ) start [2025-04-22 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963048', 'tblTempUsageDetail_20' ) end [2025-04-22 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:17:20] Production.INFO: ==31955== Releasing lock... [2025-04-22 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:18:05 [end_date_ymd] => 2025-04-22 06:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:18:05' and `end` < '2025-04-22 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-04-22 06:18:18] Production.INFO: count ==103 [2025-04-22 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:18:05 - End Time 2025-04-22 06:18:05 [2025-04-22 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963053', 'tblTempUsageDetail_20' ) start [2025-04-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963053', 'tblTempUsageDetail_20' ) end [2025-04-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963053', 'tblTempVendorCDR_20' ) start [2025-04-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963053', 'tblTempVendorCDR_20' ) end [2025-04-22 06:18:18] Production.INFO: ProcessCDR(1,14963053,1,1,2) [2025-04-22 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963053', 'tblTempUsageDetail_20' ) start [2025-04-22 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963053', 'tblTempUsageDetail_20' ) end [2025-04-22 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:18:21] Production.INFO: ==32034== Releasing lock... [2025-04-22 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:19:06 [end_date_ymd] => 2025-04-22 06:19:06 [RateCDR] => 1 ) [2025-04-22 06:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:19:06' and `end` < '2025-04-22 06:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:19:18] Production.INFO: count ==103 [2025-04-22 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:19:06 - End Time 2025-04-22 06:19:06 [2025-04-22 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963058', 'tblTempUsageDetail_20' ) start [2025-04-22 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963058', 'tblTempUsageDetail_20' ) end [2025-04-22 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963058', 'tblTempVendorCDR_20' ) start [2025-04-22 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963058', 'tblTempVendorCDR_20' ) end [2025-04-22 06:19:18] Production.INFO: ProcessCDR(1,14963058,1,1,2) [2025-04-22 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963058', 'tblTempUsageDetail_20' ) start [2025-04-22 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963058', 'tblTempUsageDetail_20' ) end [2025-04-22 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:19:22] Production.INFO: ==32107== Releasing lock... [2025-04-22 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:19:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:20:06 [end_date_ymd] => 2025-04-22 06:20:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:20:06' and `end` < '2025-04-22 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-04-22 06:20:18] Production.INFO: count ==103 [2025-04-22 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:20:06 - End Time 2025-04-22 06:20:06 [2025-04-22 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963064', 'tblTempUsageDetail_20' ) start [2025-04-22 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963064', 'tblTempUsageDetail_20' ) end [2025-04-22 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963064', 'tblTempVendorCDR_20' ) start [2025-04-22 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963064', 'tblTempVendorCDR_20' ) end [2025-04-22 06:20:18] Production.INFO: ProcessCDR(1,14963064,1,1,2) [2025-04-22 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963064', 'tblTempUsageDetail_20' ) start [2025-04-22 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963064', 'tblTempUsageDetail_20' ) end [2025-04-22 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:20:21] Production.INFO: ==32183== Releasing lock... [2025-04-22 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:21:05 [end_date_ymd] => 2025-04-22 06:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:21:05' and `end` < '2025-04-22 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-04-22 06:21:18] Production.INFO: count ==103 [2025-04-22 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:21:05 - End Time 2025-04-22 06:21:05 [2025-04-22 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963069', 'tblTempUsageDetail_20' ) start [2025-04-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963069', 'tblTempUsageDetail_20' ) end [2025-04-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963069', 'tblTempVendorCDR_20' ) start [2025-04-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963069', 'tblTempVendorCDR_20' ) end [2025-04-22 06:21:18] Production.INFO: ProcessCDR(1,14963069,1,1,2) [2025-04-22 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963069', 'tblTempUsageDetail_20' ) start [2025-04-22 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963069', 'tblTempUsageDetail_20' ) end [2025-04-22 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:21:21] Production.INFO: ==32266== Releasing lock... [2025-04-22 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:22:05 [end_date_ymd] => 2025-04-22 06:22:05 [RateCDR] => 1 ) [2025-04-22 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:22:05' and `end` < '2025-04-22 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:22:18] Production.INFO: count ==103 [2025-04-22 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:22:05 - End Time 2025-04-22 06:22:05 [2025-04-22 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963074', 'tblTempUsageDetail_20' ) start [2025-04-22 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963074', 'tblTempUsageDetail_20' ) end [2025-04-22 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963074', 'tblTempVendorCDR_20' ) start [2025-04-22 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963074', 'tblTempVendorCDR_20' ) end [2025-04-22 06:22:18] Production.INFO: ProcessCDR(1,14963074,1,1,2) [2025-04-22 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963074', 'tblTempUsageDetail_20' ) start [2025-04-22 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963074', 'tblTempUsageDetail_20' ) end [2025-04-22 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:22:21] Production.INFO: ==32335== Releasing lock... [2025-04-22 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:23:05 [end_date_ymd] => 2025-04-22 06:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:23:05' and `end` < '2025-04-22 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-04-22 06:23:18] Production.INFO: count ==103 [2025-04-22 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:23:05 - End Time 2025-04-22 06:23:05 [2025-04-22 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963079', 'tblTempUsageDetail_20' ) start [2025-04-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963079', 'tblTempUsageDetail_20' ) end [2025-04-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963079', 'tblTempVendorCDR_20' ) start [2025-04-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963079', 'tblTempVendorCDR_20' ) end [2025-04-22 06:23:18] Production.INFO: ProcessCDR(1,14963079,1,1,2) [2025-04-22 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963079', 'tblTempUsageDetail_20' ) start [2025-04-22 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963079', 'tblTempUsageDetail_20' ) end [2025-04-22 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:23:21] Production.INFO: ==32407== Releasing lock... [2025-04-22 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:24:04 [end_date_ymd] => 2025-04-22 06:24:04 [RateCDR] => 1 ) [2025-04-22 06:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:24:04' and `end` < '2025-04-22 06:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:24:17] Production.INFO: count ==103 [2025-04-22 06:24:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:24:04 - End Time 2025-04-22 06:24:04 [2025-04-22 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963084', 'tblTempUsageDetail_20' ) start [2025-04-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963084', 'tblTempUsageDetail_20' ) end [2025-04-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963084', 'tblTempVendorCDR_20' ) start [2025-04-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963084', 'tblTempVendorCDR_20' ) end [2025-04-22 06:24:17] Production.INFO: ProcessCDR(1,14963084,1,1,2) [2025-04-22 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963084', 'tblTempUsageDetail_20' ) start [2025-04-22 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963084', 'tblTempUsageDetail_20' ) end [2025-04-22 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:24:20] Production.INFO: ==32482== Releasing lock... [2025-04-22 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:24:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:25:05 [end_date_ymd] => 2025-04-22 06:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:25:05' and `end` < '2025-04-22 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-04-22 06:25:18] Production.INFO: count ==99 [2025-04-22 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:25:05 - End Time 2025-04-22 06:25:05 [2025-04-22 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963089', 'tblTempUsageDetail_20' ) start [2025-04-22 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963089', 'tblTempUsageDetail_20' ) end [2025-04-22 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963089', 'tblTempVendorCDR_20' ) start [2025-04-22 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963089', 'tblTempVendorCDR_20' ) end [2025-04-22 06:25:18] Production.INFO: ProcessCDR(1,14963089,1,1,2) [2025-04-22 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963089', 'tblTempUsageDetail_20' ) start [2025-04-22 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963089', 'tblTempUsageDetail_20' ) end [2025-04-22 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:25:21] Production.INFO: ==32555== Releasing lock... [2025-04-22 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:26:05 [end_date_ymd] => 2025-04-22 06:26:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:26:05' and `end` < '2025-04-22 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-04-22 06:26:18] Production.INFO: count ==105 [2025-04-22 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:26:05 - End Time 2025-04-22 06:26:05 [2025-04-22 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963094', 'tblTempUsageDetail_20' ) start [2025-04-22 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963094', 'tblTempUsageDetail_20' ) end [2025-04-22 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963094', 'tblTempVendorCDR_20' ) start [2025-04-22 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963094', 'tblTempVendorCDR_20' ) end [2025-04-22 06:26:18] Production.INFO: ProcessCDR(1,14963094,1,1,2) [2025-04-22 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963094', 'tblTempUsageDetail_20' ) start [2025-04-22 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963094', 'tblTempUsageDetail_20' ) end [2025-04-22 06:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:26:23] Production.INFO: ==32628== Releasing lock... [2025-04-22 06:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:26:23] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:27:05 [end_date_ymd] => 2025-04-22 06:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:27:05' and `end` < '2025-04-22 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-04-22 06:27:17] Production.INFO: count ==104 [2025-04-22 06:27:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:27:05 - End Time 2025-04-22 06:27:05 [2025-04-22 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963099', 'tblTempUsageDetail_20' ) start [2025-04-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963099', 'tblTempUsageDetail_20' ) end [2025-04-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963099', 'tblTempVendorCDR_20' ) start [2025-04-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963099', 'tblTempVendorCDR_20' ) end [2025-04-22 06:27:17] Production.INFO: ProcessCDR(1,14963099,1,1,2) [2025-04-22 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963099', 'tblTempUsageDetail_20' ) start [2025-04-22 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963099', 'tblTempUsageDetail_20' ) end [2025-04-22 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:27:21] Production.INFO: ==32700== Releasing lock... [2025-04-22 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:27:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:28:05 [end_date_ymd] => 2025-04-22 06:28:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:28:05' and `end` < '2025-04-22 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-04-22 06:28:18] Production.INFO: count ==103 [2025-04-22 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:28:05 - End Time 2025-04-22 06:28:05 [2025-04-22 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963104', 'tblTempUsageDetail_20' ) start [2025-04-22 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963104', 'tblTempUsageDetail_20' ) end [2025-04-22 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963104', 'tblTempVendorCDR_20' ) start [2025-04-22 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963104', 'tblTempVendorCDR_20' ) end [2025-04-22 06:28:18] Production.INFO: ProcessCDR(1,14963104,1,1,2) [2025-04-22 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963104', 'tblTempUsageDetail_20' ) start [2025-04-22 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963104', 'tblTempUsageDetail_20' ) end [2025-04-22 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:28:21] Production.INFO: ==304== Releasing lock... [2025-04-22 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:29:05 [end_date_ymd] => 2025-04-22 06:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:29:05' and `end` < '2025-04-22 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-04-22 06:29:17] Production.INFO: count ==103 [2025-04-22 06:29:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:29:05 - End Time 2025-04-22 06:29:05 [2025-04-22 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963109', 'tblTempUsageDetail_20' ) start [2025-04-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963109', 'tblTempUsageDetail_20' ) end [2025-04-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963109', 'tblTempVendorCDR_20' ) start [2025-04-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963109', 'tblTempVendorCDR_20' ) end [2025-04-22 06:29:17] Production.INFO: ProcessCDR(1,14963109,1,1,2) [2025-04-22 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963109', 'tblTempUsageDetail_20' ) start [2025-04-22 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963109', 'tblTempUsageDetail_20' ) end [2025-04-22 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:29:21] Production.INFO: ==396== Releasing lock... [2025-04-22 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:30:06 [end_date_ymd] => 2025-04-22 06:30:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:30:06' and `end` < '2025-04-22 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-04-22 06:30:19] Production.INFO: count ==111 [2025-04-22 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-22 03:30:06 - End Time 2025-04-22 06:30:06 [2025-04-22 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963115', 'tblTempUsageDetail_20' ) start [2025-04-22 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963115', 'tblTempUsageDetail_20' ) end [2025-04-22 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963115', 'tblTempVendorCDR_20' ) start [2025-04-22 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963115', 'tblTempVendorCDR_20' ) end [2025-04-22 06:30:19] Production.INFO: ProcessCDR(1,14963115,1,1,2) [2025-04-22 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963115', 'tblTempUsageDetail_20' ) start [2025-04-22 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963115', 'tblTempUsageDetail_20' ) end [2025-04-22 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:30:23] Production.INFO: ==473== Releasing lock... [2025-04-22 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:30:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:31:05 [end_date_ymd] => 2025-04-22 06:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:31:05' and `end` < '2025-04-22 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-04-22 06:31:18] Production.INFO: count ==121 [2025-04-22 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:31:05 - End Time 2025-04-22 06:31:05 [2025-04-22 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963120', 'tblTempUsageDetail_20' ) start [2025-04-22 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963120', 'tblTempUsageDetail_20' ) end [2025-04-22 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963120', 'tblTempVendorCDR_20' ) start [2025-04-22 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963120', 'tblTempVendorCDR_20' ) end [2025-04-22 06:31:18] Production.INFO: ProcessCDR(1,14963120,1,1,2) [2025-04-22 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963120', 'tblTempUsageDetail_20' ) start [2025-04-22 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963120', 'tblTempUsageDetail_20' ) end [2025-04-22 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:31:21] Production.INFO: ==591== Releasing lock... [2025-04-22 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:31:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:32:05 [end_date_ymd] => 2025-04-22 06:32:05 [RateCDR] => 1 ) [2025-04-22 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:32:05' and `end` < '2025-04-22 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:32:18] Production.INFO: count ==121 [2025-04-22 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:32:05 - End Time 2025-04-22 06:32:05 [2025-04-22 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963125', 'tblTempUsageDetail_20' ) start [2025-04-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963125', 'tblTempUsageDetail_20' ) end [2025-04-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963125', 'tblTempVendorCDR_20' ) start [2025-04-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963125', 'tblTempVendorCDR_20' ) end [2025-04-22 06:32:18] Production.INFO: ProcessCDR(1,14963125,1,1,2) [2025-04-22 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963125', 'tblTempUsageDetail_20' ) start [2025-04-22 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963125', 'tblTempUsageDetail_20' ) end [2025-04-22 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:32:21] Production.INFO: ==683== Releasing lock... [2025-04-22 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:32:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:33:05 [end_date_ymd] => 2025-04-22 06:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:33:05' and `end` < '2025-04-22 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-04-22 06:33:18] Production.INFO: count ==121 [2025-04-22 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:33:05 - End Time 2025-04-22 06:33:05 [2025-04-22 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963130', 'tblTempUsageDetail_20' ) start [2025-04-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963130', 'tblTempUsageDetail_20' ) end [2025-04-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963130', 'tblTempVendorCDR_20' ) start [2025-04-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963130', 'tblTempVendorCDR_20' ) end [2025-04-22 06:33:18] Production.INFO: ProcessCDR(1,14963130,1,1,2) [2025-04-22 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963130', 'tblTempUsageDetail_20' ) start [2025-04-22 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963130', 'tblTempUsageDetail_20' ) end [2025-04-22 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:33:21] Production.INFO: ==767== Releasing lock... [2025-04-22 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:33:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:34:05 [end_date_ymd] => 2025-04-22 06:34:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:34:05' and `end` < '2025-04-22 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-04-22 06:34:18] Production.INFO: count ==121 [2025-04-22 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:34:05 - End Time 2025-04-22 06:34:05 [2025-04-22 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963135', 'tblTempUsageDetail_20' ) start [2025-04-22 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963135', 'tblTempUsageDetail_20' ) end [2025-04-22 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963135', 'tblTempVendorCDR_20' ) start [2025-04-22 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963135', 'tblTempVendorCDR_20' ) end [2025-04-22 06:34:18] Production.INFO: ProcessCDR(1,14963135,1,1,2) [2025-04-22 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963135', 'tblTempUsageDetail_20' ) start [2025-04-22 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963135', 'tblTempUsageDetail_20' ) end [2025-04-22 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:34:22] Production.INFO: ==839== Releasing lock... [2025-04-22 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:34:22] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:35:05 [end_date_ymd] => 2025-04-22 06:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:35:05' and `end` < '2025-04-22 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-04-22 06:35:17] Production.INFO: count ==121 [2025-04-22 06:35:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:35:05 - End Time 2025-04-22 06:35:05 [2025-04-22 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963140', 'tblTempUsageDetail_20' ) start [2025-04-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963140', 'tblTempUsageDetail_20' ) end [2025-04-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963140', 'tblTempVendorCDR_20' ) start [2025-04-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963140', 'tblTempVendorCDR_20' ) end [2025-04-22 06:35:17] Production.INFO: ProcessCDR(1,14963140,1,1,2) [2025-04-22 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963140', 'tblTempUsageDetail_20' ) start [2025-04-22 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963140', 'tblTempUsageDetail_20' ) end [2025-04-22 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:35:21] Production.INFO: ==919== Releasing lock... [2025-04-22 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:35:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:36:05 [end_date_ymd] => 2025-04-22 06:36:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:36:05' and `end` < '2025-04-22 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-04-22 06:36:17] Production.INFO: count ==122 [2025-04-22 06:36:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:36:05 - End Time 2025-04-22 06:36:05 [2025-04-22 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963145', 'tblTempUsageDetail_20' ) start [2025-04-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963145', 'tblTempUsageDetail_20' ) end [2025-04-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963145', 'tblTempVendorCDR_20' ) start [2025-04-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963145', 'tblTempVendorCDR_20' ) end [2025-04-22 06:36:17] Production.INFO: ProcessCDR(1,14963145,1,1,2) [2025-04-22 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963145', 'tblTempUsageDetail_20' ) start [2025-04-22 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963145', 'tblTempUsageDetail_20' ) end [2025-04-22 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:36:22] Production.INFO: ==990== Releasing lock... [2025-04-22 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:36:22] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:37:05 [end_date_ymd] => 2025-04-22 06:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:37:05' and `end` < '2025-04-22 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-04-22 06:37:18] Production.INFO: count ==123 [2025-04-22 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:37:05 - End Time 2025-04-22 06:37:05 [2025-04-22 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963150', 'tblTempUsageDetail_20' ) start [2025-04-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963150', 'tblTempUsageDetail_20' ) end [2025-04-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963150', 'tblTempVendorCDR_20' ) start [2025-04-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963150', 'tblTempVendorCDR_20' ) end [2025-04-22 06:37:18] Production.INFO: ProcessCDR(1,14963150,1,1,2) [2025-04-22 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963150', 'tblTempUsageDetail_20' ) start [2025-04-22 06:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963150', 'tblTempUsageDetail_20' ) end [2025-04-22 06:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:37:23] Production.INFO: ==1065== Releasing lock... [2025-04-22 06:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:37:23] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:38:04 [end_date_ymd] => 2025-04-22 06:38:04 [RateCDR] => 1 ) [2025-04-22 06:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:38:04' and `end` < '2025-04-22 06:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:38:17] Production.INFO: count ==123 [2025-04-22 06:38:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:38:04 - End Time 2025-04-22 06:38:04 [2025-04-22 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963155', 'tblTempUsageDetail_20' ) start [2025-04-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963155', 'tblTempUsageDetail_20' ) end [2025-04-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963155', 'tblTempVendorCDR_20' ) start [2025-04-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963155', 'tblTempVendorCDR_20' ) end [2025-04-22 06:38:17] Production.INFO: ProcessCDR(1,14963155,1,1,2) [2025-04-22 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963155', 'tblTempUsageDetail_20' ) start [2025-04-22 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963155', 'tblTempUsageDetail_20' ) end [2025-04-22 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:38:20] Production.INFO: ==1140== Releasing lock... [2025-04-22 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:38:20] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:39:05 [end_date_ymd] => 2025-04-22 06:39:05 [RateCDR] => 1 ) [2025-04-22 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:39:05' and `end` < '2025-04-22 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:39:18] Production.INFO: count ==124 [2025-04-22 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:39:05 - End Time 2025-04-22 06:39:05 [2025-04-22 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963160', 'tblTempUsageDetail_20' ) start [2025-04-22 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963160', 'tblTempUsageDetail_20' ) end [2025-04-22 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963160', 'tblTempVendorCDR_20' ) start [2025-04-22 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963160', 'tblTempVendorCDR_20' ) end [2025-04-22 06:39:18] Production.INFO: ProcessCDR(1,14963160,1,1,2) [2025-04-22 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963160', 'tblTempUsageDetail_20' ) start [2025-04-22 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963160', 'tblTempUsageDetail_20' ) end [2025-04-22 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:39:22] Production.INFO: ==1266== Releasing lock... [2025-04-22 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:40:06 [end_date_ymd] => 2025-04-22 06:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:40:06' and `end` < '2025-04-22 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-04-22 06:40:19] Production.INFO: count ==124 [2025-04-22 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-22 03:40:06 - End Time 2025-04-22 06:40:06 [2025-04-22 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963166', 'tblTempUsageDetail_20' ) start [2025-04-22 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963166', 'tblTempUsageDetail_20' ) end [2025-04-22 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963166', 'tblTempVendorCDR_20' ) start [2025-04-22 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963166', 'tblTempVendorCDR_20' ) end [2025-04-22 06:40:19] Production.INFO: ProcessCDR(1,14963166,1,1,2) [2025-04-22 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963166', 'tblTempUsageDetail_20' ) start [2025-04-22 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963166', 'tblTempUsageDetail_20' ) end [2025-04-22 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:40:22] Production.INFO: ==1341== Releasing lock... [2025-04-22 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:41:06 [end_date_ymd] => 2025-04-22 06:41:06 [RateCDR] => 1 ) [2025-04-22 06: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-04-22 03:41:06' and `end` < '2025-04-22 06: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-04-22 06:41:18] Production.INFO: count ==125 [2025-04-22 06:41:19] Production.ERROR: pbx CDR StartTime 2025-04-22 03:41:06 - End Time 2025-04-22 06:41:06 [2025-04-22 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963171', 'tblTempUsageDetail_20' ) start [2025-04-22 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963171', 'tblTempUsageDetail_20' ) end [2025-04-22 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963171', 'tblTempVendorCDR_20' ) start [2025-04-22 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963171', 'tblTempVendorCDR_20' ) end [2025-04-22 06:41:19] Production.INFO: ProcessCDR(1,14963171,1,1,2) [2025-04-22 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963171', 'tblTempUsageDetail_20' ) start [2025-04-22 06:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963171', 'tblTempUsageDetail_20' ) end [2025-04-22 06:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:41:23] Production.INFO: ==1421== Releasing lock... [2025-04-22 06:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:41:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:42:05 [end_date_ymd] => 2025-04-22 06:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:42:05' and `end` < '2025-04-22 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-04-22 06:42:17] Production.INFO: count ==125 [2025-04-22 06:42:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:42:05 - End Time 2025-04-22 06:42:05 [2025-04-22 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963176', 'tblTempUsageDetail_20' ) start [2025-04-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963176', 'tblTempUsageDetail_20' ) end [2025-04-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963176', 'tblTempVendorCDR_20' ) start [2025-04-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963176', 'tblTempVendorCDR_20' ) end [2025-04-22 06:42:17] Production.INFO: ProcessCDR(1,14963176,1,1,2) [2025-04-22 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963176', 'tblTempUsageDetail_20' ) start [2025-04-22 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963176', 'tblTempUsageDetail_20' ) end [2025-04-22 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:42:21] Production.INFO: ==1492== Releasing lock... [2025-04-22 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:43:05 [end_date_ymd] => 2025-04-22 06:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:43:05' and `end` < '2025-04-22 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-04-22 06:43:18] Production.INFO: count ==122 [2025-04-22 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:43:05 - End Time 2025-04-22 06:43:05 [2025-04-22 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963181', 'tblTempUsageDetail_20' ) start [2025-04-22 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963181', 'tblTempUsageDetail_20' ) end [2025-04-22 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963181', 'tblTempVendorCDR_20' ) start [2025-04-22 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963181', 'tblTempVendorCDR_20' ) end [2025-04-22 06:43:18] Production.INFO: ProcessCDR(1,14963181,1,1,2) [2025-04-22 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963181', 'tblTempUsageDetail_20' ) start [2025-04-22 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963181', 'tblTempUsageDetail_20' ) end [2025-04-22 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:43:21] Production.INFO: ==1607== Releasing lock... [2025-04-22 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:43:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:44:05 [end_date_ymd] => 2025-04-22 06:44:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:44:05' and `end` < '2025-04-22 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-04-22 06:44:17] Production.INFO: count ==122 [2025-04-22 06:44:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:44:05 - End Time 2025-04-22 06:44:05 [2025-04-22 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963186', 'tblTempUsageDetail_20' ) start [2025-04-22 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963186', 'tblTempUsageDetail_20' ) end [2025-04-22 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963186', 'tblTempVendorCDR_20' ) start [2025-04-22 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963186', 'tblTempVendorCDR_20' ) end [2025-04-22 06:44:17] Production.INFO: ProcessCDR(1,14963186,1,1,2) [2025-04-22 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963186', 'tblTempUsageDetail_20' ) start [2025-04-22 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963186', 'tblTempUsageDetail_20' ) end [2025-04-22 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:44:21] Production.INFO: ==1679== Releasing lock... [2025-04-22 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:44:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:45:05 [end_date_ymd] => 2025-04-22 06:45:05 [RateCDR] => 1 ) [2025-04-22 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:45:05' and `end` < '2025-04-22 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:45:18] Production.INFO: count ==122 [2025-04-22 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:45:05 - End Time 2025-04-22 06:45:05 [2025-04-22 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963191', 'tblTempUsageDetail_20' ) start [2025-04-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963191', 'tblTempUsageDetail_20' ) end [2025-04-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963191', 'tblTempVendorCDR_20' ) start [2025-04-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963191', 'tblTempVendorCDR_20' ) end [2025-04-22 06:45:18] Production.INFO: ProcessCDR(1,14963191,1,1,2) [2025-04-22 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963191', 'tblTempUsageDetail_20' ) start [2025-04-22 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963191', 'tblTempUsageDetail_20' ) end [2025-04-22 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:45:21] Production.INFO: ==1751== Releasing lock... [2025-04-22 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:45:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:46:05 [end_date_ymd] => 2025-04-22 06:46:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:46:05' and `end` < '2025-04-22 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-04-22 06:46:18] Production.INFO: count ==122 [2025-04-22 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:46:05 - End Time 2025-04-22 06:46:05 [2025-04-22 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963196', 'tblTempUsageDetail_20' ) start [2025-04-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963196', 'tblTempUsageDetail_20' ) end [2025-04-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963196', 'tblTempVendorCDR_20' ) start [2025-04-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963196', 'tblTempVendorCDR_20' ) end [2025-04-22 06:46:18] Production.INFO: ProcessCDR(1,14963196,1,1,2) [2025-04-22 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963196', 'tblTempUsageDetail_20' ) start [2025-04-22 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963196', 'tblTempUsageDetail_20' ) end [2025-04-22 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:46:21] Production.INFO: ==1867== Releasing lock... [2025-04-22 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:46:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:47:06 [end_date_ymd] => 2025-04-22 06:47:06 [RateCDR] => 1 ) [2025-04-22 06:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:47:06' and `end` < '2025-04-22 06:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:47:18] Production.INFO: count ==122 [2025-04-22 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:47:06 - End Time 2025-04-22 06:47:06 [2025-04-22 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963201', 'tblTempUsageDetail_20' ) start [2025-04-22 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963201', 'tblTempUsageDetail_20' ) end [2025-04-22 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963201', 'tblTempVendorCDR_20' ) start [2025-04-22 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963201', 'tblTempVendorCDR_20' ) end [2025-04-22 06:47:18] Production.INFO: ProcessCDR(1,14963201,1,1,2) [2025-04-22 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963201', 'tblTempUsageDetail_20' ) start [2025-04-22 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963201', 'tblTempUsageDetail_20' ) end [2025-04-22 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:47:22] Production.INFO: ==1937== Releasing lock... [2025-04-22 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:47:22] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:48:05 [end_date_ymd] => 2025-04-22 06:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:48:05' and `end` < '2025-04-22 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-04-22 06:48:17] Production.INFO: count ==125 [2025-04-22 06:48:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:48:05 - End Time 2025-04-22 06:48:05 [2025-04-22 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963206', 'tblTempUsageDetail_20' ) start [2025-04-22 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963206', 'tblTempUsageDetail_20' ) end [2025-04-22 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963206', 'tblTempVendorCDR_20' ) start [2025-04-22 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963206', 'tblTempVendorCDR_20' ) end [2025-04-22 06:48:17] Production.INFO: ProcessCDR(1,14963206,1,1,2) [2025-04-22 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963206', 'tblTempUsageDetail_20' ) start [2025-04-22 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963206', 'tblTempUsageDetail_20' ) end [2025-04-22 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:48:20] Production.INFO: ==2016== Releasing lock... [2025-04-22 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:48:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:49:05 [end_date_ymd] => 2025-04-22 06:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:49:05' and `end` < '2025-04-22 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-04-22 06:49:18] Production.INFO: count ==125 [2025-04-22 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:49:05 - End Time 2025-04-22 06:49:05 [2025-04-22 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963211', 'tblTempUsageDetail_20' ) start [2025-04-22 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963211', 'tblTempUsageDetail_20' ) end [2025-04-22 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963211', 'tblTempVendorCDR_20' ) start [2025-04-22 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963211', 'tblTempVendorCDR_20' ) end [2025-04-22 06:49:18] Production.INFO: ProcessCDR(1,14963211,1,1,2) [2025-04-22 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963211', 'tblTempUsageDetail_20' ) start [2025-04-22 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963211', 'tblTempUsageDetail_20' ) end [2025-04-22 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:49:21] Production.INFO: ==2087== Releasing lock... [2025-04-22 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:50:06 [end_date_ymd] => 2025-04-22 06:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:50:06' and `end` < '2025-04-22 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-04-22 06:50:19] Production.INFO: count ==125 [2025-04-22 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-22 03:50:06 - End Time 2025-04-22 06:50:06 [2025-04-22 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963217', 'tblTempUsageDetail_20' ) start [2025-04-22 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963217', 'tblTempUsageDetail_20' ) end [2025-04-22 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963217', 'tblTempVendorCDR_20' ) start [2025-04-22 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963217', 'tblTempVendorCDR_20' ) end [2025-04-22 06:50:19] Production.INFO: ProcessCDR(1,14963217,1,1,2) [2025-04-22 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963217', 'tblTempUsageDetail_20' ) start [2025-04-22 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963217', 'tblTempUsageDetail_20' ) end [2025-04-22 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:50:23] Production.INFO: ==2161== Releasing lock... [2025-04-22 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:50:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:51:05 [end_date_ymd] => 2025-04-22 06:51:05 [RateCDR] => 1 ) [2025-04-22 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:51:05' and `end` < '2025-04-22 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:51:18] Production.INFO: count ==125 [2025-04-22 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:51:05 - End Time 2025-04-22 06:51:05 [2025-04-22 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963222', 'tblTempUsageDetail_20' ) start [2025-04-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963222', 'tblTempUsageDetail_20' ) end [2025-04-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963222', 'tblTempVendorCDR_20' ) start [2025-04-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963222', 'tblTempVendorCDR_20' ) end [2025-04-22 06:51:18] Production.INFO: ProcessCDR(1,14963222,1,1,2) [2025-04-22 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963222', 'tblTempUsageDetail_20' ) start [2025-04-22 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963222', 'tblTempUsageDetail_20' ) end [2025-04-22 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:51:21] Production.INFO: ==2236== Releasing lock... [2025-04-22 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:52:06 [end_date_ymd] => 2025-04-22 06:52:06 [RateCDR] => 1 ) [2025-04-22 06:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:52:06' and `end` < '2025-04-22 06:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:52:18] Production.INFO: count ==125 [2025-04-22 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:52:06 - End Time 2025-04-22 06:52:06 [2025-04-22 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963227', 'tblTempUsageDetail_20' ) start [2025-04-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963227', 'tblTempUsageDetail_20' ) end [2025-04-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963227', 'tblTempVendorCDR_20' ) start [2025-04-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963227', 'tblTempVendorCDR_20' ) end [2025-04-22 06:52:18] Production.INFO: ProcessCDR(1,14963227,1,1,2) [2025-04-22 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963227', 'tblTempUsageDetail_20' ) start [2025-04-22 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963227', 'tblTempUsageDetail_20' ) end [2025-04-22 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:52:21] Production.INFO: ==2310== Releasing lock... [2025-04-22 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:53:05 [end_date_ymd] => 2025-04-22 06:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:53:05' and `end` < '2025-04-22 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-04-22 06:53:18] Production.INFO: count ==125 [2025-04-22 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:53:05 - End Time 2025-04-22 06:53:05 [2025-04-22 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963232', 'tblTempUsageDetail_20' ) start [2025-04-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963232', 'tblTempUsageDetail_20' ) end [2025-04-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963232', 'tblTempVendorCDR_20' ) start [2025-04-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963232', 'tblTempVendorCDR_20' ) end [2025-04-22 06:53:18] Production.INFO: ProcessCDR(1,14963232,1,1,2) [2025-04-22 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963232', 'tblTempUsageDetail_20' ) start [2025-04-22 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963232', 'tblTempUsageDetail_20' ) end [2025-04-22 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:53:21] Production.INFO: ==2380== Releasing lock... [2025-04-22 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:53:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:54:05 [end_date_ymd] => 2025-04-22 06:54:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:54:05' and `end` < '2025-04-22 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-04-22 06:54:18] Production.INFO: count ==126 [2025-04-22 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:54:05 - End Time 2025-04-22 06:54:05 [2025-04-22 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963237', 'tblTempUsageDetail_20' ) start [2025-04-22 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963237', 'tblTempUsageDetail_20' ) end [2025-04-22 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963237', 'tblTempVendorCDR_20' ) start [2025-04-22 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963237', 'tblTempVendorCDR_20' ) end [2025-04-22 06:54:18] Production.INFO: ProcessCDR(1,14963237,1,1,2) [2025-04-22 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963237', 'tblTempUsageDetail_20' ) start [2025-04-22 06:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963237', 'tblTempUsageDetail_20' ) end [2025-04-22 06:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:54:23] Production.INFO: ==2456== Releasing lock... [2025-04-22 06:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:54:23] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:55:05 [end_date_ymd] => 2025-04-22 06:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:55:05' and `end` < '2025-04-22 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-04-22 06:55:18] Production.INFO: count ==127 [2025-04-22 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:55:05 - End Time 2025-04-22 06:55:05 [2025-04-22 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963242', 'tblTempUsageDetail_20' ) start [2025-04-22 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963242', 'tblTempUsageDetail_20' ) end [2025-04-22 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963242', 'tblTempVendorCDR_20' ) start [2025-04-22 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963242', 'tblTempVendorCDR_20' ) end [2025-04-22 06:55:18] Production.INFO: ProcessCDR(1,14963242,1,1,2) [2025-04-22 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963242', 'tblTempUsageDetail_20' ) start [2025-04-22 06:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963242', 'tblTempUsageDetail_20' ) end [2025-04-22 06:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:55:23] Production.INFO: ==2531== Releasing lock... [2025-04-22 06:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:55:23] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:56:05 [end_date_ymd] => 2025-04-22 06:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:56:05' and `end` < '2025-04-22 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-04-22 06:56:18] Production.INFO: count ==127 [2025-04-22 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:56:05 - End Time 2025-04-22 06:56:05 [2025-04-22 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963247', 'tblTempUsageDetail_20' ) start [2025-04-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963247', 'tblTempUsageDetail_20' ) end [2025-04-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963247', 'tblTempVendorCDR_20' ) start [2025-04-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963247', 'tblTempVendorCDR_20' ) end [2025-04-22 06:56:18] Production.INFO: ProcessCDR(1,14963247,1,1,2) [2025-04-22 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963247', 'tblTempUsageDetail_20' ) start [2025-04-22 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963247', 'tblTempUsageDetail_20' ) end [2025-04-22 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:56:22] Production.INFO: ==2604== Releasing lock... [2025-04-22 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:56:22] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:57:05 [end_date_ymd] => 2025-04-22 06:57:05 [RateCDR] => 1 ) [2025-04-22 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:57:05' and `end` < '2025-04-22 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:57:18] Production.INFO: count ==127 [2025-04-22 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-22 03:57:05 - End Time 2025-04-22 06:57:05 [2025-04-22 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963252', 'tblTempUsageDetail_20' ) start [2025-04-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963252', 'tblTempUsageDetail_20' ) end [2025-04-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963252', 'tblTempVendorCDR_20' ) start [2025-04-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963252', 'tblTempVendorCDR_20' ) end [2025-04-22 06:57:18] Production.INFO: ProcessCDR(1,14963252,1,1,2) [2025-04-22 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963252', 'tblTempUsageDetail_20' ) start [2025-04-22 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963252', 'tblTempUsageDetail_20' ) end [2025-04-22 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:57:21] Production.INFO: ==2679== Releasing lock... [2025-04-22 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:57:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:58:06 [end_date_ymd] => 2025-04-22 06:58:06 [RateCDR] => 1 ) [2025-04-22 06:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 03:58:06' and `end` < '2025-04-22 06:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 06:58:19] Production.INFO: count ==127 [2025-04-22 06:58:19] Production.ERROR: pbx CDR StartTime 2025-04-22 03:58:06 - End Time 2025-04-22 06:58:06 [2025-04-22 06:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963257', 'tblTempUsageDetail_20' ) start [2025-04-22 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963257', 'tblTempUsageDetail_20' ) end [2025-04-22 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963257', 'tblTempVendorCDR_20' ) start [2025-04-22 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963257', 'tblTempVendorCDR_20' ) end [2025-04-22 06:58:19] Production.INFO: ProcessCDR(1,14963257,1,1,2) [2025-04-22 06:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963257', 'tblTempUsageDetail_20' ) start [2025-04-22 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963257', 'tblTempUsageDetail_20' ) end [2025-04-22 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:58:22] Production.INFO: ==2755== Releasing lock... [2025-04-22 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:58:22] Production.INFO: 29 MB #Memory Used# [2025-04-22 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 03:59:05 [end_date_ymd] => 2025-04-22 06:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 03:59:05' and `end` < '2025-04-22 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-04-22 06:59:17] Production.INFO: count ==128 [2025-04-22 06:59:17] Production.ERROR: pbx CDR StartTime 2025-04-22 03:59:05 - End Time 2025-04-22 06:59:05 [2025-04-22 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963262', 'tblTempUsageDetail_20' ) start [2025-04-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963262', 'tblTempUsageDetail_20' ) end [2025-04-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963262', 'tblTempVendorCDR_20' ) start [2025-04-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963262', 'tblTempVendorCDR_20' ) end [2025-04-22 06:59:17] Production.INFO: ProcessCDR(1,14963262,1,1,2) [2025-04-22 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963262', 'tblTempUsageDetail_20' ) start [2025-04-22 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963262', 'tblTempUsageDetail_20' ) end [2025-04-22 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 06:59:22] Production.INFO: ==2830== Releasing lock... [2025-04-22 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 06:59:22] Production.INFO: 29 MB #Memory Used# [2025-04-22 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:00:06 [end_date_ymd] => 2025-04-22 07:00:06 [RateCDR] => 1 ) [2025-04-22 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:00:06' and `end` < '2025-04-22 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:00:18] Production.INFO: count ==119 [2025-04-22 07:00:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:00:06 - End Time 2025-04-22 07:00:06 [2025-04-22 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963267', 'tblTempUsageDetail_20' ) start [2025-04-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963267', 'tblTempUsageDetail_20' ) end [2025-04-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963267', 'tblTempVendorCDR_20' ) start [2025-04-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963267', 'tblTempVendorCDR_20' ) end [2025-04-22 07:00:18] Production.INFO: ProcessCDR(1,14963267,1,1,2) [2025-04-22 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963267', 'tblTempUsageDetail_20' ) start [2025-04-22 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963267', 'tblTempUsageDetail_20' ) end [2025-04-22 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:00:23] Production.INFO: ==2905== Releasing lock... [2025-04-22 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:00:23] Production.INFO: 29 MB #Memory Used# [2025-04-22 07:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:01:04 [end_date_ymd] => 2025-04-22 07:01:04 [RateCDR] => 1 ) [2025-04-22 07: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-04-22 04:01:04' and `end` < '2025-04-22 07: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-04-22 07:01:17] Production.INFO: count ==117 [2025-04-22 07:01:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:01:04 - End Time 2025-04-22 07:01:04 [2025-04-22 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963273', 'tblTempUsageDetail_20' ) start [2025-04-22 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963273', 'tblTempUsageDetail_20' ) end [2025-04-22 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963273', 'tblTempVendorCDR_20' ) start [2025-04-22 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963273', 'tblTempVendorCDR_20' ) end [2025-04-22 07:01:17] Production.INFO: ProcessCDR(1,14963273,1,1,2) [2025-04-22 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963273', 'tblTempUsageDetail_20' ) start [2025-04-22 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963273', 'tblTempUsageDetail_20' ) end [2025-04-22 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:01:20] Production.INFO: ==3032== Releasing lock... [2025-04-22 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:01:20] Production.INFO: 29 MB #Memory Used# [2025-04-22 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:02:05 [end_date_ymd] => 2025-04-22 07:02:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:02:05' and `end` < '2025-04-22 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-04-22 07:02:18] Production.INFO: count ==115 [2025-04-22 07:02:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:02:05 - End Time 2025-04-22 07:02:05 [2025-04-22 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963278', 'tblTempUsageDetail_20' ) start [2025-04-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963278', 'tblTempUsageDetail_20' ) end [2025-04-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963278', 'tblTempVendorCDR_20' ) start [2025-04-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963278', 'tblTempVendorCDR_20' ) end [2025-04-22 07:02:18] Production.INFO: ProcessCDR(1,14963278,1,1,2) [2025-04-22 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963278', 'tblTempUsageDetail_20' ) start [2025-04-22 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963278', 'tblTempUsageDetail_20' ) end [2025-04-22 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:02:23] Production.INFO: ==3191== Releasing lock... [2025-04-22 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:02:23] Production.INFO: 29 MB #Memory Used# [2025-04-22 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:03:06 [end_date_ymd] => 2025-04-22 07:03:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:03:06' and `end` < '2025-04-22 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-04-22 07:03:20] Production.INFO: count ==117 [2025-04-22 07:03:20] Production.ERROR: pbx CDR StartTime 2025-04-22 04:03:06 - End Time 2025-04-22 07:03:06 [2025-04-22 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963283', 'tblTempUsageDetail_20' ) start [2025-04-22 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963283', 'tblTempUsageDetail_20' ) end [2025-04-22 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963283', 'tblTempVendorCDR_20' ) start [2025-04-22 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963283', 'tblTempVendorCDR_20' ) end [2025-04-22 07:03:20] Production.INFO: ProcessCDR(1,14963283,1,1,2) [2025-04-22 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963283', 'tblTempUsageDetail_20' ) start [2025-04-22 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963283', 'tblTempUsageDetail_20' ) end [2025-04-22 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:03:23] Production.INFO: ==3265== Releasing lock... [2025-04-22 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:03:23] Production.INFO: 29 MB #Memory Used# [2025-04-22 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:04:05 [end_date_ymd] => 2025-04-22 07:04:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:04:05' and `end` < '2025-04-22 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-04-22 07:04:19] Production.INFO: count ==116 [2025-04-22 07:04:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:04:05 - End Time 2025-04-22 07:04:05 [2025-04-22 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963288', 'tblTempUsageDetail_20' ) start [2025-04-22 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963288', 'tblTempUsageDetail_20' ) end [2025-04-22 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963288', 'tblTempVendorCDR_20' ) start [2025-04-22 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963288', 'tblTempVendorCDR_20' ) end [2025-04-22 07:04:19] Production.INFO: ProcessCDR(1,14963288,1,1,2) [2025-04-22 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963288', 'tblTempUsageDetail_20' ) start [2025-04-22 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963288', 'tblTempUsageDetail_20' ) end [2025-04-22 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:04:22] Production.INFO: ==3337== Releasing lock... [2025-04-22 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:05:05 [end_date_ymd] => 2025-04-22 07:05:05 [RateCDR] => 1 ) [2025-04-22 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:05:05' and `end` < '2025-04-22 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:05:19] Production.INFO: count ==113 [2025-04-22 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:05:05 - End Time 2025-04-22 07:05:05 [2025-04-22 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963293', 'tblTempUsageDetail_20' ) start [2025-04-22 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963293', 'tblTempUsageDetail_20' ) end [2025-04-22 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963293', 'tblTempVendorCDR_20' ) start [2025-04-22 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963293', 'tblTempVendorCDR_20' ) end [2025-04-22 07:05:19] Production.INFO: ProcessCDR(1,14963293,1,1,2) [2025-04-22 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963293', 'tblTempUsageDetail_20' ) start [2025-04-22 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963293', 'tblTempUsageDetail_20' ) end [2025-04-22 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:05:23] Production.INFO: ==3487== Releasing lock... [2025-04-22 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:05:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:06:05 [end_date_ymd] => 2025-04-22 07:06:05 [RateCDR] => 1 ) [2025-04-22 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:06:05' and `end` < '2025-04-22 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:06:19] Production.INFO: count ==113 [2025-04-22 07:06:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:06:05 - End Time 2025-04-22 07:06:05 [2025-04-22 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963298', 'tblTempUsageDetail_20' ) start [2025-04-22 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963298', 'tblTempUsageDetail_20' ) end [2025-04-22 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963298', 'tblTempVendorCDR_20' ) start [2025-04-22 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963298', 'tblTempVendorCDR_20' ) end [2025-04-22 07:06:19] Production.INFO: ProcessCDR(1,14963298,1,1,2) [2025-04-22 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963298', 'tblTempUsageDetail_20' ) start [2025-04-22 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963298', 'tblTempUsageDetail_20' ) end [2025-04-22 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:06:22] Production.INFO: ==3560== Releasing lock... [2025-04-22 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:07:06 [end_date_ymd] => 2025-04-22 07:07:06 [RateCDR] => 1 ) [2025-04-22 07:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:07:06' and `end` < '2025-04-22 07:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:07:18] Production.INFO: count ==113 [2025-04-22 07:07:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:07:06 - End Time 2025-04-22 07:07:06 [2025-04-22 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963303', 'tblTempUsageDetail_20' ) start [2025-04-22 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963303', 'tblTempUsageDetail_20' ) end [2025-04-22 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963303', 'tblTempVendorCDR_20' ) start [2025-04-22 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963303', 'tblTempVendorCDR_20' ) end [2025-04-22 07:07:19] Production.INFO: ProcessCDR(1,14963303,1,1,2) [2025-04-22 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963303', 'tblTempUsageDetail_20' ) start [2025-04-22 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963303', 'tblTempUsageDetail_20' ) end [2025-04-22 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:07:22] Production.INFO: ==3634== Releasing lock... [2025-04-22 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:08:05 [end_date_ymd] => 2025-04-22 07:08:05 [RateCDR] => 1 ) [2025-04-22 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:08:05' and `end` < '2025-04-22 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:08:17] Production.INFO: count ==114 [2025-04-22 07:08:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:08:05 - End Time 2025-04-22 07:08:05 [2025-04-22 07:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963308', 'tblTempUsageDetail_20' ) start [2025-04-22 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963308', 'tblTempUsageDetail_20' ) end [2025-04-22 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963308', 'tblTempVendorCDR_20' ) start [2025-04-22 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963308', 'tblTempVendorCDR_20' ) end [2025-04-22 07:08:17] Production.INFO: ProcessCDR(1,14963308,1,1,2) [2025-04-22 07:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963308', 'tblTempUsageDetail_20' ) start [2025-04-22 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963308', 'tblTempUsageDetail_20' ) end [2025-04-22 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:08:21] Production.INFO: ==3741== Releasing lock... [2025-04-22 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:09:05 [end_date_ymd] => 2025-04-22 07:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:09:05' and `end` < '2025-04-22 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-04-22 07:09:19] Production.INFO: count ==112 [2025-04-22 07:09:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:09:05 - End Time 2025-04-22 07:09:05 [2025-04-22 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963313', 'tblTempUsageDetail_20' ) start [2025-04-22 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963313', 'tblTempUsageDetail_20' ) end [2025-04-22 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963313', 'tblTempVendorCDR_20' ) start [2025-04-22 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963313', 'tblTempVendorCDR_20' ) end [2025-04-22 07:09:19] Production.INFO: ProcessCDR(1,14963313,1,1,2) [2025-04-22 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963313', 'tblTempUsageDetail_20' ) start [2025-04-22 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963313', 'tblTempUsageDetail_20' ) end [2025-04-22 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:09:23] Production.INFO: ==3859== Releasing lock... [2025-04-22 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:09:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:10:06 [end_date_ymd] => 2025-04-22 07:10:06 [RateCDR] => 1 ) [2025-04-22 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:10:06' and `end` < '2025-04-22 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:10:19] Production.INFO: count ==113 [2025-04-22 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:10:06 - End Time 2025-04-22 07:10:06 [2025-04-22 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963319', 'tblTempUsageDetail_20' ) start [2025-04-22 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963319', 'tblTempUsageDetail_20' ) end [2025-04-22 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963319', 'tblTempVendorCDR_20' ) start [2025-04-22 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963319', 'tblTempVendorCDR_20' ) end [2025-04-22 07:10:19] Production.INFO: ProcessCDR(1,14963319,1,1,2) [2025-04-22 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963319', 'tblTempUsageDetail_20' ) start [2025-04-22 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963319', 'tblTempUsageDetail_20' ) end [2025-04-22 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:10:22] Production.INFO: ==3940== Releasing lock... [2025-04-22 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:11:04 [end_date_ymd] => 2025-04-22 07:11:04 [RateCDR] => 1 ) [2025-04-22 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:11:04' and `end` < '2025-04-22 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:11:18] Production.INFO: count ==113 [2025-04-22 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:11:04 - End Time 2025-04-22 07:11:04 [2025-04-22 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963324', 'tblTempUsageDetail_20' ) start [2025-04-22 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963324', 'tblTempUsageDetail_20' ) end [2025-04-22 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963324', 'tblTempVendorCDR_20' ) start [2025-04-22 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963324', 'tblTempVendorCDR_20' ) end [2025-04-22 07:11:18] Production.INFO: ProcessCDR(1,14963324,1,1,2) [2025-04-22 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963324', 'tblTempUsageDetail_20' ) start [2025-04-22 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963324', 'tblTempUsageDetail_20' ) end [2025-04-22 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:11:21] Production.INFO: ==4015== Releasing lock... [2025-04-22 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:12:06 [end_date_ymd] => 2025-04-22 07:12:06 [RateCDR] => 1 ) [2025-04-22 07: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-04-22 04:12:06' and `end` < '2025-04-22 07: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-04-22 07:12:19] Production.INFO: count ==113 [2025-04-22 07:12:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:12:06 - End Time 2025-04-22 07:12:06 [2025-04-22 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963329', 'tblTempUsageDetail_20' ) start [2025-04-22 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963329', 'tblTempUsageDetail_20' ) end [2025-04-22 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963329', 'tblTempVendorCDR_20' ) start [2025-04-22 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963329', 'tblTempVendorCDR_20' ) end [2025-04-22 07:12:19] Production.INFO: ProcessCDR(1,14963329,1,1,2) [2025-04-22 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963329', 'tblTempUsageDetail_20' ) start [2025-04-22 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963329', 'tblTempUsageDetail_20' ) end [2025-04-22 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:12:22] Production.INFO: ==4173== Releasing lock... [2025-04-22 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-22 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:13:05 [end_date_ymd] => 2025-04-22 07:13:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:13:05' and `end` < '2025-04-22 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-04-22 07:13:19] Production.INFO: count ==114 [2025-04-22 07:13:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:13:05 - End Time 2025-04-22 07:13:05 [2025-04-22 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963334', 'tblTempUsageDetail_20' ) start [2025-04-22 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963334', 'tblTempUsageDetail_20' ) end [2025-04-22 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963334', 'tblTempVendorCDR_20' ) start [2025-04-22 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963334', 'tblTempVendorCDR_20' ) end [2025-04-22 07:13:19] Production.INFO: ProcessCDR(1,14963334,1,1,2) [2025-04-22 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963334', 'tblTempUsageDetail_20' ) start [2025-04-22 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963334', 'tblTempUsageDetail_20' ) end [2025-04-22 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:13:22] Production.INFO: ==4246== Releasing lock... [2025-04-22 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:13:22] Production.INFO: 29 MB #Memory Used# [2025-04-22 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:14:05 [end_date_ymd] => 2025-04-22 07:14:05 [RateCDR] => 1 ) [2025-04-22 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:14:05' and `end` < '2025-04-22 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:14:18] Production.INFO: count ==120 [2025-04-22 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:14:05 - End Time 2025-04-22 07:14:05 [2025-04-22 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963339', 'tblTempUsageDetail_20' ) start [2025-04-22 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963339', 'tblTempUsageDetail_20' ) end [2025-04-22 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963339', 'tblTempVendorCDR_20' ) start [2025-04-22 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963339', 'tblTempVendorCDR_20' ) end [2025-04-22 07:14:18] Production.INFO: ProcessCDR(1,14963339,1,1,2) [2025-04-22 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963339', 'tblTempUsageDetail_20' ) start [2025-04-22 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963339', 'tblTempUsageDetail_20' ) end [2025-04-22 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:14:21] Production.INFO: ==4320== Releasing lock... [2025-04-22 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:14:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:15:05 [end_date_ymd] => 2025-04-22 07:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:15:05' and `end` < '2025-04-22 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-04-22 07:15:19] Production.INFO: count ==120 [2025-04-22 07:15:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:15:05 - End Time 2025-04-22 07:15:05 [2025-04-22 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963344', 'tblTempUsageDetail_20' ) start [2025-04-22 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963344', 'tblTempUsageDetail_20' ) end [2025-04-22 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963344', 'tblTempVendorCDR_20' ) start [2025-04-22 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963344', 'tblTempVendorCDR_20' ) end [2025-04-22 07:15:19] Production.INFO: ProcessCDR(1,14963344,1,1,2) [2025-04-22 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963344', 'tblTempUsageDetail_20' ) start [2025-04-22 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963344', 'tblTempUsageDetail_20' ) end [2025-04-22 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:15:22] Production.INFO: ==4439== Releasing lock... [2025-04-22 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:15:22] Production.INFO: 29 MB #Memory Used# [2025-04-22 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:16:05 [end_date_ymd] => 2025-04-22 07:16:05 [RateCDR] => 1 ) [2025-04-22 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:16:05' and `end` < '2025-04-22 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:16:18] Production.INFO: count ==120 [2025-04-22 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:16:05 - End Time 2025-04-22 07:16:05 [2025-04-22 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963349', 'tblTempUsageDetail_20' ) start [2025-04-22 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963349', 'tblTempUsageDetail_20' ) end [2025-04-22 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963349', 'tblTempVendorCDR_20' ) start [2025-04-22 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963349', 'tblTempVendorCDR_20' ) end [2025-04-22 07:16:18] Production.INFO: ProcessCDR(1,14963349,1,1,2) [2025-04-22 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963349', 'tblTempUsageDetail_20' ) start [2025-04-22 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963349', 'tblTempUsageDetail_20' ) end [2025-04-22 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:16:21] Production.INFO: ==4553== Releasing lock... [2025-04-22 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:16:21] Production.INFO: 29 MB #Memory Used# [2025-04-22 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:17:05 [end_date_ymd] => 2025-04-22 07:17:05 [RateCDR] => 1 ) [2025-04-22 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:17:05' and `end` < '2025-04-22 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:17:18] Production.INFO: count ==123 [2025-04-22 07:17:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:17:05 - End Time 2025-04-22 07:17:05 [2025-04-22 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963354', 'tblTempUsageDetail_20' ) start [2025-04-22 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963354', 'tblTempUsageDetail_20' ) end [2025-04-22 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963354', 'tblTempVendorCDR_20' ) start [2025-04-22 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963354', 'tblTempVendorCDR_20' ) end [2025-04-22 07:17:18] Production.INFO: ProcessCDR(1,14963354,1,1,2) [2025-04-22 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963354', 'tblTempUsageDetail_20' ) start [2025-04-22 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963354', 'tblTempUsageDetail_20' ) end [2025-04-22 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:17:23] Production.INFO: ==4674== Releasing lock... [2025-04-22 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:17:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:18:05 [end_date_ymd] => 2025-04-22 07:18:05 [RateCDR] => 1 ) [2025-04-22 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:18:05' and `end` < '2025-04-22 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:18:18] Production.INFO: count ==123 [2025-04-22 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:18:05 - End Time 2025-04-22 07:18:05 [2025-04-22 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963359', 'tblTempUsageDetail_20' ) start [2025-04-22 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963359', 'tblTempUsageDetail_20' ) end [2025-04-22 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963359', 'tblTempVendorCDR_20' ) start [2025-04-22 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963359', 'tblTempVendorCDR_20' ) end [2025-04-22 07:18:18] Production.INFO: ProcessCDR(1,14963359,1,1,2) [2025-04-22 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963359', 'tblTempUsageDetail_20' ) start [2025-04-22 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963359', 'tblTempUsageDetail_20' ) end [2025-04-22 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:18:21] Production.INFO: ==4749== Releasing lock... [2025-04-22 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:19:04 [end_date_ymd] => 2025-04-22 07:19:04 [RateCDR] => 1 ) [2025-04-22 07: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-04-22 04:19:04' and `end` < '2025-04-22 07: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-04-22 07:19:17] Production.INFO: count ==124 [2025-04-22 07:19:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:19:04 - End Time 2025-04-22 07:19:04 [2025-04-22 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963364', 'tblTempUsageDetail_20' ) start [2025-04-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963364', 'tblTempUsageDetail_20' ) end [2025-04-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963364', 'tblTempVendorCDR_20' ) start [2025-04-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963364', 'tblTempVendorCDR_20' ) end [2025-04-22 07:19:17] Production.INFO: ProcessCDR(1,14963364,1,1,2) [2025-04-22 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963364', 'tblTempUsageDetail_20' ) start [2025-04-22 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963364', 'tblTempUsageDetail_20' ) end [2025-04-22 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:19:22] Production.INFO: ==4822== Releasing lock... [2025-04-22 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:19:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:20:06 [end_date_ymd] => 2025-04-22 07:20:06 [RateCDR] => 1 ) [2025-04-22 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:20:06' and `end` < '2025-04-22 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:20:18] Production.INFO: count ==132 [2025-04-22 07:20:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:20:06 - End Time 2025-04-22 07:20:06 [2025-04-22 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963370', 'tblTempUsageDetail_20' ) start [2025-04-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963370', 'tblTempUsageDetail_20' ) end [2025-04-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963370', 'tblTempVendorCDR_20' ) start [2025-04-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963370', 'tblTempVendorCDR_20' ) end [2025-04-22 07:20:19] Production.INFO: ProcessCDR(1,14963370,1,1,2) [2025-04-22 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963370', 'tblTempUsageDetail_20' ) start [2025-04-22 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963370', 'tblTempUsageDetail_20' ) end [2025-04-22 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:20:22] Production.INFO: ==4905== Releasing lock... [2025-04-22 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:21:06 [end_date_ymd] => 2025-04-22 07:21:06 [RateCDR] => 1 ) [2025-04-22 07:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:21:06' and `end` < '2025-04-22 07:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:21:19] Production.INFO: count ==132 [2025-04-22 07:21:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:21:06 - End Time 2025-04-22 07:21:06 [2025-04-22 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963375', 'tblTempUsageDetail_20' ) start [2025-04-22 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963375', 'tblTempUsageDetail_20' ) end [2025-04-22 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963375', 'tblTempVendorCDR_20' ) start [2025-04-22 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963375', 'tblTempVendorCDR_20' ) end [2025-04-22 07:21:19] Production.INFO: ProcessCDR(1,14963375,1,1,2) [2025-04-22 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963375', 'tblTempUsageDetail_20' ) start [2025-04-22 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963375', 'tblTempUsageDetail_20' ) end [2025-04-22 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:21:22] Production.INFO: ==4984== Releasing lock... [2025-04-22 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:22:06 [end_date_ymd] => 2025-04-22 07:22:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:22:06' and `end` < '2025-04-22 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-04-22 07:22:19] Production.INFO: count ==133 [2025-04-22 07:22:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:22:06 - End Time 2025-04-22 07:22:06 [2025-04-22 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963380', 'tblTempUsageDetail_20' ) start [2025-04-22 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963380', 'tblTempUsageDetail_20' ) end [2025-04-22 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963380', 'tblTempVendorCDR_20' ) start [2025-04-22 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963380', 'tblTempVendorCDR_20' ) end [2025-04-22 07:22:19] Production.INFO: ProcessCDR(1,14963380,1,1,2) [2025-04-22 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963380', 'tblTempUsageDetail_20' ) start [2025-04-22 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963380', 'tblTempUsageDetail_20' ) end [2025-04-22 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:22:23] Production.INFO: ==5056== Releasing lock... [2025-04-22 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:22:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:23:05 [end_date_ymd] => 2025-04-22 07:23:05 [RateCDR] => 1 ) [2025-04-22 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:23:05' and `end` < '2025-04-22 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:23:18] Production.INFO: count ==133 [2025-04-22 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:23:05 - End Time 2025-04-22 07:23:05 [2025-04-22 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963385', 'tblTempUsageDetail_20' ) start [2025-04-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963385', 'tblTempUsageDetail_20' ) end [2025-04-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963385', 'tblTempVendorCDR_20' ) start [2025-04-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963385', 'tblTempVendorCDR_20' ) end [2025-04-22 07:23:18] Production.INFO: ProcessCDR(1,14963385,1,1,2) [2025-04-22 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963385', 'tblTempUsageDetail_20' ) start [2025-04-22 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963385', 'tblTempUsageDetail_20' ) end [2025-04-22 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:23:22] Production.INFO: ==5129== Releasing lock... [2025-04-22 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:24:06 [end_date_ymd] => 2025-04-22 07:24:06 [RateCDR] => 1 ) [2025-04-22 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:24:06' and `end` < '2025-04-22 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:24:18] Production.INFO: count ==133 [2025-04-22 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:24:06 - End Time 2025-04-22 07:24:06 [2025-04-22 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963390', 'tblTempUsageDetail_20' ) start [2025-04-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963390', 'tblTempUsageDetail_20' ) end [2025-04-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963390', 'tblTempVendorCDR_20' ) start [2025-04-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963390', 'tblTempVendorCDR_20' ) end [2025-04-22 07:24:18] Production.INFO: ProcessCDR(1,14963390,1,1,2) [2025-04-22 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963390', 'tblTempUsageDetail_20' ) start [2025-04-22 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963390', 'tblTempUsageDetail_20' ) end [2025-04-22 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:24:22] Production.INFO: ==5199== Releasing lock... [2025-04-22 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:25:05 [end_date_ymd] => 2025-04-22 07:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:25:05' and `end` < '2025-04-22 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-04-22 07:25:17] Production.INFO: count ==134 [2025-04-22 07:25:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:25:05 - End Time 2025-04-22 07:25:05 [2025-04-22 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963395', 'tblTempUsageDetail_20' ) start [2025-04-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963395', 'tblTempUsageDetail_20' ) end [2025-04-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963395', 'tblTempVendorCDR_20' ) start [2025-04-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963395', 'tblTempVendorCDR_20' ) end [2025-04-22 07:25:17] Production.INFO: ProcessCDR(1,14963395,1,1,2) [2025-04-22 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963395', 'tblTempUsageDetail_20' ) start [2025-04-22 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963395', 'tblTempUsageDetail_20' ) end [2025-04-22 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:25:22] Production.INFO: ==5279== Releasing lock... [2025-04-22 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:26:05 [end_date_ymd] => 2025-04-22 07:26:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:26:05' and `end` < '2025-04-22 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-04-22 07:26:18] Production.INFO: count ==140 [2025-04-22 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:26:05 - End Time 2025-04-22 07:26:05 [2025-04-22 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963400', 'tblTempUsageDetail_20' ) start [2025-04-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963400', 'tblTempUsageDetail_20' ) end [2025-04-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963400', 'tblTempVendorCDR_20' ) start [2025-04-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963400', 'tblTempVendorCDR_20' ) end [2025-04-22 07:26:18] Production.INFO: ProcessCDR(1,14963400,1,1,2) [2025-04-22 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963400', 'tblTempUsageDetail_20' ) start [2025-04-22 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963400', 'tblTempUsageDetail_20' ) end [2025-04-22 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:26:21] Production.INFO: ==5357== Releasing lock... [2025-04-22 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:27:06 [end_date_ymd] => 2025-04-22 07:27:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:27:06' and `end` < '2025-04-22 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-04-22 07:27:18] Production.INFO: count ==140 [2025-04-22 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:27:06 - End Time 2025-04-22 07:27:06 [2025-04-22 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963405', 'tblTempUsageDetail_20' ) start [2025-04-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963405', 'tblTempUsageDetail_20' ) end [2025-04-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963405', 'tblTempVendorCDR_20' ) start [2025-04-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963405', 'tblTempVendorCDR_20' ) end [2025-04-22 07:27:18] Production.INFO: ProcessCDR(1,14963405,1,1,2) [2025-04-22 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963405', 'tblTempUsageDetail_20' ) start [2025-04-22 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963405', 'tblTempUsageDetail_20' ) end [2025-04-22 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:27:22] Production.INFO: ==5434== Releasing lock... [2025-04-22 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:28:05 [end_date_ymd] => 2025-04-22 07:28:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:28:05' and `end` < '2025-04-22 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-04-22 07:28:18] Production.INFO: count ==143 [2025-04-22 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:28:05 - End Time 2025-04-22 07:28:05 [2025-04-22 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963410', 'tblTempUsageDetail_20' ) start [2025-04-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963410', 'tblTempUsageDetail_20' ) end [2025-04-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963410', 'tblTempVendorCDR_20' ) start [2025-04-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963410', 'tblTempVendorCDR_20' ) end [2025-04-22 07:28:18] Production.INFO: ProcessCDR(1,14963410,1,1,2) [2025-04-22 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963410', 'tblTempUsageDetail_20' ) start [2025-04-22 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963410', 'tblTempUsageDetail_20' ) end [2025-04-22 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:28:21] Production.INFO: ==5503== Releasing lock... [2025-04-22 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:29:05 [end_date_ymd] => 2025-04-22 07:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:29:05' and `end` < '2025-04-22 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-04-22 07:29:18] Production.INFO: count ==143 [2025-04-22 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:29:05 - End Time 2025-04-22 07:29:05 [2025-04-22 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963415', 'tblTempUsageDetail_20' ) start [2025-04-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963415', 'tblTempUsageDetail_20' ) end [2025-04-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963415', 'tblTempVendorCDR_20' ) start [2025-04-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963415', 'tblTempVendorCDR_20' ) end [2025-04-22 07:29:18] Production.INFO: ProcessCDR(1,14963415,1,1,2) [2025-04-22 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963415', 'tblTempUsageDetail_20' ) start [2025-04-22 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963415', 'tblTempUsageDetail_20' ) end [2025-04-22 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:29:21] Production.INFO: ==5579== Releasing lock... [2025-04-22 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:30:05 [end_date_ymd] => 2025-04-22 07:30:05 [RateCDR] => 1 ) [2025-04-22 07: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-04-22 04:30:05' and `end` < '2025-04-22 07: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-04-22 07:30:18] Production.INFO: count ==151 [2025-04-22 07:30:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:30:05 - End Time 2025-04-22 07:30:05 [2025-04-22 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963420', 'tblTempUsageDetail_20' ) start [2025-04-22 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963420', 'tblTempUsageDetail_20' ) end [2025-04-22 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963420', 'tblTempVendorCDR_20' ) start [2025-04-22 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963420', 'tblTempVendorCDR_20' ) end [2025-04-22 07:30:18] Production.INFO: ProcessCDR(1,14963420,1,1,2) [2025-04-22 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963420', 'tblTempUsageDetail_20' ) start [2025-04-22 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963420', 'tblTempUsageDetail_20' ) end [2025-04-22 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:30:21] Production.INFO: ==5652== Releasing lock... [2025-04-22 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:31:05 [end_date_ymd] => 2025-04-22 07:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:31:05' and `end` < '2025-04-22 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-04-22 07:31:18] Production.INFO: count ==151 [2025-04-22 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:31:05 - End Time 2025-04-22 07:31:05 [2025-04-22 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963426', 'tblTempUsageDetail_20' ) start [2025-04-22 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963426', 'tblTempUsageDetail_20' ) end [2025-04-22 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963426', 'tblTempVendorCDR_20' ) start [2025-04-22 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963426', 'tblTempVendorCDR_20' ) end [2025-04-22 07:31:18] Production.INFO: ProcessCDR(1,14963426,1,1,2) [2025-04-22 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963426', 'tblTempUsageDetail_20' ) start [2025-04-22 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963426', 'tblTempUsageDetail_20' ) end [2025-04-22 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:31:21] Production.INFO: ==5729== Releasing lock... [2025-04-22 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:32:05 [end_date_ymd] => 2025-04-22 07:32:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:32:05' and `end` < '2025-04-22 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-04-22 07:32:18] Production.INFO: count ==156 [2025-04-22 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:32:05 - End Time 2025-04-22 07:32:05 [2025-04-22 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963431', 'tblTempUsageDetail_20' ) start [2025-04-22 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963431', 'tblTempUsageDetail_20' ) end [2025-04-22 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963431', 'tblTempVendorCDR_20' ) start [2025-04-22 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963431', 'tblTempVendorCDR_20' ) end [2025-04-22 07:32:18] Production.INFO: ProcessCDR(1,14963431,1,1,2) [2025-04-22 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963431', 'tblTempUsageDetail_20' ) start [2025-04-22 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963431', 'tblTempUsageDetail_20' ) end [2025-04-22 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:32:21] Production.INFO: ==5846== Releasing lock... [2025-04-22 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:33:05 [end_date_ymd] => 2025-04-22 07:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:33:05' and `end` < '2025-04-22 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-04-22 07:33:17] Production.INFO: count ==156 [2025-04-22 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:33:05 - End Time 2025-04-22 07:33:05 [2025-04-22 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963436', 'tblTempUsageDetail_20' ) start [2025-04-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963436', 'tblTempUsageDetail_20' ) end [2025-04-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963436', 'tblTempVendorCDR_20' ) start [2025-04-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963436', 'tblTempVendorCDR_20' ) end [2025-04-22 07:33:18] Production.INFO: ProcessCDR(1,14963436,1,1,2) [2025-04-22 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963436', 'tblTempUsageDetail_20' ) start [2025-04-22 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963436', 'tblTempUsageDetail_20' ) end [2025-04-22 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:33:21] Production.INFO: ==5921== Releasing lock... [2025-04-22 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:34:06 [end_date_ymd] => 2025-04-22 07:34:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:34:06' and `end` < '2025-04-22 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-04-22 07:34:19] Production.INFO: count ==157 [2025-04-22 07:34:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:34:06 - End Time 2025-04-22 07:34:06 [2025-04-22 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963441', 'tblTempUsageDetail_20' ) start [2025-04-22 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963441', 'tblTempUsageDetail_20' ) end [2025-04-22 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963441', 'tblTempVendorCDR_20' ) start [2025-04-22 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963441', 'tblTempVendorCDR_20' ) end [2025-04-22 07:34:19] Production.INFO: ProcessCDR(1,14963441,1,1,2) [2025-04-22 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963441', 'tblTempUsageDetail_20' ) start [2025-04-22 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963441', 'tblTempUsageDetail_20' ) end [2025-04-22 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:34:22] Production.INFO: ==5995== Releasing lock... [2025-04-22 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:35:05 [end_date_ymd] => 2025-04-22 07:35:05 [RateCDR] => 1 ) [2025-04-22 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:35:05' and `end` < '2025-04-22 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:35:17] Production.INFO: count ==157 [2025-04-22 07:35:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:35:05 - End Time 2025-04-22 07:35:05 [2025-04-22 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963446', 'tblTempUsageDetail_20' ) start [2025-04-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963446', 'tblTempUsageDetail_20' ) end [2025-04-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963446', 'tblTempVendorCDR_20' ) start [2025-04-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963446', 'tblTempVendorCDR_20' ) end [2025-04-22 07:35:17] Production.INFO: ProcessCDR(1,14963446,1,1,2) [2025-04-22 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963446', 'tblTempUsageDetail_20' ) start [2025-04-22 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963446', 'tblTempUsageDetail_20' ) end [2025-04-22 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:35:21] Production.INFO: ==6068== Releasing lock... [2025-04-22 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:36:06 [end_date_ymd] => 2025-04-22 07:36:06 [RateCDR] => 1 ) [2025-04-22 07:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:36:06' and `end` < '2025-04-22 07:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:36:18] Production.INFO: count ==159 [2025-04-22 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:36:06 - End Time 2025-04-22 07:36:06 [2025-04-22 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963451', 'tblTempUsageDetail_20' ) start [2025-04-22 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963451', 'tblTempUsageDetail_20' ) end [2025-04-22 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963451', 'tblTempVendorCDR_20' ) start [2025-04-22 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963451', 'tblTempVendorCDR_20' ) end [2025-04-22 07:36:18] Production.INFO: ProcessCDR(1,14963451,1,1,2) [2025-04-22 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963451', 'tblTempUsageDetail_20' ) start [2025-04-22 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963451', 'tblTempUsageDetail_20' ) end [2025-04-22 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:36:22] Production.INFO: ==6143== Releasing lock... [2025-04-22 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:37:05 [end_date_ymd] => 2025-04-22 07:37:05 [RateCDR] => 1 ) [2025-04-22 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:37:05' and `end` < '2025-04-22 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:37:17] Production.INFO: count ==161 [2025-04-22 07:37:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:37:05 - End Time 2025-04-22 07:37:05 [2025-04-22 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963456', 'tblTempUsageDetail_20' ) start [2025-04-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963456', 'tblTempUsageDetail_20' ) end [2025-04-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963456', 'tblTempVendorCDR_20' ) start [2025-04-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963456', 'tblTempVendorCDR_20' ) end [2025-04-22 07:37:17] Production.INFO: ProcessCDR(1,14963456,1,1,2) [2025-04-22 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963456', 'tblTempUsageDetail_20' ) start [2025-04-22 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963456', 'tblTempUsageDetail_20' ) end [2025-04-22 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:37:21] Production.INFO: ==6222== Releasing lock... [2025-04-22 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:38:05 [end_date_ymd] => 2025-04-22 07:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:38:05' and `end` < '2025-04-22 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-04-22 07:38:18] Production.INFO: count ==162 [2025-04-22 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:38:05 - End Time 2025-04-22 07:38:05 [2025-04-22 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963461', 'tblTempUsageDetail_20' ) start [2025-04-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963461', 'tblTempUsageDetail_20' ) end [2025-04-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963461', 'tblTempVendorCDR_20' ) start [2025-04-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963461', 'tblTempVendorCDR_20' ) end [2025-04-22 07:38:18] Production.INFO: ProcessCDR(1,14963461,1,1,2) [2025-04-22 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963461', 'tblTempUsageDetail_20' ) start [2025-04-22 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963461', 'tblTempUsageDetail_20' ) end [2025-04-22 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:38:22] Production.INFO: ==6296== Releasing lock... [2025-04-22 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:39:05 [end_date_ymd] => 2025-04-22 07:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:39:05' and `end` < '2025-04-22 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-04-22 07:39:18] Production.INFO: count ==163 [2025-04-22 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:39:05 - End Time 2025-04-22 07:39:05 [2025-04-22 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963466', 'tblTempUsageDetail_20' ) start [2025-04-22 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963466', 'tblTempUsageDetail_20' ) end [2025-04-22 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963466', 'tblTempVendorCDR_20' ) start [2025-04-22 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963466', 'tblTempVendorCDR_20' ) end [2025-04-22 07:39:18] Production.INFO: ProcessCDR(1,14963466,1,1,2) [2025-04-22 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963466', 'tblTempUsageDetail_20' ) start [2025-04-22 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963466', 'tblTempUsageDetail_20' ) end [2025-04-22 07:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:39:23] Production.INFO: ==6370== Releasing lock... [2025-04-22 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:39:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:40:06 [end_date_ymd] => 2025-04-22 07:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:40:06' and `end` < '2025-04-22 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-04-22 07:40:19] Production.INFO: count ==162 [2025-04-22 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-22 04:40:06 - End Time 2025-04-22 07:40:06 [2025-04-22 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963472', 'tblTempUsageDetail_20' ) start [2025-04-22 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963472', 'tblTempUsageDetail_20' ) end [2025-04-22 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963472', 'tblTempVendorCDR_20' ) start [2025-04-22 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963472', 'tblTempVendorCDR_20' ) end [2025-04-22 07:40:19] Production.INFO: ProcessCDR(1,14963472,1,1,2) [2025-04-22 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963472', 'tblTempUsageDetail_20' ) start [2025-04-22 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963472', 'tblTempUsageDetail_20' ) end [2025-04-22 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:40:22] Production.INFO: ==6448== Releasing lock... [2025-04-22 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-22 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:41:05 [end_date_ymd] => 2025-04-22 07:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:41:05' and `end` < '2025-04-22 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-04-22 07:41:17] Production.INFO: count ==166 [2025-04-22 07:41:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:41:05 - End Time 2025-04-22 07:41:05 [2025-04-22 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963477', 'tblTempUsageDetail_20' ) start [2025-04-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963477', 'tblTempUsageDetail_20' ) end [2025-04-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963477', 'tblTempVendorCDR_20' ) start [2025-04-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963477', 'tblTempVendorCDR_20' ) end [2025-04-22 07:41:17] Production.INFO: ProcessCDR(1,14963477,1,1,2) [2025-04-22 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963477', 'tblTempUsageDetail_20' ) start [2025-04-22 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963477', 'tblTempUsageDetail_20' ) end [2025-04-22 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:41:21] Production.INFO: ==6524== Releasing lock... [2025-04-22 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:42:05 [end_date_ymd] => 2025-04-22 07:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:42:05' and `end` < '2025-04-22 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-04-22 07:42:18] Production.INFO: count ==165 [2025-04-22 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:42:05 - End Time 2025-04-22 07:42:05 [2025-04-22 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963482', 'tblTempUsageDetail_20' ) start [2025-04-22 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963482', 'tblTempUsageDetail_20' ) end [2025-04-22 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963482', 'tblTempVendorCDR_20' ) start [2025-04-22 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963482', 'tblTempVendorCDR_20' ) end [2025-04-22 07:42:18] Production.INFO: ProcessCDR(1,14963482,1,1,2) [2025-04-22 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963482', 'tblTempUsageDetail_20' ) start [2025-04-22 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963482', 'tblTempUsageDetail_20' ) end [2025-04-22 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:42:21] Production.INFO: ==6597== Releasing lock... [2025-04-22 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:43:05 [end_date_ymd] => 2025-04-22 07:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:43:05' and `end` < '2025-04-22 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-04-22 07:43:18] Production.INFO: count ==167 [2025-04-22 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:43:05 - End Time 2025-04-22 07:43:05 [2025-04-22 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963487', 'tblTempUsageDetail_20' ) start [2025-04-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963487', 'tblTempUsageDetail_20' ) end [2025-04-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963487', 'tblTempVendorCDR_20' ) start [2025-04-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963487', 'tblTempVendorCDR_20' ) end [2025-04-22 07:43:18] Production.INFO: ProcessCDR(1,14963487,1,1,2) [2025-04-22 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963487', 'tblTempUsageDetail_20' ) start [2025-04-22 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963487', 'tblTempUsageDetail_20' ) end [2025-04-22 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:43:21] Production.INFO: ==6685== Releasing lock... [2025-04-22 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-22 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:44:05 [end_date_ymd] => 2025-04-22 07:44:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:44:05' and `end` < '2025-04-22 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-04-22 07:44:17] Production.INFO: count ==168 [2025-04-22 07:44:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:44:05 - End Time 2025-04-22 07:44:05 [2025-04-22 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963492', 'tblTempUsageDetail_20' ) start [2025-04-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963492', 'tblTempUsageDetail_20' ) end [2025-04-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963492', 'tblTempVendorCDR_20' ) start [2025-04-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963492', 'tblTempVendorCDR_20' ) end [2025-04-22 07:44:18] Production.INFO: ProcessCDR(1,14963492,1,1,2) [2025-04-22 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963492', 'tblTempUsageDetail_20' ) start [2025-04-22 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963492', 'tblTempUsageDetail_20' ) end [2025-04-22 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:44:21] Production.INFO: ==6757== Releasing lock... [2025-04-22 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-22 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:45:05 [end_date_ymd] => 2025-04-22 07:45:05 [RateCDR] => 1 ) [2025-04-22 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:45:05' and `end` < '2025-04-22 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:45:18] Production.INFO: count ==168 [2025-04-22 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:45:05 - End Time 2025-04-22 07:45:05 [2025-04-22 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963497', 'tblTempUsageDetail_20' ) start [2025-04-22 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963497', 'tblTempUsageDetail_20' ) end [2025-04-22 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963497', 'tblTempVendorCDR_20' ) start [2025-04-22 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963497', 'tblTempVendorCDR_20' ) end [2025-04-22 07:45:18] Production.INFO: ProcessCDR(1,14963497,1,1,2) [2025-04-22 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963497', 'tblTempUsageDetail_20' ) start [2025-04-22 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963497', 'tblTempUsageDetail_20' ) end [2025-04-22 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:45:21] Production.INFO: ==6832== Releasing lock... [2025-04-22 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-22 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:46:05 [end_date_ymd] => 2025-04-22 07:46:05 [RateCDR] => 1 ) [2025-04-22 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:46:05' and `end` < '2025-04-22 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:46:17] Production.INFO: count ==170 [2025-04-22 07:46:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:46:05 - End Time 2025-04-22 07:46:05 [2025-04-22 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963502', 'tblTempUsageDetail_20' ) start [2025-04-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963502', 'tblTempUsageDetail_20' ) end [2025-04-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963502', 'tblTempVendorCDR_20' ) start [2025-04-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963502', 'tblTempVendorCDR_20' ) end [2025-04-22 07:46:17] Production.INFO: ProcessCDR(1,14963502,1,1,2) [2025-04-22 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963502', 'tblTempUsageDetail_20' ) start [2025-04-22 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963502', 'tblTempUsageDetail_20' ) end [2025-04-22 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:46:21] Production.INFO: ==6904== Releasing lock... [2025-04-22 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:46:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-22 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:47:05 [end_date_ymd] => 2025-04-22 07:47:05 [RateCDR] => 1 ) [2025-04-22 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:47:05' and `end` < '2025-04-22 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:47:18] Production.INFO: count ==170 [2025-04-22 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:47:05 - End Time 2025-04-22 07:47:05 [2025-04-22 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963507', 'tblTempUsageDetail_20' ) start [2025-04-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963507', 'tblTempUsageDetail_20' ) end [2025-04-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963507', 'tblTempVendorCDR_20' ) start [2025-04-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963507', 'tblTempVendorCDR_20' ) end [2025-04-22 07:47:18] Production.INFO: ProcessCDR(1,14963507,1,1,2) [2025-04-22 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963507', 'tblTempUsageDetail_20' ) start [2025-04-22 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963507', 'tblTempUsageDetail_20' ) end [2025-04-22 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:47:21] Production.INFO: ==6981== Releasing lock... [2025-04-22 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-22 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:48:05 [end_date_ymd] => 2025-04-22 07:48:05 [RateCDR] => 1 ) [2025-04-22 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:48:05' and `end` < '2025-04-22 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:48:17] Production.INFO: count ==175 [2025-04-22 07:48:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:48:05 - End Time 2025-04-22 07:48:05 [2025-04-22 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963512', 'tblTempUsageDetail_20' ) start [2025-04-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963512', 'tblTempUsageDetail_20' ) end [2025-04-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963512', 'tblTempVendorCDR_20' ) start [2025-04-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963512', 'tblTempVendorCDR_20' ) end [2025-04-22 07:48:17] Production.INFO: ProcessCDR(1,14963512,1,1,2) [2025-04-22 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963512', 'tblTempUsageDetail_20' ) start [2025-04-22 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963512', 'tblTempUsageDetail_20' ) end [2025-04-22 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:48:21] Production.INFO: ==7093== Releasing lock... [2025-04-22 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-22 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:49:06 [end_date_ymd] => 2025-04-22 07:49:06 [RateCDR] => 1 ) [2025-04-22 07:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:49:06' and `end` < '2025-04-22 07:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:49:18] Production.INFO: count ==180 [2025-04-22 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:49:06 - End Time 2025-04-22 07:49:06 [2025-04-22 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963517', 'tblTempUsageDetail_20' ) start [2025-04-22 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963517', 'tblTempUsageDetail_20' ) end [2025-04-22 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963517', 'tblTempVendorCDR_20' ) start [2025-04-22 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963517', 'tblTempVendorCDR_20' ) end [2025-04-22 07:49:18] Production.INFO: ProcessCDR(1,14963517,1,1,2) [2025-04-22 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963517', 'tblTempUsageDetail_20' ) start [2025-04-22 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963517', 'tblTempUsageDetail_20' ) end [2025-04-22 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:49:22] Production.INFO: ==7169== Releasing lock... [2025-04-22 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:49:22] Production.INFO: 30 MB #Memory Used# [2025-04-22 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:50:06 [end_date_ymd] => 2025-04-22 07:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:50:06' and `end` < '2025-04-22 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-04-22 07:50:18] Production.INFO: count ==189 [2025-04-22 07:50:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:50:06 - End Time 2025-04-22 07:50:06 [2025-04-22 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963523', 'tblTempUsageDetail_20' ) start [2025-04-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963523', 'tblTempUsageDetail_20' ) end [2025-04-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963523', 'tblTempVendorCDR_20' ) start [2025-04-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963523', 'tblTempVendorCDR_20' ) end [2025-04-22 07:50:18] Production.INFO: ProcessCDR(1,14963523,1,1,2) [2025-04-22 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963523', 'tblTempUsageDetail_20' ) start [2025-04-22 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963523', 'tblTempUsageDetail_20' ) end [2025-04-22 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:50:22] Production.INFO: ==7242== Releasing lock... [2025-04-22 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:50:22] Production.INFO: 30 MB #Memory Used# [2025-04-22 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:51:05 [end_date_ymd] => 2025-04-22 07:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:51:05' and `end` < '2025-04-22 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-04-22 07:51:18] Production.INFO: count ==190 [2025-04-22 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:51:05 - End Time 2025-04-22 07:51:05 [2025-04-22 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963528', 'tblTempUsageDetail_20' ) start [2025-04-22 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963528', 'tblTempUsageDetail_20' ) end [2025-04-22 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963528', 'tblTempVendorCDR_20' ) start [2025-04-22 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963528', 'tblTempVendorCDR_20' ) end [2025-04-22 07:51:18] Production.INFO: ProcessCDR(1,14963528,1,1,2) [2025-04-22 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963528', 'tblTempUsageDetail_20' ) start [2025-04-22 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963528', 'tblTempUsageDetail_20' ) end [2025-04-22 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:51:21] Production.INFO: ==7325== Releasing lock... [2025-04-22 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:51:21] Production.INFO: 30 MB #Memory Used# [2025-04-22 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:52:06 [end_date_ymd] => 2025-04-22 07:52:06 [RateCDR] => 1 ) [2025-04-22 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:52:06' and `end` < '2025-04-22 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:52:18] Production.INFO: count ==199 [2025-04-22 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:52:06 - End Time 2025-04-22 07:52:06 [2025-04-22 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963533', 'tblTempUsageDetail_20' ) start [2025-04-22 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963533', 'tblTempUsageDetail_20' ) end [2025-04-22 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963533', 'tblTempVendorCDR_20' ) start [2025-04-22 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963533', 'tblTempVendorCDR_20' ) end [2025-04-22 07:52:18] Production.INFO: ProcessCDR(1,14963533,1,1,2) [2025-04-22 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963533', 'tblTempUsageDetail_20' ) start [2025-04-22 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963533', 'tblTempUsageDetail_20' ) end [2025-04-22 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:52:23] Production.INFO: ==7399== Releasing lock... [2025-04-22 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:52:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-22 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:53:05 [end_date_ymd] => 2025-04-22 07:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:53:05' and `end` < '2025-04-22 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-04-22 07:53:18] Production.INFO: count ==200 [2025-04-22 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:53:05 - End Time 2025-04-22 07:53:05 [2025-04-22 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963538', 'tblTempUsageDetail_20' ) start [2025-04-22 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963538', 'tblTempUsageDetail_20' ) end [2025-04-22 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963538', 'tblTempVendorCDR_20' ) start [2025-04-22 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963538', 'tblTempVendorCDR_20' ) end [2025-04-22 07:53:18] Production.INFO: ProcessCDR(1,14963538,1,1,2) [2025-04-22 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963538', 'tblTempUsageDetail_20' ) start [2025-04-22 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963538', 'tblTempUsageDetail_20' ) end [2025-04-22 07:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:53:23] Production.INFO: ==7471== Releasing lock... [2025-04-22 07:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:53:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-22 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:54:05 [end_date_ymd] => 2025-04-22 07:54:05 [RateCDR] => 1 ) [2025-04-22 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:54:05' and `end` < '2025-04-22 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:54:18] Production.INFO: count ==201 [2025-04-22 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:54:05 - End Time 2025-04-22 07:54:05 [2025-04-22 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963543', 'tblTempUsageDetail_20' ) start [2025-04-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963543', 'tblTempUsageDetail_20' ) end [2025-04-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963543', 'tblTempVendorCDR_20' ) start [2025-04-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963543', 'tblTempVendorCDR_20' ) end [2025-04-22 07:54:18] Production.INFO: ProcessCDR(1,14963543,1,1,2) [2025-04-22 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963543', 'tblTempUsageDetail_20' ) start [2025-04-22 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963543', 'tblTempUsageDetail_20' ) end [2025-04-22 07:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:54:23] Production.INFO: ==7543== Releasing lock... [2025-04-22 07:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:54:23] Production.INFO: 30 MB #Memory Used# [2025-04-22 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:55:05 [end_date_ymd] => 2025-04-22 07:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:55:05' and `end` < '2025-04-22 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-04-22 07:55:18] Production.INFO: count ==203 [2025-04-22 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:55:05 - End Time 2025-04-22 07:55:05 [2025-04-22 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963548', 'tblTempUsageDetail_20' ) start [2025-04-22 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963548', 'tblTempUsageDetail_20' ) end [2025-04-22 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963548', 'tblTempVendorCDR_20' ) start [2025-04-22 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963548', 'tblTempVendorCDR_20' ) end [2025-04-22 07:55:18] Production.INFO: ProcessCDR(1,14963548,1,1,2) [2025-04-22 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963548', 'tblTempUsageDetail_20' ) start [2025-04-22 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963548', 'tblTempUsageDetail_20' ) end [2025-04-22 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:55:23] Production.INFO: ==7616== Releasing lock... [2025-04-22 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:55:23] Production.INFO: 30 MB #Memory Used# [2025-04-22 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:56:05 [end_date_ymd] => 2025-04-22 07:56:05 [RateCDR] => 1 ) [2025-04-22 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:56:05' and `end` < '2025-04-22 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:56:18] Production.INFO: count ==203 [2025-04-22 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:56:05 - End Time 2025-04-22 07:56:05 [2025-04-22 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963553', 'tblTempUsageDetail_20' ) start [2025-04-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963553', 'tblTempUsageDetail_20' ) end [2025-04-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963553', 'tblTempVendorCDR_20' ) start [2025-04-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963553', 'tblTempVendorCDR_20' ) end [2025-04-22 07:56:18] Production.INFO: ProcessCDR(1,14963553,1,1,2) [2025-04-22 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963553', 'tblTempUsageDetail_20' ) start [2025-04-22 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963553', 'tblTempUsageDetail_20' ) end [2025-04-22 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:56:21] Production.INFO: ==7693== Releasing lock... [2025-04-22 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:56:21] Production.INFO: 30 MB #Memory Used# [2025-04-22 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:57:05 [end_date_ymd] => 2025-04-22 07:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 04:57:05' and `end` < '2025-04-22 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-04-22 07:57:17] Production.INFO: count ==206 [2025-04-22 07:57:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:57:05 - End Time 2025-04-22 07:57:05 [2025-04-22 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963558', 'tblTempUsageDetail_20' ) start [2025-04-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963558', 'tblTempUsageDetail_20' ) end [2025-04-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963558', 'tblTempVendorCDR_20' ) start [2025-04-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963558', 'tblTempVendorCDR_20' ) end [2025-04-22 07:57:17] Production.INFO: ProcessCDR(1,14963558,1,1,2) [2025-04-22 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963558', 'tblTempUsageDetail_20' ) start [2025-04-22 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963558', 'tblTempUsageDetail_20' ) end [2025-04-22 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:57:21] Production.INFO: ==7772== Releasing lock... [2025-04-22 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-22 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:58:05 [end_date_ymd] => 2025-04-22 07:58:05 [RateCDR] => 1 ) [2025-04-22 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:58:05' and `end` < '2025-04-22 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:58:18] Production.INFO: count ==215 [2025-04-22 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-22 04:58:05 - End Time 2025-04-22 07:58:05 [2025-04-22 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963563', 'tblTempUsageDetail_20' ) start [2025-04-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963563', 'tblTempUsageDetail_20' ) end [2025-04-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963563', 'tblTempVendorCDR_20' ) start [2025-04-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963563', 'tblTempVendorCDR_20' ) end [2025-04-22 07:58:18] Production.INFO: ProcessCDR(1,14963563,1,1,2) [2025-04-22 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963563', 'tblTempUsageDetail_20' ) start [2025-04-22 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963563', 'tblTempUsageDetail_20' ) end [2025-04-22 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:58:21] Production.INFO: ==7844== Releasing lock... [2025-04-22 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:58:21] Production.INFO: 30 MB #Memory Used# [2025-04-22 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 04:59:04 [end_date_ymd] => 2025-04-22 07:59:04 [RateCDR] => 1 ) [2025-04-22 07:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 04:59:04' and `end` < '2025-04-22 07:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 07:59:17] Production.INFO: count ==220 [2025-04-22 07:59:17] Production.ERROR: pbx CDR StartTime 2025-04-22 04:59:04 - End Time 2025-04-22 07:59:04 [2025-04-22 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963568', 'tblTempUsageDetail_20' ) start [2025-04-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963568', 'tblTempUsageDetail_20' ) end [2025-04-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963568', 'tblTempVendorCDR_20' ) start [2025-04-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963568', 'tblTempVendorCDR_20' ) end [2025-04-22 07:59:17] Production.INFO: ProcessCDR(1,14963568,1,1,2) [2025-04-22 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963568', 'tblTempUsageDetail_20' ) start [2025-04-22 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963568', 'tblTempUsageDetail_20' ) end [2025-04-22 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 07:59:20] Production.INFO: ==7920== Releasing lock... [2025-04-22 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 07:59:20] Production.INFO: 30.25 MB #Memory Used# [2025-04-22 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:00:06 [end_date_ymd] => 2025-04-22 08:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:00:06' and `end` < '2025-04-22 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-04-22 08:00:18] Production.INFO: count ==235 [2025-04-22 08:00:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:00:06 - End Time 2025-04-22 08:00:06 [2025-04-22 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963573', 'tblTempUsageDetail_20' ) start [2025-04-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963573', 'tblTempUsageDetail_20' ) end [2025-04-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963573', 'tblTempVendorCDR_20' ) start [2025-04-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963573', 'tblTempVendorCDR_20' ) end [2025-04-22 08:00:18] Production.INFO: ProcessCDR(1,14963573,1,1,2) [2025-04-22 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963573', 'tblTempUsageDetail_20' ) start [2025-04-22 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963573', 'tblTempUsageDetail_20' ) end [2025-04-22 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:00:22] Production.INFO: ==7997== Releasing lock... [2025-04-22 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-22 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:01:05 [end_date_ymd] => 2025-04-22 08:01:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:01:05' and `end` < '2025-04-22 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-04-22 08:01:18] Production.INFO: count ==241 [2025-04-22 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:01:05 - End Time 2025-04-22 08:01:05 [2025-04-22 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963579', 'tblTempUsageDetail_20' ) start [2025-04-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963579', 'tblTempUsageDetail_20' ) end [2025-04-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963579', 'tblTempVendorCDR_20' ) start [2025-04-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963579', 'tblTempVendorCDR_20' ) end [2025-04-22 08:01:18] Production.INFO: ProcessCDR(1,14963579,1,1,2) [2025-04-22 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963579', 'tblTempUsageDetail_20' ) start [2025-04-22 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963579', 'tblTempUsageDetail_20' ) end [2025-04-22 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:01:23] Production.INFO: ==8085== Releasing lock... [2025-04-22 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:01:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-22 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:02:05 [end_date_ymd] => 2025-04-22 08:02:05 [RateCDR] => 1 ) [2025-04-22 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:02:05' and `end` < '2025-04-22 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:02:18] Production.INFO: count ==246 [2025-04-22 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:02:05 - End Time 2025-04-22 08:02:05 [2025-04-22 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963584', 'tblTempUsageDetail_20' ) start [2025-04-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963584', 'tblTempUsageDetail_20' ) end [2025-04-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963584', 'tblTempVendorCDR_20' ) start [2025-04-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963584', 'tblTempVendorCDR_20' ) end [2025-04-22 08:02:18] Production.INFO: ProcessCDR(1,14963584,1,1,2) [2025-04-22 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963584', 'tblTempUsageDetail_20' ) start [2025-04-22 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963584', 'tblTempUsageDetail_20' ) end [2025-04-22 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:02:21] Production.INFO: ==8161== Releasing lock... [2025-04-22 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-22 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:03:05 [end_date_ymd] => 2025-04-22 08:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:03:05' and `end` < '2025-04-22 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-04-22 08:03:18] Production.INFO: count ==254 [2025-04-22 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:03:05 - End Time 2025-04-22 08:03:05 [2025-04-22 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963589', 'tblTempUsageDetail_20' ) start [2025-04-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963589', 'tblTempUsageDetail_20' ) end [2025-04-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963589', 'tblTempVendorCDR_20' ) start [2025-04-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963589', 'tblTempVendorCDR_20' ) end [2025-04-22 08:03:18] Production.INFO: ProcessCDR(1,14963589,1,1,2) [2025-04-22 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963589', 'tblTempUsageDetail_20' ) start [2025-04-22 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963589', 'tblTempUsageDetail_20' ) end [2025-04-22 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:03:21] Production.INFO: ==8277== Releasing lock... [2025-04-22 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-22 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:04:04 [end_date_ymd] => 2025-04-22 08:04:04 [RateCDR] => 1 ) [2025-04-22 08:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:04:04' and `end` < '2025-04-22 08:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:04:17] Production.INFO: count ==257 [2025-04-22 08:04:17] Production.ERROR: pbx CDR StartTime 2025-04-22 05:04:04 - End Time 2025-04-22 08:04:04 [2025-04-22 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963594', 'tblTempUsageDetail_20' ) start [2025-04-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963594', 'tblTempUsageDetail_20' ) end [2025-04-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963594', 'tblTempVendorCDR_20' ) start [2025-04-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963594', 'tblTempVendorCDR_20' ) end [2025-04-22 08:04:17] Production.INFO: ProcessCDR(1,14963594,1,1,2) [2025-04-22 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963594', 'tblTempUsageDetail_20' ) start [2025-04-22 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963594', 'tblTempUsageDetail_20' ) end [2025-04-22 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:04:22] Production.INFO: ==8350== Releasing lock... [2025-04-22 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-22 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:05:05 [end_date_ymd] => 2025-04-22 08:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:05:05' and `end` < '2025-04-22 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-04-22 08:05:18] Production.INFO: count ==262 [2025-04-22 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:05:05 - End Time 2025-04-22 08:05:05 [2025-04-22 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963599', 'tblTempUsageDetail_20' ) start [2025-04-22 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963599', 'tblTempUsageDetail_20' ) end [2025-04-22 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963599', 'tblTempVendorCDR_20' ) start [2025-04-22 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963599', 'tblTempVendorCDR_20' ) end [2025-04-22 08:05:18] Production.INFO: ProcessCDR(1,14963599,1,1,2) [2025-04-22 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963599', 'tblTempUsageDetail_20' ) start [2025-04-22 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963599', 'tblTempUsageDetail_20' ) end [2025-04-22 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:05:21] Production.INFO: ==8423== Releasing lock... [2025-04-22 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-22 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:06:05 [end_date_ymd] => 2025-04-22 08:06:05 [RateCDR] => 1 ) [2025-04-22 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:06:05' and `end` < '2025-04-22 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:06:17] Production.INFO: count ==272 [2025-04-22 08:06:17] Production.ERROR: pbx CDR StartTime 2025-04-22 05:06:05 - End Time 2025-04-22 08:06:05 [2025-04-22 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963604', 'tblTempUsageDetail_20' ) start [2025-04-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963604', 'tblTempUsageDetail_20' ) end [2025-04-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963604', 'tblTempVendorCDR_20' ) start [2025-04-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963604', 'tblTempVendorCDR_20' ) end [2025-04-22 08:06:17] Production.INFO: ProcessCDR(1,14963604,1,1,2) [2025-04-22 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963604', 'tblTempUsageDetail_20' ) start [2025-04-22 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963604', 'tblTempUsageDetail_20' ) end [2025-04-22 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:06:21] Production.INFO: ==8496== Releasing lock... [2025-04-22 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-22 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:07:04 [end_date_ymd] => 2025-04-22 08:07:04 [RateCDR] => 1 ) [2025-04-22 08:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:07:04' and `end` < '2025-04-22 08:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:07:17] Production.INFO: count ==278 [2025-04-22 08:07:17] Production.ERROR: pbx CDR StartTime 2025-04-22 05:07:04 - End Time 2025-04-22 08:07:04 [2025-04-22 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963609', 'tblTempUsageDetail_20' ) start [2025-04-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963609', 'tblTempUsageDetail_20' ) end [2025-04-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963609', 'tblTempVendorCDR_20' ) start [2025-04-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963609', 'tblTempVendorCDR_20' ) end [2025-04-22 08:07:17] Production.INFO: ProcessCDR(1,14963609,1,1,2) [2025-04-22 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963609', 'tblTempUsageDetail_20' ) start [2025-04-22 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963609', 'tblTempUsageDetail_20' ) end [2025-04-22 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:07:20] Production.INFO: ==8569== Releasing lock... [2025-04-22 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:07:20] Production.INFO: 30 MB #Memory Used# [2025-04-22 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:08:05 [end_date_ymd] => 2025-04-22 08:08:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:08:05' and `end` < '2025-04-22 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-04-22 08:08:18] Production.INFO: count ==298 [2025-04-22 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:08:05 - End Time 2025-04-22 08:08:05 [2025-04-22 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963614', 'tblTempUsageDetail_20' ) start [2025-04-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963614', 'tblTempUsageDetail_20' ) end [2025-04-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963614', 'tblTempVendorCDR_20' ) start [2025-04-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963614', 'tblTempVendorCDR_20' ) end [2025-04-22 08:08:18] Production.INFO: ProcessCDR(1,14963614,1,1,2) [2025-04-22 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963614', 'tblTempUsageDetail_20' ) start [2025-04-22 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963614', 'tblTempUsageDetail_20' ) end [2025-04-22 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:08:23] Production.INFO: ==8644== Releasing lock... [2025-04-22 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:08:23] Production.INFO: 31 MB #Memory Used# [2025-04-22 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:09:04 [end_date_ymd] => 2025-04-22 08:09:04 [RateCDR] => 1 ) [2025-04-22 08:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:09:04' and `end` < '2025-04-22 08:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:09:17] Production.INFO: count ==304 [2025-04-22 08:09:17] Production.ERROR: pbx CDR StartTime 2025-04-22 05:09:04 - End Time 2025-04-22 08:09:04 [2025-04-22 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963619', 'tblTempUsageDetail_20' ) start [2025-04-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963619', 'tblTempUsageDetail_20' ) end [2025-04-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963619', 'tblTempVendorCDR_20' ) start [2025-04-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963619', 'tblTempVendorCDR_20' ) end [2025-04-22 08:09:17] Production.INFO: ProcessCDR(1,14963619,1,1,2) [2025-04-22 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963619', 'tblTempUsageDetail_20' ) start [2025-04-22 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963619', 'tblTempUsageDetail_20' ) end [2025-04-22 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:09:22] Production.INFO: ==8713== Releasing lock... [2025-04-22 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:09:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-22 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:10:06 [end_date_ymd] => 2025-04-22 08:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:10:06' and `end` < '2025-04-22 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-04-22 08:10:19] Production.INFO: count ==322 [2025-04-22 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:10:06 - End Time 2025-04-22 08:10:06 [2025-04-22 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963625', 'tblTempUsageDetail_20' ) start [2025-04-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963625', 'tblTempUsageDetail_20' ) end [2025-04-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963625', 'tblTempVendorCDR_20' ) start [2025-04-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963625', 'tblTempVendorCDR_20' ) end [2025-04-22 08:10:19] Production.INFO: ProcessCDR(1,14963625,1,1,2) [2025-04-22 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963625', 'tblTempUsageDetail_20' ) start [2025-04-22 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963625', 'tblTempUsageDetail_20' ) end [2025-04-22 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:10:23] Production.INFO: ==8796== Releasing lock... [2025-04-22 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:10:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-22 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:11:04 [end_date_ymd] => 2025-04-22 08:11:04 [RateCDR] => 1 ) [2025-04-22 08:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:11:04' and `end` < '2025-04-22 08:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:11:17] Production.INFO: count ==375 [2025-04-22 08:11:17] Production.ERROR: pbx CDR StartTime 2025-04-22 05:11:04 - End Time 2025-04-22 08:11:04 [2025-04-22 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963630', 'tblTempUsageDetail_20' ) start [2025-04-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963630', 'tblTempUsageDetail_20' ) end [2025-04-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963630', 'tblTempVendorCDR_20' ) start [2025-04-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963630', 'tblTempVendorCDR_20' ) end [2025-04-22 08:11:17] Production.INFO: ProcessCDR(1,14963630,1,1,2) [2025-04-22 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963630', 'tblTempUsageDetail_20' ) start [2025-04-22 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963630', 'tblTempUsageDetail_20' ) end [2025-04-22 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:11:20] Production.INFO: ==8873== Releasing lock... [2025-04-22 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:11:20] Production.INFO: 31 MB #Memory Used# [2025-04-22 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:12:05 [end_date_ymd] => 2025-04-22 08:12:05 [RateCDR] => 1 ) [2025-04-22 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:12:05' and `end` < '2025-04-22 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:12:18] Production.INFO: count ==381 [2025-04-22 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:12:05 - End Time 2025-04-22 08:12:05 [2025-04-22 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963635', 'tblTempUsageDetail_20' ) start [2025-04-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963635', 'tblTempUsageDetail_20' ) end [2025-04-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963635', 'tblTempVendorCDR_20' ) start [2025-04-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963635', 'tblTempVendorCDR_20' ) end [2025-04-22 08:12:18] Production.INFO: ProcessCDR(1,14963635,1,1,2) [2025-04-22 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963635', 'tblTempUsageDetail_20' ) start [2025-04-22 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963635', 'tblTempUsageDetail_20' ) end [2025-04-22 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:12:23] Production.INFO: ==8944== Releasing lock... [2025-04-22 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:12:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:13:05 [end_date_ymd] => 2025-04-22 08:13:05 [RateCDR] => 1 ) [2025-04-22 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:13:05' and `end` < '2025-04-22 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:13:18] Production.INFO: count ==382 [2025-04-22 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:13:05 - End Time 2025-04-22 08:13:05 [2025-04-22 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963640', 'tblTempUsageDetail_20' ) start [2025-04-22 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963640', 'tblTempUsageDetail_20' ) end [2025-04-22 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963640', 'tblTempVendorCDR_20' ) start [2025-04-22 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963640', 'tblTempVendorCDR_20' ) end [2025-04-22 08:13:18] Production.INFO: ProcessCDR(1,14963640,1,1,2) [2025-04-22 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963640', 'tblTempUsageDetail_20' ) start [2025-04-22 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963640', 'tblTempUsageDetail_20' ) end [2025-04-22 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:13:21] Production.INFO: ==9019== Releasing lock... [2025-04-22 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:13:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:14:05 [end_date_ymd] => 2025-04-22 08:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:14:05' and `end` < '2025-04-22 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-04-22 08:14:18] Production.INFO: count ==394 [2025-04-22 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:14:05 - End Time 2025-04-22 08:14:05 [2025-04-22 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963645', 'tblTempUsageDetail_20' ) start [2025-04-22 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963645', 'tblTempUsageDetail_20' ) end [2025-04-22 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963645', 'tblTempVendorCDR_20' ) start [2025-04-22 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963645', 'tblTempVendorCDR_20' ) end [2025-04-22 08:14:18] Production.INFO: ProcessCDR(1,14963645,1,1,2) [2025-04-22 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963645', 'tblTempUsageDetail_20' ) start [2025-04-22 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963645', 'tblTempUsageDetail_20' ) end [2025-04-22 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:14:22] Production.INFO: ==9092== Releasing lock... [2025-04-22 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:14:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:15:05 [end_date_ymd] => 2025-04-22 08:15:05 [RateCDR] => 1 ) [2025-04-22 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:15:05' and `end` < '2025-04-22 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:15:18] Production.INFO: count ==398 [2025-04-22 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:15:05 - End Time 2025-04-22 08:15:05 [2025-04-22 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963650', 'tblTempUsageDetail_20' ) start [2025-04-22 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963650', 'tblTempUsageDetail_20' ) end [2025-04-22 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963650', 'tblTempVendorCDR_20' ) start [2025-04-22 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963650', 'tblTempVendorCDR_20' ) end [2025-04-22 08:15:18] Production.INFO: ProcessCDR(1,14963650,1,1,2) [2025-04-22 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963650', 'tblTempUsageDetail_20' ) start [2025-04-22 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963650', 'tblTempUsageDetail_20' ) end [2025-04-22 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:15:21] Production.INFO: ==9170== Releasing lock... [2025-04-22 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:16:05 [end_date_ymd] => 2025-04-22 08:16:05 [RateCDR] => 1 ) [2025-04-22 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:16:05' and `end` < '2025-04-22 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:16:18] Production.INFO: count ==405 [2025-04-22 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:16:05 - End Time 2025-04-22 08:16:05 [2025-04-22 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963655', 'tblTempUsageDetail_20' ) start [2025-04-22 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963655', 'tblTempUsageDetail_20' ) end [2025-04-22 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963655', 'tblTempVendorCDR_20' ) start [2025-04-22 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963655', 'tblTempVendorCDR_20' ) end [2025-04-22 08:16:18] Production.INFO: ProcessCDR(1,14963655,1,1,2) [2025-04-22 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963655', 'tblTempUsageDetail_20' ) start [2025-04-22 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963655', 'tblTempUsageDetail_20' ) end [2025-04-22 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:16:22] Production.INFO: ==9252== Releasing lock... [2025-04-22 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:16:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:17:05 [end_date_ymd] => 2025-04-22 08:17:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:17:05' and `end` < '2025-04-22 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-04-22 08:17:17] Production.INFO: count ==405 [2025-04-22 08:17:17] Production.ERROR: pbx CDR StartTime 2025-04-22 05:17:05 - End Time 2025-04-22 08:17:05 [2025-04-22 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963660', 'tblTempUsageDetail_20' ) start [2025-04-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963660', 'tblTempUsageDetail_20' ) end [2025-04-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963660', 'tblTempVendorCDR_20' ) start [2025-04-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963660', 'tblTempVendorCDR_20' ) end [2025-04-22 08:17:18] Production.INFO: ProcessCDR(1,14963660,1,1,2) [2025-04-22 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963660', 'tblTempUsageDetail_20' ) start [2025-04-22 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963660', 'tblTempUsageDetail_20' ) end [2025-04-22 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:17:21] Production.INFO: ==9329== Releasing lock... [2025-04-22 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:18:05 [end_date_ymd] => 2025-04-22 08:18:05 [RateCDR] => 1 ) [2025-04-22 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:18:05' and `end` < '2025-04-22 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:18:18] Production.INFO: count ==409 [2025-04-22 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:18:05 - End Time 2025-04-22 08:18:05 [2025-04-22 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963665', 'tblTempUsageDetail_20' ) start [2025-04-22 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963665', 'tblTempUsageDetail_20' ) end [2025-04-22 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963665', 'tblTempVendorCDR_20' ) start [2025-04-22 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963665', 'tblTempVendorCDR_20' ) end [2025-04-22 08:18:18] Production.INFO: ProcessCDR(1,14963665,1,1,2) [2025-04-22 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963665', 'tblTempUsageDetail_20' ) start [2025-04-22 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963665', 'tblTempUsageDetail_20' ) end [2025-04-22 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:18:22] Production.INFO: ==9403== Releasing lock... [2025-04-22 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:19:05 [end_date_ymd] => 2025-04-22 08:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:19:05' and `end` < '2025-04-22 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-04-22 08:19:18] Production.INFO: count ==415 [2025-04-22 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:19:05 - End Time 2025-04-22 08:19:05 [2025-04-22 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963670', 'tblTempUsageDetail_20' ) start [2025-04-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963670', 'tblTempUsageDetail_20' ) end [2025-04-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963670', 'tblTempVendorCDR_20' ) start [2025-04-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963670', 'tblTempVendorCDR_20' ) end [2025-04-22 08:19:18] Production.INFO: ProcessCDR(1,14963670,1,1,2) [2025-04-22 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963670', 'tblTempUsageDetail_20' ) start [2025-04-22 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963670', 'tblTempUsageDetail_20' ) end [2025-04-22 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:19:21] Production.INFO: ==9516== Releasing lock... [2025-04-22 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-22 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:20:06 [end_date_ymd] => 2025-04-22 08:20:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:20:06' and `end` < '2025-04-22 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-04-22 08:20:19] Production.INFO: count ==424 [2025-04-22 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:20:06 - End Time 2025-04-22 08:20:06 [2025-04-22 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963676', 'tblTempUsageDetail_20' ) start [2025-04-22 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963676', 'tblTempUsageDetail_20' ) end [2025-04-22 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963676', 'tblTempVendorCDR_20' ) start [2025-04-22 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963676', 'tblTempVendorCDR_20' ) end [2025-04-22 08:20:19] Production.INFO: ProcessCDR(1,14963676,1,1,2) [2025-04-22 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963676', 'tblTempUsageDetail_20' ) start [2025-04-22 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963676', 'tblTempUsageDetail_20' ) end [2025-04-22 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:20:24] Production.INFO: ==9592== Releasing lock... [2025-04-22 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:20:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:21:05 [end_date_ymd] => 2025-04-22 08:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:21:05' and `end` < '2025-04-22 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-04-22 08:21:17] Production.INFO: count ==457 [2025-04-22 08:21:17] Production.ERROR: pbx CDR StartTime 2025-04-22 05:21:05 - End Time 2025-04-22 08:21:05 [2025-04-22 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963681', 'tblTempUsageDetail_20' ) start [2025-04-22 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963681', 'tblTempUsageDetail_20' ) end [2025-04-22 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963681', 'tblTempVendorCDR_20' ) start [2025-04-22 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963681', 'tblTempVendorCDR_20' ) end [2025-04-22 08:21:17] Production.INFO: ProcessCDR(1,14963681,1,1,2) [2025-04-22 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963681', 'tblTempUsageDetail_20' ) start [2025-04-22 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963681', 'tblTempUsageDetail_20' ) end [2025-04-22 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:21:22] Production.INFO: ==9673== Releasing lock... [2025-04-22 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:21:22] Production.INFO: 32 MB #Memory Used# [2025-04-22 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:22:05 [end_date_ymd] => 2025-04-22 08:22:05 [RateCDR] => 1 ) [2025-04-22 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:22:05' and `end` < '2025-04-22 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:22:18] Production.INFO: count ==467 [2025-04-22 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:22:05 - End Time 2025-04-22 08:22:05 [2025-04-22 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963686', 'tblTempUsageDetail_20' ) start [2025-04-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963686', 'tblTempUsageDetail_20' ) end [2025-04-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963686', 'tblTempVendorCDR_20' ) start [2025-04-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963686', 'tblTempVendorCDR_20' ) end [2025-04-22 08:22:18] Production.INFO: ProcessCDR(1,14963686,1,1,2) [2025-04-22 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963686', 'tblTempUsageDetail_20' ) start [2025-04-22 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963686', 'tblTempUsageDetail_20' ) end [2025-04-22 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:22:21] Production.INFO: ==9744== Releasing lock... [2025-04-22 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:22:21] Production.INFO: 32 MB #Memory Used# [2025-04-22 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:23:05 [end_date_ymd] => 2025-04-22 08:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:23:05' and `end` < '2025-04-22 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-04-22 08:23:18] Production.INFO: count ==470 [2025-04-22 08:23:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:23:05 - End Time 2025-04-22 08:23:05 [2025-04-22 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963691', 'tblTempUsageDetail_20' ) start [2025-04-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963691', 'tblTempUsageDetail_20' ) end [2025-04-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963691', 'tblTempVendorCDR_20' ) start [2025-04-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963691', 'tblTempVendorCDR_20' ) end [2025-04-22 08:23:18] Production.INFO: ProcessCDR(1,14963691,1,1,2) [2025-04-22 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963691', 'tblTempUsageDetail_20' ) start [2025-04-22 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963691', 'tblTempUsageDetail_20' ) end [2025-04-22 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:23:23] Production.INFO: ==9821== Releasing lock... [2025-04-22 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:23:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-22 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:24:05 [end_date_ymd] => 2025-04-22 08:24:05 [RateCDR] => 1 ) [2025-04-22 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:24:05' and `end` < '2025-04-22 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:24:18] Production.INFO: count ==479 [2025-04-22 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:24:05 - End Time 2025-04-22 08:24:05 [2025-04-22 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963696', 'tblTempUsageDetail_20' ) start [2025-04-22 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963696', 'tblTempUsageDetail_20' ) end [2025-04-22 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963696', 'tblTempVendorCDR_20' ) start [2025-04-22 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963696', 'tblTempVendorCDR_20' ) end [2025-04-22 08:24:18] Production.INFO: ProcessCDR(1,14963696,1,1,2) [2025-04-22 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963696', 'tblTempUsageDetail_20' ) start [2025-04-22 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963696', 'tblTempUsageDetail_20' ) end [2025-04-22 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:24:23] Production.INFO: ==9897== Releasing lock... [2025-04-22 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:24:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:25:05 [end_date_ymd] => 2025-04-22 08:25:05 [RateCDR] => 1 ) [2025-04-22 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:25:05' and `end` < '2025-04-22 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:25:18] Production.INFO: count ==493 [2025-04-22 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:25:05 - End Time 2025-04-22 08:25:05 [2025-04-22 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963701', 'tblTempUsageDetail_20' ) start [2025-04-22 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963701', 'tblTempUsageDetail_20' ) end [2025-04-22 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963701', 'tblTempVendorCDR_20' ) start [2025-04-22 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963701', 'tblTempVendorCDR_20' ) end [2025-04-22 08:25:18] Production.INFO: ProcessCDR(1,14963701,1,1,2) [2025-04-22 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963701', 'tblTempUsageDetail_20' ) start [2025-04-22 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963701', 'tblTempUsageDetail_20' ) end [2025-04-22 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:25:23] Production.INFO: ==9970== Releasing lock... [2025-04-22 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:25:23] Production.INFO: 32 MB #Memory Used# [2025-04-22 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:26:05 [end_date_ymd] => 2025-04-22 08:26:05 [RateCDR] => 1 ) [2025-04-22 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:26:05' and `end` < '2025-04-22 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:26:17] Production.INFO: count ==500 [2025-04-22 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:26:05 - End Time 2025-04-22 08:26:05 [2025-04-22 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963706', 'tblTempUsageDetail_20' ) start [2025-04-22 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963706', 'tblTempUsageDetail_20' ) end [2025-04-22 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963706', 'tblTempVendorCDR_20' ) start [2025-04-22 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963706', 'tblTempVendorCDR_20' ) end [2025-04-22 08:26:18] Production.INFO: ProcessCDR(1,14963706,1,1,2) [2025-04-22 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963706', 'tblTempUsageDetail_20' ) start [2025-04-22 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963706', 'tblTempUsageDetail_20' ) end [2025-04-22 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:26:23] Production.INFO: ==10047== Releasing lock... [2025-04-22 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:26:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:27:05 [end_date_ymd] => 2025-04-22 08:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:27:05' and `end` < '2025-04-22 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-04-22 08:27:18] Production.INFO: count ==517 [2025-04-22 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:27:05 - End Time 2025-04-22 08:27:05 [2025-04-22 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963711', 'tblTempUsageDetail_20' ) start [2025-04-22 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963711', 'tblTempUsageDetail_20' ) end [2025-04-22 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963711', 'tblTempVendorCDR_20' ) start [2025-04-22 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963711', 'tblTempVendorCDR_20' ) end [2025-04-22 08:27:18] Production.INFO: ProcessCDR(1,14963711,1,1,2) [2025-04-22 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963711', 'tblTempUsageDetail_20' ) start [2025-04-22 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963711', 'tblTempUsageDetail_20' ) end [2025-04-22 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:27:23] Production.INFO: ==10120== Releasing lock... [2025-04-22 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:27:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:28:05 [end_date_ymd] => 2025-04-22 08:28:05 [RateCDR] => 1 ) [2025-04-22 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:28:05' and `end` < '2025-04-22 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:28:17] Production.INFO: count ==528 [2025-04-22 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:28:05 - End Time 2025-04-22 08:28:05 [2025-04-22 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963716', 'tblTempUsageDetail_20' ) start [2025-04-22 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963716', 'tblTempUsageDetail_20' ) end [2025-04-22 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963716', 'tblTempVendorCDR_20' ) start [2025-04-22 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963716', 'tblTempVendorCDR_20' ) end [2025-04-22 08:28:18] Production.INFO: ProcessCDR(1,14963716,1,1,2) [2025-04-22 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963716', 'tblTempUsageDetail_20' ) start [2025-04-22 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963716', 'tblTempUsageDetail_20' ) end [2025-04-22 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:28:22] Production.INFO: ==10194== Releasing lock... [2025-04-22 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:28:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-22 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:29:05 [end_date_ymd] => 2025-04-22 08:29:05 [RateCDR] => 1 ) [2025-04-22 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:29:05' and `end` < '2025-04-22 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:29:18] Production.INFO: count ==548 [2025-04-22 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:29:05 - End Time 2025-04-22 08:29:05 [2025-04-22 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963721', 'tblTempUsageDetail_20' ) start [2025-04-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963721', 'tblTempUsageDetail_20' ) end [2025-04-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963721', 'tblTempVendorCDR_20' ) start [2025-04-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963721', 'tblTempVendorCDR_20' ) end [2025-04-22 08:29:18] Production.INFO: ProcessCDR(1,14963721,1,1,2) [2025-04-22 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963721', 'tblTempUsageDetail_20' ) start [2025-04-22 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963721', 'tblTempUsageDetail_20' ) end [2025-04-22 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:29:23] Production.INFO: ==10268== Releasing lock... [2025-04-22 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:29:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-22 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:30:06 [end_date_ymd] => 2025-04-22 08:30:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:30:06' and `end` < '2025-04-22 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-04-22 08:30:19] Production.INFO: count ==558 [2025-04-22 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:30:06 - End Time 2025-04-22 08:30:06 [2025-04-22 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963726', 'tblTempUsageDetail_20' ) start [2025-04-22 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963726', 'tblTempUsageDetail_20' ) end [2025-04-22 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963726', 'tblTempVendorCDR_20' ) start [2025-04-22 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963726', 'tblTempVendorCDR_20' ) end [2025-04-22 08:30:19] Production.INFO: ProcessCDR(1,14963726,1,1,2) [2025-04-22 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963726', 'tblTempUsageDetail_20' ) start [2025-04-22 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963726', 'tblTempUsageDetail_20' ) end [2025-04-22 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:30:22] Production.INFO: ==10341== Releasing lock... [2025-04-22 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-22 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:31:05 [end_date_ymd] => 2025-04-22 08:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:31:05' and `end` < '2025-04-22 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-04-22 08:31:17] Production.INFO: count ==582 [2025-04-22 08:31:17] Production.ERROR: pbx CDR StartTime 2025-04-22 05:31:05 - End Time 2025-04-22 08:31:05 [2025-04-22 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963732', 'tblTempUsageDetail_20' ) start [2025-04-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963732', 'tblTempUsageDetail_20' ) end [2025-04-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963732', 'tblTempVendorCDR_20' ) start [2025-04-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963732', 'tblTempVendorCDR_20' ) end [2025-04-22 08:31:18] Production.INFO: ProcessCDR(1,14963732,1,1,2) [2025-04-22 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963732', 'tblTempUsageDetail_20' ) start [2025-04-22 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963732', 'tblTempUsageDetail_20' ) end [2025-04-22 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:31:22] Production.INFO: ==10415== Releasing lock... [2025-04-22 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:31:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:32:06 [end_date_ymd] => 2025-04-22 08:32:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:32:06' and `end` < '2025-04-22 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-04-22 08:32:18] Production.INFO: count ==591 [2025-04-22 08:32:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:32:06 - End Time 2025-04-22 08:32:06 [2025-04-22 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963737', 'tblTempUsageDetail_20' ) start [2025-04-22 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963737', 'tblTempUsageDetail_20' ) end [2025-04-22 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963737', 'tblTempVendorCDR_20' ) start [2025-04-22 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963737', 'tblTempVendorCDR_20' ) end [2025-04-22 08:32:19] Production.INFO: ProcessCDR(1,14963737,1,1,2) [2025-04-22 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963737', 'tblTempUsageDetail_20' ) start [2025-04-22 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963737', 'tblTempUsageDetail_20' ) end [2025-04-22 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:32:22] Production.INFO: ==10492== Releasing lock... [2025-04-22 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:32:22] Production.INFO: 33 MB #Memory Used# [2025-04-22 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:33:05 [end_date_ymd] => 2025-04-22 08:33:05 [RateCDR] => 1 ) [2025-04-22 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:33:05' and `end` < '2025-04-22 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:33:17] Production.INFO: count ==595 [2025-04-22 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:33:05 - End Time 2025-04-22 08:33:05 [2025-04-22 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963742', 'tblTempUsageDetail_20' ) start [2025-04-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963742', 'tblTempUsageDetail_20' ) end [2025-04-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963742', 'tblTempVendorCDR_20' ) start [2025-04-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963742', 'tblTempVendorCDR_20' ) end [2025-04-22 08:33:18] Production.INFO: ProcessCDR(1,14963742,1,1,2) [2025-04-22 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963742', 'tblTempUsageDetail_20' ) start [2025-04-22 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963742', 'tblTempUsageDetail_20' ) end [2025-04-22 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:33:23] Production.INFO: ==10569== Releasing lock... [2025-04-22 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:33:23] Production.INFO: 33 MB #Memory Used# [2025-04-22 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:34:05 [end_date_ymd] => 2025-04-22 08:34:05 [RateCDR] => 1 ) [2025-04-22 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:34:05' and `end` < '2025-04-22 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:34:18] Production.INFO: count ==600 [2025-04-22 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:34:05 - End Time 2025-04-22 08:34:05 [2025-04-22 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963747', 'tblTempUsageDetail_20' ) start [2025-04-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963747', 'tblTempUsageDetail_20' ) end [2025-04-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963747', 'tblTempVendorCDR_20' ) start [2025-04-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963747', 'tblTempVendorCDR_20' ) end [2025-04-22 08:34:18] Production.INFO: ProcessCDR(1,14963747,1,1,2) [2025-04-22 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963747', 'tblTempUsageDetail_20' ) start [2025-04-22 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963747', 'tblTempUsageDetail_20' ) end [2025-04-22 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:34:21] Production.INFO: ==10682== Releasing lock... [2025-04-22 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:35:05 [end_date_ymd] => 2025-04-22 08:35:05 [RateCDR] => 1 ) [2025-04-22 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:35:05' and `end` < '2025-04-22 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:35:17] Production.INFO: count ==601 [2025-04-22 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:35:05 - End Time 2025-04-22 08:35:05 [2025-04-22 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963752', 'tblTempUsageDetail_20' ) start [2025-04-22 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963752', 'tblTempUsageDetail_20' ) end [2025-04-22 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963752', 'tblTempVendorCDR_20' ) start [2025-04-22 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963752', 'tblTempVendorCDR_20' ) end [2025-04-22 08:35:18] Production.INFO: ProcessCDR(1,14963752,1,1,2) [2025-04-22 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963752', 'tblTempUsageDetail_20' ) start [2025-04-22 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963752', 'tblTempUsageDetail_20' ) end [2025-04-22 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:35:21] Production.INFO: ==10755== Releasing lock... [2025-04-22 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:35:21] Production.INFO: 33 MB #Memory Used# [2025-04-22 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:36:05 [end_date_ymd] => 2025-04-22 08:36:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:36:05' and `end` < '2025-04-22 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-04-22 08:36:18] Production.INFO: count ==603 [2025-04-22 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:36:05 - End Time 2025-04-22 08:36:05 [2025-04-22 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963757', 'tblTempUsageDetail_20' ) start [2025-04-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963757', 'tblTempUsageDetail_20' ) end [2025-04-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963757', 'tblTempVendorCDR_20' ) start [2025-04-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963757', 'tblTempVendorCDR_20' ) end [2025-04-22 08:36:18] Production.INFO: ProcessCDR(1,14963757,1,1,2) [2025-04-22 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963757', 'tblTempUsageDetail_20' ) start [2025-04-22 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963757', 'tblTempUsageDetail_20' ) end [2025-04-22 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:36:23] Production.INFO: ==10828== Releasing lock... [2025-04-22 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:36:23] Production.INFO: 33 MB #Memory Used# [2025-04-22 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:37:05 [end_date_ymd] => 2025-04-22 08:37:05 [RateCDR] => 1 ) [2025-04-22 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:37:05' and `end` < '2025-04-22 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:37:17] Production.INFO: count ==615 [2025-04-22 08:37:17] Production.ERROR: pbx CDR StartTime 2025-04-22 05:37:05 - End Time 2025-04-22 08:37:05 [2025-04-22 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963762', 'tblTempUsageDetail_20' ) start [2025-04-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963762', 'tblTempUsageDetail_20' ) end [2025-04-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963762', 'tblTempVendorCDR_20' ) start [2025-04-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963762', 'tblTempVendorCDR_20' ) end [2025-04-22 08:37:18] Production.INFO: ProcessCDR(1,14963762,1,1,2) [2025-04-22 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963762', 'tblTempUsageDetail_20' ) start [2025-04-22 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963762', 'tblTempUsageDetail_20' ) end [2025-04-22 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:37:23] Production.INFO: ==10905== Releasing lock... [2025-04-22 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:37:23] Production.INFO: 33 MB #Memory Used# [2025-04-22 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:38:05 [end_date_ymd] => 2025-04-22 08:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:38:05' and `end` < '2025-04-22 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-04-22 08:38:18] Production.INFO: count ==626 [2025-04-22 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:38:05 - End Time 2025-04-22 08:38:05 [2025-04-22 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963767', 'tblTempUsageDetail_20' ) start [2025-04-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963767', 'tblTempUsageDetail_20' ) end [2025-04-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963767', 'tblTempVendorCDR_20' ) start [2025-04-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963767', 'tblTempVendorCDR_20' ) end [2025-04-22 08:38:18] Production.INFO: ProcessCDR(1,14963767,1,1,2) [2025-04-22 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963767', 'tblTempUsageDetail_20' ) start [2025-04-22 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963767', 'tblTempUsageDetail_20' ) end [2025-04-22 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:38:22] Production.INFO: ==10979== Releasing lock... [2025-04-22 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-22 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:39:06 [end_date_ymd] => 2025-04-22 08:39:06 [RateCDR] => 1 ) [2025-04-22 08: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-04-22 05:39:06' and `end` < '2025-04-22 08: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-04-22 08:39:19] Production.INFO: count ==640 [2025-04-22 08:39:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:39:06 - End Time 2025-04-22 08:39:06 [2025-04-22 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963772', 'tblTempUsageDetail_20' ) start [2025-04-22 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963772', 'tblTempUsageDetail_20' ) end [2025-04-22 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963772', 'tblTempVendorCDR_20' ) start [2025-04-22 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963772', 'tblTempVendorCDR_20' ) end [2025-04-22 08:39:19] Production.INFO: ProcessCDR(1,14963772,1,1,2) [2025-04-22 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963772', 'tblTempUsageDetail_20' ) start [2025-04-22 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963772', 'tblTempUsageDetail_20' ) end [2025-04-22 08:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:39:24] Production.INFO: ==11054== Releasing lock... [2025-04-22 08:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:39:24] Production.INFO: 33 MB #Memory Used# [2025-04-22 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:40:06 [end_date_ymd] => 2025-04-22 08:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:40:06' and `end` < '2025-04-22 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-04-22 08:40:18] Production.INFO: count ==671 [2025-04-22 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:40:06 - End Time 2025-04-22 08:40:06 [2025-04-22 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963778', 'tblTempUsageDetail_20' ) start [2025-04-22 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963778', 'tblTempUsageDetail_20' ) end [2025-04-22 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963778', 'tblTempVendorCDR_20' ) start [2025-04-22 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963778', 'tblTempVendorCDR_20' ) end [2025-04-22 08:40:19] Production.INFO: ProcessCDR(1,14963778,1,1,2) [2025-04-22 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963778', 'tblTempUsageDetail_20' ) start [2025-04-22 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963778', 'tblTempUsageDetail_20' ) end [2025-04-22 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:40:24] Production.INFO: ==11128== Releasing lock... [2025-04-22 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:40:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:41:05 [end_date_ymd] => 2025-04-22 08:41:05 [RateCDR] => 1 ) [2025-04-22 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:41:05' and `end` < '2025-04-22 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:41:18] Production.INFO: count ==706 [2025-04-22 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:41:05 - End Time 2025-04-22 08:41:05 [2025-04-22 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963783', 'tblTempUsageDetail_20' ) start [2025-04-22 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963783', 'tblTempUsageDetail_20' ) end [2025-04-22 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963783', 'tblTempVendorCDR_20' ) start [2025-04-22 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963783', 'tblTempVendorCDR_20' ) end [2025-04-22 08:41:18] Production.INFO: ProcessCDR(1,14963783,1,1,2) [2025-04-22 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963783', 'tblTempUsageDetail_20' ) start [2025-04-22 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963783', 'tblTempUsageDetail_20' ) end [2025-04-22 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:41:23] Production.INFO: ==11204== Releasing lock... [2025-04-22 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:41:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-22 08:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:42:04 [end_date_ymd] => 2025-04-22 08:42:04 [RateCDR] => 1 ) [2025-04-22 08:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:42:04' and `end` < '2025-04-22 08:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:42:17] Production.INFO: count ==707 [2025-04-22 08:42:17] Production.ERROR: pbx CDR StartTime 2025-04-22 05:42:04 - End Time 2025-04-22 08:42:04 [2025-04-22 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963788', 'tblTempUsageDetail_20' ) start [2025-04-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963788', 'tblTempUsageDetail_20' ) end [2025-04-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963788', 'tblTempVendorCDR_20' ) start [2025-04-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963788', 'tblTempVendorCDR_20' ) end [2025-04-22 08:42:17] Production.INFO: ProcessCDR(1,14963788,1,1,2) [2025-04-22 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963788', 'tblTempUsageDetail_20' ) start [2025-04-22 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963788', 'tblTempUsageDetail_20' ) end [2025-04-22 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:42:21] Production.INFO: ==11278== Releasing lock... [2025-04-22 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:43:05 [end_date_ymd] => 2025-04-22 08:43:05 [RateCDR] => 1 ) [2025-04-22 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:43:05' and `end` < '2025-04-22 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:43:18] Production.INFO: count ==710 [2025-04-22 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:43:05 - End Time 2025-04-22 08:43:05 [2025-04-22 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963793', 'tblTempUsageDetail_20' ) start [2025-04-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963793', 'tblTempUsageDetail_20' ) end [2025-04-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963793', 'tblTempVendorCDR_20' ) start [2025-04-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963793', 'tblTempVendorCDR_20' ) end [2025-04-22 08:43:18] Production.INFO: ProcessCDR(1,14963793,1,1,2) [2025-04-22 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963793', 'tblTempUsageDetail_20' ) start [2025-04-22 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963793', 'tblTempUsageDetail_20' ) end [2025-04-22 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:43:21] Production.INFO: ==11353== Releasing lock... [2025-04-22 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:44:05 [end_date_ymd] => 2025-04-22 08:44:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:44:05' and `end` < '2025-04-22 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-04-22 08:44:18] Production.INFO: count ==712 [2025-04-22 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:44:05 - End Time 2025-04-22 08:44:05 [2025-04-22 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963798', 'tblTempUsageDetail_20' ) start [2025-04-22 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963798', 'tblTempUsageDetail_20' ) end [2025-04-22 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963798', 'tblTempVendorCDR_20' ) start [2025-04-22 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963798', 'tblTempVendorCDR_20' ) end [2025-04-22 08:44:18] Production.INFO: ProcessCDR(1,14963798,1,1,2) [2025-04-22 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963798', 'tblTempUsageDetail_20' ) start [2025-04-22 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963798', 'tblTempUsageDetail_20' ) end [2025-04-22 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:44:21] Production.INFO: ==11424== Releasing lock... [2025-04-22 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:45:05 [end_date_ymd] => 2025-04-22 08:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:45:05' and `end` < '2025-04-22 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-04-22 08:45:18] Production.INFO: count ==729 [2025-04-22 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:45:05 - End Time 2025-04-22 08:45:05 [2025-04-22 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963803', 'tblTempUsageDetail_20' ) start [2025-04-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963803', 'tblTempUsageDetail_20' ) end [2025-04-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963803', 'tblTempVendorCDR_20' ) start [2025-04-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963803', 'tblTempVendorCDR_20' ) end [2025-04-22 08:45:18] Production.INFO: ProcessCDR(1,14963803,1,1,2) [2025-04-22 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963803', 'tblTempUsageDetail_20' ) start [2025-04-22 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963803', 'tblTempUsageDetail_20' ) end [2025-04-22 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:45:21] Production.INFO: ==11508== Releasing lock... [2025-04-22 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:45:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-22 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:46:05 [end_date_ymd] => 2025-04-22 08:46:05 [RateCDR] => 1 ) [2025-04-22 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:46:05' and `end` < '2025-04-22 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:46:18] Production.INFO: count ==740 [2025-04-22 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:46:05 - End Time 2025-04-22 08:46:05 [2025-04-22 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963808', 'tblTempUsageDetail_20' ) start [2025-04-22 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963808', 'tblTempUsageDetail_20' ) end [2025-04-22 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963808', 'tblTempVendorCDR_20' ) start [2025-04-22 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963808', 'tblTempVendorCDR_20' ) end [2025-04-22 08:46:18] Production.INFO: ProcessCDR(1,14963808,1,1,2) [2025-04-22 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963808', 'tblTempUsageDetail_20' ) start [2025-04-22 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963808', 'tblTempUsageDetail_20' ) end [2025-04-22 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:46:23] Production.INFO: ==11582== Releasing lock... [2025-04-22 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:46:23] Production.INFO: 34 MB #Memory Used# [2025-04-22 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:47:05 [end_date_ymd] => 2025-04-22 08:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:47:05' and `end` < '2025-04-22 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-04-22 08:47:18] Production.INFO: count ==759 [2025-04-22 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:47:05 - End Time 2025-04-22 08:47:05 [2025-04-22 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963813', 'tblTempUsageDetail_20' ) start [2025-04-22 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963813', 'tblTempUsageDetail_20' ) end [2025-04-22 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963813', 'tblTempVendorCDR_20' ) start [2025-04-22 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963813', 'tblTempVendorCDR_20' ) end [2025-04-22 08:47:18] Production.INFO: ProcessCDR(1,14963813,1,1,2) [2025-04-22 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963813', 'tblTempUsageDetail_20' ) start [2025-04-22 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963813', 'tblTempUsageDetail_20' ) end [2025-04-22 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:47:23] Production.INFO: ==11652== Releasing lock... [2025-04-22 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:47:23] Production.INFO: 34 MB #Memory Used# [2025-04-22 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:48:05 [end_date_ymd] => 2025-04-22 08:48:05 [RateCDR] => 1 ) [2025-04-22 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:48:05' and `end` < '2025-04-22 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:48:18] Production.INFO: count ==763 [2025-04-22 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:48:05 - End Time 2025-04-22 08:48:05 [2025-04-22 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963818', 'tblTempUsageDetail_20' ) start [2025-04-22 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963818', 'tblTempUsageDetail_20' ) end [2025-04-22 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963818', 'tblTempVendorCDR_20' ) start [2025-04-22 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963818', 'tblTempVendorCDR_20' ) end [2025-04-22 08:48:19] Production.INFO: ProcessCDR(1,14963818,1,1,2) [2025-04-22 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963818', 'tblTempUsageDetail_20' ) start [2025-04-22 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963818', 'tblTempUsageDetail_20' ) end [2025-04-22 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:48:23] Production.INFO: ==11730== Releasing lock... [2025-04-22 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:48:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:49:05 [end_date_ymd] => 2025-04-22 08:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:49:05' and `end` < '2025-04-22 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-04-22 08:49:18] Production.INFO: count ==772 [2025-04-22 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:49:05 - End Time 2025-04-22 08:49:05 [2025-04-22 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963823', 'tblTempUsageDetail_20' ) start [2025-04-22 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963823', 'tblTempUsageDetail_20' ) end [2025-04-22 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963823', 'tblTempVendorCDR_20' ) start [2025-04-22 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963823', 'tblTempVendorCDR_20' ) end [2025-04-22 08:49:18] Production.INFO: ProcessCDR(1,14963823,1,1,2) [2025-04-22 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963823', 'tblTempUsageDetail_20' ) start [2025-04-22 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963823', 'tblTempUsageDetail_20' ) end [2025-04-22 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:49:23] Production.INFO: ==11843== Releasing lock... [2025-04-22 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:49:23] Production.INFO: 34 MB #Memory Used# [2025-04-22 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:50:06 [end_date_ymd] => 2025-04-22 08:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:50:06' and `end` < '2025-04-22 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-04-22 08:50:19] Production.INFO: count ==795 [2025-04-22 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:50:06 - End Time 2025-04-22 08:50:06 [2025-04-22 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963829', 'tblTempUsageDetail_20' ) start [2025-04-22 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963829', 'tblTempUsageDetail_20' ) end [2025-04-22 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963829', 'tblTempVendorCDR_20' ) start [2025-04-22 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963829', 'tblTempVendorCDR_20' ) end [2025-04-22 08:50:19] Production.INFO: ProcessCDR(1,14963829,1,1,2) [2025-04-22 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963829', 'tblTempUsageDetail_20' ) start [2025-04-22 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963829', 'tblTempUsageDetail_20' ) end [2025-04-22 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:50:24] Production.INFO: ==11922== Releasing lock... [2025-04-22 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:50:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-22 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:51:05 [end_date_ymd] => 2025-04-22 08:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:51:05' and `end` < '2025-04-22 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-04-22 08:51:18] Production.INFO: count ==836 [2025-04-22 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:51:05 - End Time 2025-04-22 08:51:05 [2025-04-22 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963834', 'tblTempUsageDetail_20' ) start [2025-04-22 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963834', 'tblTempUsageDetail_20' ) end [2025-04-22 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963834', 'tblTempVendorCDR_20' ) start [2025-04-22 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963834', 'tblTempVendorCDR_20' ) end [2025-04-22 08:51:18] Production.INFO: ProcessCDR(1,14963834,1,1,2) [2025-04-22 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963834', 'tblTempUsageDetail_20' ) start [2025-04-22 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963834', 'tblTempUsageDetail_20' ) end [2025-04-22 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:51:23] Production.INFO: ==12000== Releasing lock... [2025-04-22 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:51:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:52:05 [end_date_ymd] => 2025-04-22 08:52:05 [RateCDR] => 1 ) [2025-04-22 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:52:05' and `end` < '2025-04-22 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:52:18] Production.INFO: count ==838 [2025-04-22 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:52:05 - End Time 2025-04-22 08:52:05 [2025-04-22 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963839', 'tblTempUsageDetail_20' ) start [2025-04-22 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963839', 'tblTempUsageDetail_20' ) end [2025-04-22 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963839', 'tblTempVendorCDR_20' ) start [2025-04-22 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963839', 'tblTempVendorCDR_20' ) end [2025-04-22 08:52:18] Production.INFO: ProcessCDR(1,14963839,1,1,2) [2025-04-22 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963839', 'tblTempUsageDetail_20' ) start [2025-04-22 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963839', 'tblTempUsageDetail_20' ) end [2025-04-22 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:52:22] Production.INFO: ==12070== Releasing lock... [2025-04-22 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:53:05 [end_date_ymd] => 2025-04-22 08:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:53:05' and `end` < '2025-04-22 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-04-22 08:53:18] Production.INFO: count ==842 [2025-04-22 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:53:05 - End Time 2025-04-22 08:53:05 [2025-04-22 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963844', 'tblTempUsageDetail_20' ) start [2025-04-22 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963844', 'tblTempUsageDetail_20' ) end [2025-04-22 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963844', 'tblTempVendorCDR_20' ) start [2025-04-22 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963844', 'tblTempVendorCDR_20' ) end [2025-04-22 08:53:18] Production.INFO: ProcessCDR(1,14963844,1,1,2) [2025-04-22 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963844', 'tblTempUsageDetail_20' ) start [2025-04-22 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963844', 'tblTempUsageDetail_20' ) end [2025-04-22 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:53:23] Production.INFO: ==12141== Releasing lock... [2025-04-22 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:53:23] Production.INFO: 35 MB #Memory Used# [2025-04-22 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:54:05 [end_date_ymd] => 2025-04-22 08:54:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:54:05' and `end` < '2025-04-22 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-04-22 08:54:18] Production.INFO: count ==847 [2025-04-22 08:54:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:54:05 - End Time 2025-04-22 08:54:05 [2025-04-22 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963849', 'tblTempUsageDetail_20' ) start [2025-04-22 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963849', 'tblTempUsageDetail_20' ) end [2025-04-22 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963849', 'tblTempVendorCDR_20' ) start [2025-04-22 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963849', 'tblTempVendorCDR_20' ) end [2025-04-22 08:54:19] Production.INFO: ProcessCDR(1,14963849,1,1,2) [2025-04-22 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963849', 'tblTempUsageDetail_20' ) start [2025-04-22 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963849', 'tblTempUsageDetail_20' ) end [2025-04-22 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:54:23] Production.INFO: ==12216== Releasing lock... [2025-04-22 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:54:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-22 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:55:06 [end_date_ymd] => 2025-04-22 08:55:06 [RateCDR] => 1 ) [2025-04-22 08: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-04-22 05:55:06' and `end` < '2025-04-22 08: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-04-22 08:55:18] Production.INFO: count ==868 [2025-04-22 08:55:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:55:06 - End Time 2025-04-22 08:55:06 [2025-04-22 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963854', 'tblTempUsageDetail_20' ) start [2025-04-22 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963854', 'tblTempUsageDetail_20' ) end [2025-04-22 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963854', 'tblTempVendorCDR_20' ) start [2025-04-22 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963854', 'tblTempVendorCDR_20' ) end [2025-04-22 08:55:19] Production.INFO: ProcessCDR(1,14963854,1,1,2) [2025-04-22 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963854', 'tblTempUsageDetail_20' ) start [2025-04-22 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963854', 'tblTempUsageDetail_20' ) end [2025-04-22 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:55:24] Production.INFO: ==12298== Releasing lock... [2025-04-22 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:55:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-22 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:56:05 [end_date_ymd] => 2025-04-22 08:56:05 [RateCDR] => 1 ) [2025-04-22 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:56:05' and `end` < '2025-04-22 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:56:18] Production.INFO: count ==871 [2025-04-22 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:56:05 - End Time 2025-04-22 08:56:05 [2025-04-22 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963859', 'tblTempUsageDetail_20' ) start [2025-04-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963859', 'tblTempUsageDetail_20' ) end [2025-04-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963859', 'tblTempVendorCDR_20' ) start [2025-04-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963859', 'tblTempVendorCDR_20' ) end [2025-04-22 08:56:18] Production.INFO: ProcessCDR(1,14963859,1,1,2) [2025-04-22 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963859', 'tblTempUsageDetail_20' ) start [2025-04-22 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963859', 'tblTempUsageDetail_20' ) end [2025-04-22 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:56:23] Production.INFO: ==12374== Releasing lock... [2025-04-22 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:56:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-22 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:57:06 [end_date_ymd] => 2025-04-22 08:57:06 [RateCDR] => 1 ) [2025-04-22 08: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-04-22 05:57:06' and `end` < '2025-04-22 08: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-04-22 08:57:19] Production.INFO: count ==891 [2025-04-22 08:57:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:57:06 - End Time 2025-04-22 08:57:06 [2025-04-22 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963864', 'tblTempUsageDetail_20' ) start [2025-04-22 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963864', 'tblTempUsageDetail_20' ) end [2025-04-22 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963864', 'tblTempVendorCDR_20' ) start [2025-04-22 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963864', 'tblTempVendorCDR_20' ) end [2025-04-22 08:57:19] Production.INFO: ProcessCDR(1,14963864,1,1,2) [2025-04-22 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963864', 'tblTempUsageDetail_20' ) start [2025-04-22 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963864', 'tblTempUsageDetail_20' ) end [2025-04-22 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:57:24] Production.INFO: ==12445== Releasing lock... [2025-04-22 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:57:24] Production.INFO: 35 MB #Memory Used# [2025-04-22 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:58:05 [end_date_ymd] => 2025-04-22 08:58:05 [RateCDR] => 1 ) [2025-04-22 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 05:58:05' and `end` < '2025-04-22 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 08:58:18] Production.INFO: count ==905 [2025-04-22 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-22 05:58:05 - End Time 2025-04-22 08:58:05 [2025-04-22 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963869', 'tblTempUsageDetail_20' ) start [2025-04-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963869', 'tblTempUsageDetail_20' ) end [2025-04-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963869', 'tblTempVendorCDR_20' ) start [2025-04-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963869', 'tblTempVendorCDR_20' ) end [2025-04-22 08:58:18] Production.INFO: ProcessCDR(1,14963869,1,1,2) [2025-04-22 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963869', 'tblTempUsageDetail_20' ) start [2025-04-22 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963869', 'tblTempUsageDetail_20' ) end [2025-04-22 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:58:21] Production.INFO: ==12514== Releasing lock... [2025-04-22 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:58:21] Production.INFO: 35 MB #Memory Used# [2025-04-22 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 05:59:05 [end_date_ymd] => 2025-04-22 08:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 05:59:05' and `end` < '2025-04-22 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-04-22 08:59:18] Production.INFO: count ==909 [2025-04-22 08:59:19] Production.ERROR: pbx CDR StartTime 2025-04-22 05:59:05 - End Time 2025-04-22 08:59:05 [2025-04-22 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963874', 'tblTempUsageDetail_20' ) start [2025-04-22 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963874', 'tblTempUsageDetail_20' ) end [2025-04-22 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963874', 'tblTempVendorCDR_20' ) start [2025-04-22 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963874', 'tblTempVendorCDR_20' ) end [2025-04-22 08:59:19] Production.INFO: ProcessCDR(1,14963874,1,1,2) [2025-04-22 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963874', 'tblTempUsageDetail_20' ) start [2025-04-22 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963874', 'tblTempUsageDetail_20' ) end [2025-04-22 08:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 08:59:24] Production.INFO: ==12586== Releasing lock... [2025-04-22 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 08:59:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-22 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:00:05 [end_date_ymd] => 2025-04-22 09:00:05 [RateCDR] => 1 ) [2025-04-22 09: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-04-22 06:00:05' and `end` < '2025-04-22 09: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-04-22 09:00:18] Production.INFO: count ==925 [2025-04-22 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:00:05 - End Time 2025-04-22 09:00:05 [2025-04-22 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963879', 'tblTempUsageDetail_20' ) start [2025-04-22 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963879', 'tblTempUsageDetail_20' ) end [2025-04-22 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963879', 'tblTempVendorCDR_20' ) start [2025-04-22 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963879', 'tblTempVendorCDR_20' ) end [2025-04-22 09:00:19] Production.INFO: ProcessCDR(1,14963879,1,1,2) [2025-04-22 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963879', 'tblTempUsageDetail_20' ) start [2025-04-22 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963879', 'tblTempUsageDetail_20' ) end [2025-04-22 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:00:24] Production.INFO: ==12659== Releasing lock... [2025-04-22 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:00:24] Production.INFO: 35 MB #Memory Used# [2025-04-22 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:01:05 [end_date_ymd] => 2025-04-22 09:01:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:01:05' and `end` < '2025-04-22 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-04-22 09:01:18] Production.INFO: count ==992 [2025-04-22 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-22 06:01:05 - End Time 2025-04-22 09:01:05 [2025-04-22 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963885', 'tblTempUsageDetail_20' ) start [2025-04-22 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963885', 'tblTempUsageDetail_20' ) end [2025-04-22 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963885', 'tblTempVendorCDR_20' ) start [2025-04-22 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963885', 'tblTempVendorCDR_20' ) end [2025-04-22 09:01:19] Production.INFO: ProcessCDR(1,14963885,1,1,2) [2025-04-22 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963885', 'tblTempUsageDetail_20' ) start [2025-04-22 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963885', 'tblTempUsageDetail_20' ) end [2025-04-22 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:01:23] Production.INFO: ==12751== Releasing lock... [2025-04-22 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:01:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-22 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:02:05 [end_date_ymd] => 2025-04-22 09:02:05 [RateCDR] => 1 ) [2025-04-22 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:02:05' and `end` < '2025-04-22 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:02:18] Production.INFO: count ==998 [2025-04-22 09:02:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:02:05 - End Time 2025-04-22 09:02:05 [2025-04-22 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963890', 'tblTempUsageDetail_20' ) start [2025-04-22 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963890', 'tblTempUsageDetail_20' ) end [2025-04-22 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963890', 'tblTempVendorCDR_20' ) start [2025-04-22 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963890', 'tblTempVendorCDR_20' ) end [2025-04-22 09:02:19] Production.INFO: ProcessCDR(1,14963890,1,1,2) [2025-04-22 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963890', 'tblTempUsageDetail_20' ) start [2025-04-22 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963890', 'tblTempUsageDetail_20' ) end [2025-04-22 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:02:22] Production.INFO: ==12820== Releasing lock... [2025-04-22 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:02:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-22 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:03:05 [end_date_ymd] => 2025-04-22 09:03:05 [RateCDR] => 1 ) [2025-04-22 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:03:05' and `end` < '2025-04-22 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:03:18] Production.INFO: count ==1017 [2025-04-22 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-22 06:03:05 - End Time 2025-04-22 09:03:05 [2025-04-22 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963895', 'tblTempUsageDetail_20' ) start [2025-04-22 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963895', 'tblTempUsageDetail_20' ) end [2025-04-22 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963895', 'tblTempVendorCDR_20' ) start [2025-04-22 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963895', 'tblTempVendorCDR_20' ) end [2025-04-22 09:03:18] Production.INFO: ProcessCDR(1,14963895,1,1,2) [2025-04-22 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963895', 'tblTempUsageDetail_20' ) start [2025-04-22 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963895', 'tblTempUsageDetail_20' ) end [2025-04-22 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:03:23] Production.INFO: ==12891== Releasing lock... [2025-04-22 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:03:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-22 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:04:04 [end_date_ymd] => 2025-04-22 09:04:04 [RateCDR] => 1 ) [2025-04-22 09:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:04:04' and `end` < '2025-04-22 09:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:04:17] Production.INFO: count ==1025 [2025-04-22 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-22 06:04:04 - End Time 2025-04-22 09:04:04 [2025-04-22 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963900', 'tblTempUsageDetail_20' ) start [2025-04-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963900', 'tblTempUsageDetail_20' ) end [2025-04-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963900', 'tblTempVendorCDR_20' ) start [2025-04-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963900', 'tblTempVendorCDR_20' ) end [2025-04-22 09:04:18] Production.INFO: ProcessCDR(1,14963900,1,1,2) [2025-04-22 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963900', 'tblTempUsageDetail_20' ) start [2025-04-22 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963900', 'tblTempUsageDetail_20' ) end [2025-04-22 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:04:23] Production.INFO: ==12966== Releasing lock... [2025-04-22 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:04:23] Production.INFO: 36 MB #Memory Used# [2025-04-22 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:05:05 [end_date_ymd] => 2025-04-22 09:05:05 [RateCDR] => 1 ) [2025-04-22 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:05:05' and `end` < '2025-04-22 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:05:18] Production.INFO: count ==1034 [2025-04-22 09:05:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:05:05 - End Time 2025-04-22 09:05:05 [2025-04-22 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963905', 'tblTempUsageDetail_20' ) start [2025-04-22 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963905', 'tblTempUsageDetail_20' ) end [2025-04-22 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963905', 'tblTempVendorCDR_20' ) start [2025-04-22 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963905', 'tblTempVendorCDR_20' ) end [2025-04-22 09:05:19] Production.INFO: ProcessCDR(1,14963905,1,1,2) [2025-04-22 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963905', 'tblTempUsageDetail_20' ) start [2025-04-22 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963905', 'tblTempUsageDetail_20' ) end [2025-04-22 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:05:24] Production.INFO: ==13079== Releasing lock... [2025-04-22 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:05:24] Production.INFO: 36 MB #Memory Used# [2025-04-22 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:06:06 [end_date_ymd] => 2025-04-22 09:06:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:06:06' and `end` < '2025-04-22 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-04-22 09:06:18] Production.INFO: count ==1063 [2025-04-22 09:06:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:06:06 - End Time 2025-04-22 09:06:06 [2025-04-22 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963910', 'tblTempUsageDetail_20' ) start [2025-04-22 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963910', 'tblTempUsageDetail_20' ) end [2025-04-22 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963910', 'tblTempVendorCDR_20' ) start [2025-04-22 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963910', 'tblTempVendorCDR_20' ) end [2025-04-22 09:06:19] Production.INFO: ProcessCDR(1,14963910,1,1,2) [2025-04-22 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963910', 'tblTempUsageDetail_20' ) start [2025-04-22 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963910', 'tblTempUsageDetail_20' ) end [2025-04-22 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:06:24] Production.INFO: ==13160== Releasing lock... [2025-04-22 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:06:24] Production.INFO: 36 MB #Memory Used# [2025-04-22 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:07:06 [end_date_ymd] => 2025-04-22 09:07:06 [RateCDR] => 1 ) [2025-04-22 09: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-04-22 06:07:06' and `end` < '2025-04-22 09: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-04-22 09:07:19] Production.INFO: count ==1072 [2025-04-22 09:07:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:07:06 - End Time 2025-04-22 09:07:06 [2025-04-22 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963915', 'tblTempUsageDetail_20' ) start [2025-04-22 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963915', 'tblTempUsageDetail_20' ) end [2025-04-22 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963915', 'tblTempVendorCDR_20' ) start [2025-04-22 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963915', 'tblTempVendorCDR_20' ) end [2025-04-22 09:07:19] Production.INFO: ProcessCDR(1,14963915,1,1,2) [2025-04-22 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963915', 'tblTempUsageDetail_20' ) start [2025-04-22 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963915', 'tblTempUsageDetail_20' ) end [2025-04-22 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:07:24] Production.INFO: ==13234== Releasing lock... [2025-04-22 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:07:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-22 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:08:06 [end_date_ymd] => 2025-04-22 09:08:06 [RateCDR] => 1 ) [2025-04-22 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:08:06' and `end` < '2025-04-22 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:08:19] Production.INFO: count ==1081 [2025-04-22 09:08:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:08:06 - End Time 2025-04-22 09:08:06 [2025-04-22 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963920', 'tblTempUsageDetail_20' ) start [2025-04-22 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963920', 'tblTempUsageDetail_20' ) end [2025-04-22 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963920', 'tblTempVendorCDR_20' ) start [2025-04-22 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963920', 'tblTempVendorCDR_20' ) end [2025-04-22 09:08:19] Production.INFO: ProcessCDR(1,14963920,1,1,2) [2025-04-22 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963920', 'tblTempUsageDetail_20' ) start [2025-04-22 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963920', 'tblTempUsageDetail_20' ) end [2025-04-22 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:08:24] Production.INFO: ==13305== Releasing lock... [2025-04-22 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:08:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-22 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:09:05 [end_date_ymd] => 2025-04-22 09:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:09:05' and `end` < '2025-04-22 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-04-22 09:09:18] Production.INFO: count ==1111 [2025-04-22 09:09:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:09:05 - End Time 2025-04-22 09:09:05 [2025-04-22 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963925', 'tblTempUsageDetail_20' ) start [2025-04-22 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963925', 'tblTempUsageDetail_20' ) end [2025-04-22 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963925', 'tblTempVendorCDR_20' ) start [2025-04-22 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963925', 'tblTempVendorCDR_20' ) end [2025-04-22 09:09:19] Production.INFO: ProcessCDR(1,14963925,1,1,2) [2025-04-22 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963925', 'tblTempUsageDetail_20' ) start [2025-04-22 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963925', 'tblTempUsageDetail_20' ) end [2025-04-22 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:09:24] Production.INFO: ==13375== Releasing lock... [2025-04-22 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:09:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-22 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:10:07 [end_date_ymd] => 2025-04-22 09:10:07 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:10:07' and `end` < '2025-04-22 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-04-22 09:10:20] Production.INFO: count ==1131 [2025-04-22 09:10:20] Production.ERROR: pbx CDR StartTime 2025-04-22 06:10:07 - End Time 2025-04-22 09:10:07 [2025-04-22 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963931', 'tblTempUsageDetail_20' ) start [2025-04-22 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963931', 'tblTempUsageDetail_20' ) end [2025-04-22 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963931', 'tblTempVendorCDR_20' ) start [2025-04-22 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963931', 'tblTempVendorCDR_20' ) end [2025-04-22 09:10:20] Production.INFO: ProcessCDR(1,14963931,1,1,2) [2025-04-22 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963931', 'tblTempUsageDetail_20' ) start [2025-04-22 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963931', 'tblTempUsageDetail_20' ) end [2025-04-22 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:10:25] Production.INFO: ==13448== Releasing lock... [2025-04-22 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:10:25] Production.INFO: 36.75 MB #Memory Used# [2025-04-22 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:11:05 [end_date_ymd] => 2025-04-22 09:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:11:05' and `end` < '2025-04-22 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-04-22 09:11:18] Production.INFO: count ==1208 [2025-04-22 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 06:11:05 - End Time 2025-04-22 09:11:05 [2025-04-22 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963936', 'tblTempUsageDetail_20' ) start [2025-04-22 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963936', 'tblTempUsageDetail_20' ) end [2025-04-22 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963936', 'tblTempVendorCDR_20' ) start [2025-04-22 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963936', 'tblTempVendorCDR_20' ) end [2025-04-22 09:11:18] Production.INFO: ProcessCDR(1,14963936,1,1,2) [2025-04-22 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963936', 'tblTempUsageDetail_20' ) start [2025-04-22 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963936', 'tblTempUsageDetail_20' ) end [2025-04-22 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:11:23] Production.INFO: ==13520== Releasing lock... [2025-04-22 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:11:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:12:06 [end_date_ymd] => 2025-04-22 09:12:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:12:06' and `end` < '2025-04-22 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-04-22 09:12:19] Production.INFO: count ==1223 [2025-04-22 09:12:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:12:06 - End Time 2025-04-22 09:12:06 [2025-04-22 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963941', 'tblTempUsageDetail_20' ) start [2025-04-22 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963941', 'tblTempUsageDetail_20' ) end [2025-04-22 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963941', 'tblTempVendorCDR_20' ) start [2025-04-22 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963941', 'tblTempVendorCDR_20' ) end [2025-04-22 09:12:19] Production.INFO: ProcessCDR(1,14963941,1,1,2) [2025-04-22 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963941', 'tblTempUsageDetail_20' ) start [2025-04-22 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963941', 'tblTempUsageDetail_20' ) end [2025-04-22 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:12:22] Production.INFO: ==13595== Releasing lock... [2025-04-22 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:13:05 [end_date_ymd] => 2025-04-22 09:13:05 [RateCDR] => 1 ) [2025-04-22 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:13:05' and `end` < '2025-04-22 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:13:18] Production.INFO: count ==1240 [2025-04-22 09:13:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:13:05 - End Time 2025-04-22 09:13:05 [2025-04-22 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963946', 'tblTempUsageDetail_20' ) start [2025-04-22 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963946', 'tblTempUsageDetail_20' ) end [2025-04-22 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963946', 'tblTempVendorCDR_20' ) start [2025-04-22 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963946', 'tblTempVendorCDR_20' ) end [2025-04-22 09:13:19] Production.INFO: ProcessCDR(1,14963946,1,1,2) [2025-04-22 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963946', 'tblTempUsageDetail_20' ) start [2025-04-22 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963946', 'tblTempUsageDetail_20' ) end [2025-04-22 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:13:22] Production.INFO: ==13666== Releasing lock... [2025-04-22 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:13:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:14:05 [end_date_ymd] => 2025-04-22 09:14:05 [RateCDR] => 1 ) [2025-04-22 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:14:05' and `end` < '2025-04-22 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:14:18] Production.INFO: count ==1260 [2025-04-22 09:14:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:14:05 - End Time 2025-04-22 09:14:05 [2025-04-22 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963951', 'tblTempUsageDetail_20' ) start [2025-04-22 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963951', 'tblTempUsageDetail_20' ) end [2025-04-22 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963951', 'tblTempVendorCDR_20' ) start [2025-04-22 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963951', 'tblTempVendorCDR_20' ) end [2025-04-22 09:14:19] Production.INFO: ProcessCDR(1,14963951,1,1,2) [2025-04-22 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963951', 'tblTempUsageDetail_20' ) start [2025-04-22 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963951', 'tblTempUsageDetail_20' ) end [2025-04-22 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:14:24] Production.INFO: ==13737== Releasing lock... [2025-04-22 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:14:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:15:05 [end_date_ymd] => 2025-04-22 09:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:15:05' and `end` < '2025-04-22 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-04-22 09:15:18] Production.INFO: count ==1265 [2025-04-22 09:15:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:15:05 - End Time 2025-04-22 09:15:05 [2025-04-22 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963956', 'tblTempUsageDetail_20' ) start [2025-04-22 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963956', 'tblTempUsageDetail_20' ) end [2025-04-22 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963956', 'tblTempVendorCDR_20' ) start [2025-04-22 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963956', 'tblTempVendorCDR_20' ) end [2025-04-22 09:15:19] Production.INFO: ProcessCDR(1,14963956,1,1,2) [2025-04-22 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963956', 'tblTempUsageDetail_20' ) start [2025-04-22 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963956', 'tblTempUsageDetail_20' ) end [2025-04-22 09:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:15:22] Production.INFO: ==13809== Releasing lock... [2025-04-22 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:15:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:16:05 [end_date_ymd] => 2025-04-22 09:16:05 [RateCDR] => 1 ) [2025-04-22 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:16:05' and `end` < '2025-04-22 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:16:18] Production.INFO: count ==1282 [2025-04-22 09:16:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:16:05 - End Time 2025-04-22 09:16:05 [2025-04-22 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963961', 'tblTempUsageDetail_20' ) start [2025-04-22 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963961', 'tblTempUsageDetail_20' ) end [2025-04-22 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963961', 'tblTempVendorCDR_20' ) start [2025-04-22 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963961', 'tblTempVendorCDR_20' ) end [2025-04-22 09:16:19] Production.INFO: ProcessCDR(1,14963961,1,1,2) [2025-04-22 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963961', 'tblTempUsageDetail_20' ) start [2025-04-22 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963961', 'tblTempUsageDetail_20' ) end [2025-04-22 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:16:24] Production.INFO: ==13881== Releasing lock... [2025-04-22 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:16:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:17:05 [end_date_ymd] => 2025-04-22 09:17:05 [RateCDR] => 1 ) [2025-04-22 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:17:05' and `end` < '2025-04-22 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:17:18] Production.INFO: count ==1309 [2025-04-22 09:17:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:17:05 - End Time 2025-04-22 09:17:05 [2025-04-22 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963966', 'tblTempUsageDetail_20' ) start [2025-04-22 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963966', 'tblTempUsageDetail_20' ) end [2025-04-22 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963966', 'tblTempVendorCDR_20' ) start [2025-04-22 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963966', 'tblTempVendorCDR_20' ) end [2025-04-22 09:17:19] Production.INFO: ProcessCDR(1,14963966,1,1,2) [2025-04-22 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963966', 'tblTempUsageDetail_20' ) start [2025-04-22 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963966', 'tblTempUsageDetail_20' ) end [2025-04-22 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:17:24] Production.INFO: ==13953== Releasing lock... [2025-04-22 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:17:24] Production.INFO: 38 MB #Memory Used# [2025-04-22 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:18:05 [end_date_ymd] => 2025-04-22 09:18:05 [RateCDR] => 1 ) [2025-04-22 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:18:05' and `end` < '2025-04-22 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:18:18] Production.INFO: count ==1332 [2025-04-22 09:18:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:18:05 - End Time 2025-04-22 09:18:05 [2025-04-22 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963971', 'tblTempUsageDetail_20' ) start [2025-04-22 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963971', 'tblTempUsageDetail_20' ) end [2025-04-22 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963971', 'tblTempVendorCDR_20' ) start [2025-04-22 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963971', 'tblTempVendorCDR_20' ) end [2025-04-22 09:18:19] Production.INFO: ProcessCDR(1,14963971,1,1,2) [2025-04-22 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963971', 'tblTempUsageDetail_20' ) start [2025-04-22 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963971', 'tblTempUsageDetail_20' ) end [2025-04-22 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:18:24] Production.INFO: ==14043== Releasing lock... [2025-04-22 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:18:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-22 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:19:04 [end_date_ymd] => 2025-04-22 09:19:04 [RateCDR] => 1 ) [2025-04-22 09:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:19:04' and `end` < '2025-04-22 09:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:19:17] Production.INFO: count ==1348 [2025-04-22 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-22 06:19:04 - End Time 2025-04-22 09:19:04 [2025-04-22 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963976', 'tblTempUsageDetail_20' ) start [2025-04-22 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963976', 'tblTempUsageDetail_20' ) end [2025-04-22 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963976', 'tblTempVendorCDR_20' ) start [2025-04-22 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963976', 'tblTempVendorCDR_20' ) end [2025-04-22 09:19:18] Production.INFO: ProcessCDR(1,14963976,1,1,2) [2025-04-22 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963976', 'tblTempUsageDetail_20' ) start [2025-04-22 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963976', 'tblTempUsageDetail_20' ) end [2025-04-22 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:19:23] Production.INFO: ==14113== Releasing lock... [2025-04-22 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:19:23] Production.INFO: 38 MB #Memory Used# [2025-04-22 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:20:07 [end_date_ymd] => 2025-04-22 09:20:07 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:20:07' and `end` < '2025-04-22 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-04-22 09:20:20] Production.INFO: count ==1371 [2025-04-22 09:20:20] Production.ERROR: pbx CDR StartTime 2025-04-22 06:20:07 - End Time 2025-04-22 09:20:07 [2025-04-22 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963982', 'tblTempUsageDetail_20' ) start [2025-04-22 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963982', 'tblTempUsageDetail_20' ) end [2025-04-22 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963982', 'tblTempVendorCDR_20' ) start [2025-04-22 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963982', 'tblTempVendorCDR_20' ) end [2025-04-22 09:20:20] Production.INFO: ProcessCDR(1,14963982,1,1,2) [2025-04-22 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963982', 'tblTempUsageDetail_20' ) start [2025-04-22 09:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963982', 'tblTempUsageDetail_20' ) end [2025-04-22 09:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:20:26] Production.INFO: ==14228== Releasing lock... [2025-04-22 09:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:20:26] Production.INFO: 38.5 MB #Memory Used# [2025-04-22 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:21:05 [end_date_ymd] => 2025-04-22 09:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:21:05' and `end` < '2025-04-22 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-04-22 09:21:18] Production.INFO: count ==1445 [2025-04-22 09:21:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:21:05 - End Time 2025-04-22 09:21:05 [2025-04-22 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963987', 'tblTempUsageDetail_20' ) start [2025-04-22 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963987', 'tblTempUsageDetail_20' ) end [2025-04-22 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963987', 'tblTempVendorCDR_20' ) start [2025-04-22 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963987', 'tblTempVendorCDR_20' ) end [2025-04-22 09:21:19] Production.INFO: ProcessCDR(1,14963987,1,1,2) [2025-04-22 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963987', 'tblTempUsageDetail_20' ) start [2025-04-22 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963987', 'tblTempUsageDetail_20' ) end [2025-04-22 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:21:24] Production.INFO: ==14301== Releasing lock... [2025-04-22 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:21:24] Production.INFO: 39 MB #Memory Used# [2025-04-22 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:22:05 [end_date_ymd] => 2025-04-22 09:22:05 [RateCDR] => 1 ) [2025-04-22 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:22:05' and `end` < '2025-04-22 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:22:19] Production.INFO: count ==1479 [2025-04-22 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:22:05 - End Time 2025-04-22 09:22:05 [2025-04-22 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963992', 'tblTempUsageDetail_20' ) start [2025-04-22 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963992', 'tblTempUsageDetail_20' ) end [2025-04-22 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963992', 'tblTempVendorCDR_20' ) start [2025-04-22 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963992', 'tblTempVendorCDR_20' ) end [2025-04-22 09:22:19] Production.INFO: ProcessCDR(1,14963992,1,1,2) [2025-04-22 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963992', 'tblTempUsageDetail_20' ) start [2025-04-22 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963992', 'tblTempUsageDetail_20' ) end [2025-04-22 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:22:25] Production.INFO: ==14373== Releasing lock... [2025-04-22 09:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:22:25] Production.INFO: 39.25 MB #Memory Used# [2025-04-22 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:23:05 [end_date_ymd] => 2025-04-22 09:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:23:05' and `end` < '2025-04-22 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-04-22 09:23:18] Production.INFO: count ==1504 [2025-04-22 09:23:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:23:05 - End Time 2025-04-22 09:23:05 [2025-04-22 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963997', 'tblTempUsageDetail_20' ) start [2025-04-22 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14963997', 'tblTempUsageDetail_20' ) end [2025-04-22 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963997', 'tblTempVendorCDR_20' ) start [2025-04-22 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14963997', 'tblTempVendorCDR_20' ) end [2025-04-22 09:23:19] Production.INFO: ProcessCDR(1,14963997,1,1,2) [2025-04-22 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14963997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14963997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14963997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14963997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963997', 'tblTempUsageDetail_20' ) start [2025-04-22 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14963997', 'tblTempUsageDetail_20' ) end [2025-04-22 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:23:24] Production.INFO: ==14447== Releasing lock... [2025-04-22 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:23:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-22 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:24:05 [end_date_ymd] => 2025-04-22 09:24:05 [RateCDR] => 1 ) [2025-04-22 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:24:05' and `end` < '2025-04-22 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:24:18] Production.INFO: count ==1522 [2025-04-22 09:24:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:24:05 - End Time 2025-04-22 09:24:05 [2025-04-22 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964002', 'tblTempUsageDetail_20' ) start [2025-04-22 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964002', 'tblTempUsageDetail_20' ) end [2025-04-22 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964002', 'tblTempVendorCDR_20' ) start [2025-04-22 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964002', 'tblTempVendorCDR_20' ) end [2025-04-22 09:24:19] Production.INFO: ProcessCDR(1,14964002,1,1,2) [2025-04-22 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964002', 'tblTempUsageDetail_20' ) start [2025-04-22 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964002', 'tblTempUsageDetail_20' ) end [2025-04-22 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:24:22] Production.INFO: ==14521== Releasing lock... [2025-04-22 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:24:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:25:05 [end_date_ymd] => 2025-04-22 09:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:25:05' and `end` < '2025-04-22 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-04-22 09:25:19] Production.INFO: count ==1539 [2025-04-22 09:25:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:25:05 - End Time 2025-04-22 09:25:05 [2025-04-22 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964007', 'tblTempUsageDetail_20' ) start [2025-04-22 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964007', 'tblTempUsageDetail_20' ) end [2025-04-22 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964007', 'tblTempVendorCDR_20' ) start [2025-04-22 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964007', 'tblTempVendorCDR_20' ) end [2025-04-22 09:25:20] Production.INFO: ProcessCDR(1,14964007,1,1,2) [2025-04-22 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964007', 'tblTempUsageDetail_20' ) start [2025-04-22 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964007', 'tblTempUsageDetail_20' ) end [2025-04-22 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:25:23] Production.INFO: ==14594== Releasing lock... [2025-04-22 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:25:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:26:05 [end_date_ymd] => 2025-04-22 09:26:05 [RateCDR] => 1 ) [2025-04-22 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:26:05' and `end` < '2025-04-22 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:26:18] Production.INFO: count ==1554 [2025-04-22 09:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 06:26:05 - End Time 2025-04-22 09:26:05 [2025-04-22 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964012', 'tblTempUsageDetail_20' ) start [2025-04-22 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964012', 'tblTempUsageDetail_20' ) end [2025-04-22 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964012', 'tblTempVendorCDR_20' ) start [2025-04-22 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964012', 'tblTempVendorCDR_20' ) end [2025-04-22 09:26:19] Production.INFO: ProcessCDR(1,14964012,1,1,2) [2025-04-22 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964012', 'tblTempUsageDetail_20' ) start [2025-04-22 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964012', 'tblTempUsageDetail_20' ) end [2025-04-22 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:26:23] Production.INFO: ==14667== Releasing lock... [2025-04-22 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:26:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:27:05 [end_date_ymd] => 2025-04-22 09:27:05 [RateCDR] => 1 ) [2025-04-22 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:27:05' and `end` < '2025-04-22 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:27:18] Production.INFO: count ==1559 [2025-04-22 09:27:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:27:05 - End Time 2025-04-22 09:27:05 [2025-04-22 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964017', 'tblTempUsageDetail_20' ) start [2025-04-22 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964017', 'tblTempUsageDetail_20' ) end [2025-04-22 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964017', 'tblTempVendorCDR_20' ) start [2025-04-22 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964017', 'tblTempVendorCDR_20' ) end [2025-04-22 09:27:19] Production.INFO: ProcessCDR(1,14964017,1,1,2) [2025-04-22 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964017', 'tblTempUsageDetail_20' ) start [2025-04-22 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964017', 'tblTempUsageDetail_20' ) end [2025-04-22 09:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:27:22] Production.INFO: ==14738== Releasing lock... [2025-04-22 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:27:22] Production.INFO: 40 MB #Memory Used# [2025-04-22 09:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:28:04 [end_date_ymd] => 2025-04-22 09:28:04 [RateCDR] => 1 ) [2025-04-22 09: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-04-22 06:28:04' and `end` < '2025-04-22 09: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-04-22 09:28:18] Production.INFO: count ==1581 [2025-04-22 09:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 06:28:04 - End Time 2025-04-22 09:28:04 [2025-04-22 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964022', 'tblTempUsageDetail_20' ) start [2025-04-22 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964022', 'tblTempUsageDetail_20' ) end [2025-04-22 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964022', 'tblTempVendorCDR_20' ) start [2025-04-22 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964022', 'tblTempVendorCDR_20' ) end [2025-04-22 09:28:18] Production.INFO: ProcessCDR(1,14964022,1,1,2) [2025-04-22 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964022', 'tblTempUsageDetail_20' ) start [2025-04-22 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964022', 'tblTempUsageDetail_20' ) end [2025-04-22 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:28:23] Production.INFO: ==14808== Releasing lock... [2025-04-22 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:28:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:29:05 [end_date_ymd] => 2025-04-22 09:29:05 [RateCDR] => 1 ) [2025-04-22 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:29:05' and `end` < '2025-04-22 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:29:18] Production.INFO: count ==1604 [2025-04-22 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-22 06:29:05 - End Time 2025-04-22 09:29:05 [2025-04-22 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964027', 'tblTempUsageDetail_20' ) start [2025-04-22 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964027', 'tblTempUsageDetail_20' ) end [2025-04-22 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964027', 'tblTempVendorCDR_20' ) start [2025-04-22 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964027', 'tblTempVendorCDR_20' ) end [2025-04-22 09:29:19] Production.INFO: ProcessCDR(1,14964027,1,1,2) [2025-04-22 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964027', 'tblTempUsageDetail_20' ) start [2025-04-22 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964027', 'tblTempUsageDetail_20' ) end [2025-04-22 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:29:24] Production.INFO: ==14886== Releasing lock... [2025-04-22 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:29:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-22 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:30:06 [end_date_ymd] => 2025-04-22 09:30:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:30:06' and `end` < '2025-04-22 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-04-22 09:30:19] Production.INFO: count ==1629 [2025-04-22 09:30:20] Production.ERROR: pbx CDR StartTime 2025-04-22 06:30:06 - End Time 2025-04-22 09:30:06 [2025-04-22 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964033', 'tblTempUsageDetail_20' ) start [2025-04-22 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964033', 'tblTempUsageDetail_20' ) end [2025-04-22 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964033', 'tblTempVendorCDR_20' ) start [2025-04-22 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964033', 'tblTempVendorCDR_20' ) end [2025-04-22 09:30:20] Production.INFO: ProcessCDR(1,14964033,1,1,2) [2025-04-22 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964033', 'tblTempUsageDetail_20' ) start [2025-04-22 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964033', 'tblTempUsageDetail_20' ) end [2025-04-22 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:30:25] Production.INFO: ==14959== Releasing lock... [2025-04-22 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:30:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-22 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:31:05 [end_date_ymd] => 2025-04-22 09:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:31:05' and `end` < '2025-04-22 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-04-22 09:31:18] Production.INFO: count ==1714 [2025-04-22 09:31:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:31:05 - End Time 2025-04-22 09:31:05 [2025-04-22 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964038', 'tblTempUsageDetail_20' ) start [2025-04-22 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964038', 'tblTempUsageDetail_20' ) end [2025-04-22 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964038', 'tblTempVendorCDR_20' ) start [2025-04-22 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964038', 'tblTempVendorCDR_20' ) end [2025-04-22 09:31:19] Production.INFO: ProcessCDR(1,14964038,1,1,2) [2025-04-22 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964038', 'tblTempUsageDetail_20' ) start [2025-04-22 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964038', 'tblTempUsageDetail_20' ) end [2025-04-22 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:31:23] Production.INFO: ==15035== Releasing lock... [2025-04-22 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:31:23] Production.INFO: 41 MB #Memory Used# [2025-04-22 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:32:06 [end_date_ymd] => 2025-04-22 09:32:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:32:06' and `end` < '2025-04-22 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-04-22 09:32:19] Production.INFO: count ==1734 [2025-04-22 09:32:20] Production.ERROR: pbx CDR StartTime 2025-04-22 06:32:06 - End Time 2025-04-22 09:32:06 [2025-04-22 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964043', 'tblTempUsageDetail_20' ) start [2025-04-22 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964043', 'tblTempUsageDetail_20' ) end [2025-04-22 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964043', 'tblTempVendorCDR_20' ) start [2025-04-22 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964043', 'tblTempVendorCDR_20' ) end [2025-04-22 09:32:20] Production.INFO: ProcessCDR(1,14964043,1,1,2) [2025-04-22 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964043', 'tblTempUsageDetail_20' ) start [2025-04-22 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964043', 'tblTempUsageDetail_20' ) end [2025-04-22 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:32:25] Production.INFO: ==15112== Releasing lock... [2025-04-22 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:32:25] Production.INFO: 41 MB #Memory Used# [2025-04-22 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:33:05 [end_date_ymd] => 2025-04-22 09:33:05 [RateCDR] => 1 ) [2025-04-22 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:33:05' and `end` < '2025-04-22 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-04-22 09:33:18] Production.INFO: count ==1755 [2025-04-22 09:33:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:33:05 - End Time 2025-04-22 09:33:05 [2025-04-22 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964048', 'tblTempUsageDetail_20' ) start [2025-04-22 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964048', 'tblTempUsageDetail_20' ) end [2025-04-22 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964048', 'tblTempVendorCDR_20' ) start [2025-04-22 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964048', 'tblTempVendorCDR_20' ) end [2025-04-22 09:33:19] Production.INFO: ProcessCDR(1,14964048,1,1,2) [2025-04-22 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964048', 'tblTempUsageDetail_20' ) start [2025-04-22 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964048', 'tblTempUsageDetail_20' ) end [2025-04-22 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:33:24] Production.INFO: ==15184== Releasing lock... [2025-04-22 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:33:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-22 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:34:05 [end_date_ymd] => 2025-04-22 09:34:05 [RateCDR] => 1 ) [2025-04-22 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:34:05' and `end` < '2025-04-22 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:34:19] Production.INFO: count ==1764 [2025-04-22 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:34:05 - End Time 2025-04-22 09:34:05 [2025-04-22 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964053', 'tblTempUsageDetail_20' ) start [2025-04-22 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964053', 'tblTempUsageDetail_20' ) end [2025-04-22 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964053', 'tblTempVendorCDR_20' ) start [2025-04-22 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964053', 'tblTempVendorCDR_20' ) end [2025-04-22 09:34:19] Production.INFO: ProcessCDR(1,14964053,1,1,2) [2025-04-22 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964053', 'tblTempUsageDetail_20' ) start [2025-04-22 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964053', 'tblTempUsageDetail_20' ) end [2025-04-22 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:34:24] Production.INFO: ==15254== Releasing lock... [2025-04-22 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:34:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-22 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:35:05 [end_date_ymd] => 2025-04-22 09:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:35:05' and `end` < '2025-04-22 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-04-22 09:35:18] Production.INFO: count ==1819 [2025-04-22 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:35:05 - End Time 2025-04-22 09:35:05 [2025-04-22 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964058', 'tblTempUsageDetail_20' ) start [2025-04-22 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964058', 'tblTempUsageDetail_20' ) end [2025-04-22 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964058', 'tblTempVendorCDR_20' ) start [2025-04-22 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964058', 'tblTempVendorCDR_20' ) end [2025-04-22 09:35:19] Production.INFO: ProcessCDR(1,14964058,1,1,2) [2025-04-22 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964058', 'tblTempUsageDetail_20' ) start [2025-04-22 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964058', 'tblTempUsageDetail_20' ) end [2025-04-22 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:35:24] Production.INFO: ==15328== Releasing lock... [2025-04-22 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:35:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-22 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:36:06 [end_date_ymd] => 2025-04-22 09:36:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:36:06' and `end` < '2025-04-22 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-04-22 09:36:18] Production.INFO: count ==1829 [2025-04-22 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:36:06 - End Time 2025-04-22 09:36:06 [2025-04-22 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964063', 'tblTempUsageDetail_20' ) start [2025-04-22 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964063', 'tblTempUsageDetail_20' ) end [2025-04-22 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964063', 'tblTempVendorCDR_20' ) start [2025-04-22 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964063', 'tblTempVendorCDR_20' ) end [2025-04-22 09:36:19] Production.INFO: ProcessCDR(1,14964063,1,1,2) [2025-04-22 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964063', 'tblTempUsageDetail_20' ) start [2025-04-22 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964063', 'tblTempUsageDetail_20' ) end [2025-04-22 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:36:24] Production.INFO: ==15443== Releasing lock... [2025-04-22 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:36:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-22 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:37:05 [end_date_ymd] => 2025-04-22 09:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:37:05' and `end` < '2025-04-22 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-04-22 09:37:19] Production.INFO: count ==1834 [2025-04-22 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:37:05 - End Time 2025-04-22 09:37:05 [2025-04-22 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964068', 'tblTempUsageDetail_20' ) start [2025-04-22 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964068', 'tblTempUsageDetail_20' ) end [2025-04-22 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964068', 'tblTempVendorCDR_20' ) start [2025-04-22 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964068', 'tblTempVendorCDR_20' ) end [2025-04-22 09:37:19] Production.INFO: ProcessCDR(1,14964068,1,1,2) [2025-04-22 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964068', 'tblTempUsageDetail_20' ) start [2025-04-22 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964068', 'tblTempUsageDetail_20' ) end [2025-04-22 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:37:24] Production.INFO: ==15515== Releasing lock... [2025-04-22 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:37:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-22 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:38:05 [end_date_ymd] => 2025-04-22 09:38:05 [RateCDR] => 1 ) [2025-04-22 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:38:05' and `end` < '2025-04-22 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:38:19] Production.INFO: count ==1847 [2025-04-22 09:38:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:38:05 - End Time 2025-04-22 09:38:05 [2025-04-22 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964073', 'tblTempUsageDetail_20' ) start [2025-04-22 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964073', 'tblTempUsageDetail_20' ) end [2025-04-22 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964073', 'tblTempVendorCDR_20' ) start [2025-04-22 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964073', 'tblTempVendorCDR_20' ) end [2025-04-22 09:38:19] Production.INFO: ProcessCDR(1,14964073,1,1,2) [2025-04-22 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964073', 'tblTempUsageDetail_20' ) start [2025-04-22 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964073', 'tblTempUsageDetail_20' ) end [2025-04-22 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:38:25] Production.INFO: ==15587== Releasing lock... [2025-04-22 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:38:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-22 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:39:05 [end_date_ymd] => 2025-04-22 09:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:39:05' and `end` < '2025-04-22 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-04-22 09:39:18] Production.INFO: count ==1891 [2025-04-22 09:39:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:39:05 - End Time 2025-04-22 09:39:05 [2025-04-22 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964078', 'tblTempUsageDetail_20' ) start [2025-04-22 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964078', 'tblTempUsageDetail_20' ) end [2025-04-22 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964078', 'tblTempVendorCDR_20' ) start [2025-04-22 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964078', 'tblTempVendorCDR_20' ) end [2025-04-22 09:39:19] Production.INFO: ProcessCDR(1,14964078,1,1,2) [2025-04-22 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964078', 'tblTempUsageDetail_20' ) start [2025-04-22 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964078', 'tblTempUsageDetail_20' ) end [2025-04-22 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:39:24] Production.INFO: ==15656== Releasing lock... [2025-04-22 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:39:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-22 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:40:06 [end_date_ymd] => 2025-04-22 09:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:40:06' and `end` < '2025-04-22 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-04-22 09:40:19] Production.INFO: count ==1933 [2025-04-22 09:40:20] Production.ERROR: pbx CDR StartTime 2025-04-22 06:40:06 - End Time 2025-04-22 09:40:06 [2025-04-22 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964083', 'tblTempUsageDetail_20' ) start [2025-04-22 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964083', 'tblTempUsageDetail_20' ) end [2025-04-22 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964083', 'tblTempVendorCDR_20' ) start [2025-04-22 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964083', 'tblTempVendorCDR_20' ) end [2025-04-22 09:40:20] Production.INFO: ProcessCDR(1,14964083,1,1,2) [2025-04-22 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964083', 'tblTempUsageDetail_20' ) start [2025-04-22 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964083', 'tblTempUsageDetail_20' ) end [2025-04-22 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:40:25] Production.INFO: ==15733== Releasing lock... [2025-04-22 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:40:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-22 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:41:04 [end_date_ymd] => 2025-04-22 09:41:04 [RateCDR] => 1 ) [2025-04-22 09: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-04-22 06:41:04' and `end` < '2025-04-22 09: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-04-22 09:41:18] Production.INFO: count ==1993 [2025-04-22 09:41:18] Production.ERROR: pbx CDR StartTime 2025-04-22 06:41:04 - End Time 2025-04-22 09:41:04 [2025-04-22 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964089', 'tblTempUsageDetail_20' ) start [2025-04-22 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964089', 'tblTempUsageDetail_20' ) end [2025-04-22 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964089', 'tblTempVendorCDR_20' ) start [2025-04-22 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964089', 'tblTempVendorCDR_20' ) end [2025-04-22 09:41:18] Production.INFO: ProcessCDR(1,14964089,1,1,2) [2025-04-22 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964089', 'tblTempUsageDetail_20' ) start [2025-04-22 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964089', 'tblTempUsageDetail_20' ) end [2025-04-22 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:41:23] Production.INFO: ==15807== Releasing lock... [2025-04-22 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:41:23] Production.INFO: 43 MB #Memory Used# [2025-04-22 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:42:05 [end_date_ymd] => 2025-04-22 09:42:05 [RateCDR] => 1 ) [2025-04-22 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:42:05' and `end` < '2025-04-22 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:42:18] Production.INFO: count ==2006 [2025-04-22 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:42:05 - End Time 2025-04-22 09:42:05 [2025-04-22 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964094', 'tblTempUsageDetail_20' ) start [2025-04-22 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964094', 'tblTempUsageDetail_20' ) end [2025-04-22 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964094', 'tblTempVendorCDR_20' ) start [2025-04-22 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964094', 'tblTempVendorCDR_20' ) end [2025-04-22 09:42:19] Production.INFO: ProcessCDR(1,14964094,1,1,2) [2025-04-22 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964094', 'tblTempUsageDetail_20' ) start [2025-04-22 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964094', 'tblTempUsageDetail_20' ) end [2025-04-22 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:42:24] Production.INFO: ==15876== Releasing lock... [2025-04-22 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:42:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-22 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:43:04 [end_date_ymd] => 2025-04-22 09:43:04 [RateCDR] => 1 ) [2025-04-22 09:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:43:04' and `end` < '2025-04-22 09:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:43:17] Production.INFO: count ==2021 [2025-04-22 09:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 06:43:04 - End Time 2025-04-22 09:43:04 [2025-04-22 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964099', 'tblTempUsageDetail_20' ) start [2025-04-22 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964099', 'tblTempUsageDetail_20' ) end [2025-04-22 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964099', 'tblTempVendorCDR_20' ) start [2025-04-22 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964099', 'tblTempVendorCDR_20' ) end [2025-04-22 09:43:18] Production.INFO: ProcessCDR(1,14964099,1,1,2) [2025-04-22 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964099', 'tblTempUsageDetail_20' ) start [2025-04-22 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964099', 'tblTempUsageDetail_20' ) end [2025-04-22 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:43:23] Production.INFO: ==15950== Releasing lock... [2025-04-22 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:43:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-22 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:44:05 [end_date_ymd] => 2025-04-22 09:44:05 [RateCDR] => 1 ) [2025-04-22 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:44:05' and `end` < '2025-04-22 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:44:19] Production.INFO: count ==2038 [2025-04-22 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:44:05 - End Time 2025-04-22 09:44:05 [2025-04-22 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964104', 'tblTempUsageDetail_20' ) start [2025-04-22 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964104', 'tblTempUsageDetail_20' ) end [2025-04-22 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964104', 'tblTempVendorCDR_20' ) start [2025-04-22 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964104', 'tblTempVendorCDR_20' ) end [2025-04-22 09:44:20] Production.INFO: ProcessCDR(1,14964104,1,1,2) [2025-04-22 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964104', 'tblTempUsageDetail_20' ) start [2025-04-22 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964104', 'tblTempUsageDetail_20' ) end [2025-04-22 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:44:25] Production.INFO: ==16023== Releasing lock... [2025-04-22 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:44:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-22 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:45:06 [end_date_ymd] => 2025-04-22 09:45:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:45:06' and `end` < '2025-04-22 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-04-22 09:45:19] Production.INFO: count ==2057 [2025-04-22 09:45:20] Production.ERROR: pbx CDR StartTime 2025-04-22 06:45:06 - End Time 2025-04-22 09:45:06 [2025-04-22 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964109', 'tblTempUsageDetail_20' ) start [2025-04-22 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964109', 'tblTempUsageDetail_20' ) end [2025-04-22 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964109', 'tblTempVendorCDR_20' ) start [2025-04-22 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964109', 'tblTempVendorCDR_20' ) end [2025-04-22 09:45:20] Production.INFO: ProcessCDR(1,14964109,1,1,2) [2025-04-22 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964109', 'tblTempUsageDetail_20' ) start [2025-04-22 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964109', 'tblTempUsageDetail_20' ) end [2025-04-22 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:45:25] Production.INFO: ==16102== Releasing lock... [2025-04-22 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:45:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-22 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:46:05 [end_date_ymd] => 2025-04-22 09:46:05 [RateCDR] => 1 ) [2025-04-22 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:46:05' and `end` < '2025-04-22 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:46:18] Production.INFO: count ==2082 [2025-04-22 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:46:05 - End Time 2025-04-22 09:46:05 [2025-04-22 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964114', 'tblTempUsageDetail_20' ) start [2025-04-22 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964114', 'tblTempUsageDetail_20' ) end [2025-04-22 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964114', 'tblTempVendorCDR_20' ) start [2025-04-22 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964114', 'tblTempVendorCDR_20' ) end [2025-04-22 09:46:19] Production.INFO: ProcessCDR(1,14964114,1,1,2) [2025-04-22 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964114', 'tblTempUsageDetail_20' ) start [2025-04-22 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964114', 'tblTempUsageDetail_20' ) end [2025-04-22 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:46:24] Production.INFO: ==16178== Releasing lock... [2025-04-22 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:46:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-22 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:47:05 [end_date_ymd] => 2025-04-22 09:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:47:05' and `end` < '2025-04-22 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-04-22 09:47:18] Production.INFO: count ==2090 [2025-04-22 09:47:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:47:05 - End Time 2025-04-22 09:47:05 [2025-04-22 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964119', 'tblTempUsageDetail_20' ) start [2025-04-22 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964119', 'tblTempUsageDetail_20' ) end [2025-04-22 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964119', 'tblTempVendorCDR_20' ) start [2025-04-22 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964119', 'tblTempVendorCDR_20' ) end [2025-04-22 09:47:19] Production.INFO: ProcessCDR(1,14964119,1,1,2) [2025-04-22 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964119', 'tblTempUsageDetail_20' ) start [2025-04-22 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964119', 'tblTempUsageDetail_20' ) end [2025-04-22 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:47:24] Production.INFO: ==16251== Releasing lock... [2025-04-22 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:47:24] Production.INFO: 44 MB #Memory Used# [2025-04-22 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:48:05 [end_date_ymd] => 2025-04-22 09:48:05 [RateCDR] => 1 ) [2025-04-22 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:48:05' and `end` < '2025-04-22 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:48:18] Production.INFO: count ==2122 [2025-04-22 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:48:05 - End Time 2025-04-22 09:48:05 [2025-04-22 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964124', 'tblTempUsageDetail_20' ) start [2025-04-22 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964124', 'tblTempUsageDetail_20' ) end [2025-04-22 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964124', 'tblTempVendorCDR_20' ) start [2025-04-22 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964124', 'tblTempVendorCDR_20' ) end [2025-04-22 09:48:19] Production.INFO: ProcessCDR(1,14964124,1,1,2) [2025-04-22 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964124', 'tblTempUsageDetail_20' ) start [2025-04-22 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964124', 'tblTempUsageDetail_20' ) end [2025-04-22 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:48:24] Production.INFO: ==16321== Releasing lock... [2025-04-22 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:48:24] Production.INFO: 44 MB #Memory Used# [2025-04-22 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:49:05 [end_date_ymd] => 2025-04-22 09:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:49:05' and `end` < '2025-04-22 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-04-22 09:49:19] Production.INFO: count ==2139 [2025-04-22 09:49:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:49:05 - End Time 2025-04-22 09:49:05 [2025-04-22 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964129', 'tblTempUsageDetail_20' ) start [2025-04-22 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964129', 'tblTempUsageDetail_20' ) end [2025-04-22 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964129', 'tblTempVendorCDR_20' ) start [2025-04-22 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964129', 'tblTempVendorCDR_20' ) end [2025-04-22 09:49:20] Production.INFO: ProcessCDR(1,14964129,1,1,2) [2025-04-22 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964129', 'tblTempUsageDetail_20' ) start [2025-04-22 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964129', 'tblTempUsageDetail_20' ) end [2025-04-22 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:49:25] Production.INFO: ==16394== Releasing lock... [2025-04-22 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:49:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-22 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:50:06 [end_date_ymd] => 2025-04-22 09:50:06 [RateCDR] => 1 ) [2025-04-22 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:50:06' and `end` < '2025-04-22 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:50:19] Production.INFO: count ==2158 [2025-04-22 09:50:20] Production.ERROR: pbx CDR StartTime 2025-04-22 06:50:06 - End Time 2025-04-22 09:50:06 [2025-04-22 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964135', 'tblTempUsageDetail_20' ) start [2025-04-22 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964135', 'tblTempUsageDetail_20' ) end [2025-04-22 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964135', 'tblTempVendorCDR_20' ) start [2025-04-22 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964135', 'tblTempVendorCDR_20' ) end [2025-04-22 09:50:20] Production.INFO: ProcessCDR(1,14964135,1,1,2) [2025-04-22 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964135', 'tblTempUsageDetail_20' ) start [2025-04-22 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964135', 'tblTempUsageDetail_20' ) end [2025-04-22 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:50:25] Production.INFO: ==16468== Releasing lock... [2025-04-22 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:50:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-22 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:51:05 [end_date_ymd] => 2025-04-22 09:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:51:05' and `end` < '2025-04-22 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-04-22 09:51:18] Production.INFO: count ==2239 [2025-04-22 09:51:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:51:05 - End Time 2025-04-22 09:51:05 [2025-04-22 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964140', 'tblTempUsageDetail_20' ) start [2025-04-22 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964140', 'tblTempUsageDetail_20' ) end [2025-04-22 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964140', 'tblTempVendorCDR_20' ) start [2025-04-22 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964140', 'tblTempVendorCDR_20' ) end [2025-04-22 09:51:19] Production.INFO: ProcessCDR(1,14964140,1,1,2) [2025-04-22 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964140', 'tblTempUsageDetail_20' ) start [2025-04-22 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964140', 'tblTempUsageDetail_20' ) end [2025-04-22 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:51:24] Production.INFO: ==16586== Releasing lock... [2025-04-22 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:51:24] Production.INFO: 45 MB #Memory Used# [2025-04-22 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:52:05 [end_date_ymd] => 2025-04-22 09:52:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:52:05' and `end` < '2025-04-22 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-04-22 09:52:18] Production.INFO: count ==2269 [2025-04-22 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:52:05 - End Time 2025-04-22 09:52:05 [2025-04-22 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964145', 'tblTempUsageDetail_20' ) start [2025-04-22 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964145', 'tblTempUsageDetail_20' ) end [2025-04-22 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964145', 'tblTempVendorCDR_20' ) start [2025-04-22 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964145', 'tblTempVendorCDR_20' ) end [2025-04-22 09:52:19] Production.INFO: ProcessCDR(1,14964145,1,1,2) [2025-04-22 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964145', 'tblTempUsageDetail_20' ) start [2025-04-22 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964145', 'tblTempUsageDetail_20' ) end [2025-04-22 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:52:22] Production.INFO: ==16655== Releasing lock... [2025-04-22 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:52:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-22 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:53:05 [end_date_ymd] => 2025-04-22 09:53:05 [RateCDR] => 1 ) [2025-04-22 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:53:05' and `end` < '2025-04-22 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:53:19] Production.INFO: count ==2290 [2025-04-22 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:53:05 - End Time 2025-04-22 09:53:05 [2025-04-22 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964150', 'tblTempUsageDetail_20' ) start [2025-04-22 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964150', 'tblTempUsageDetail_20' ) end [2025-04-22 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964150', 'tblTempVendorCDR_20' ) start [2025-04-22 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964150', 'tblTempVendorCDR_20' ) end [2025-04-22 09:53:20] Production.INFO: ProcessCDR(1,14964150,1,1,2) [2025-04-22 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964150', 'tblTempUsageDetail_20' ) start [2025-04-22 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964150', 'tblTempUsageDetail_20' ) end [2025-04-22 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:53:25] Production.INFO: ==16729== Releasing lock... [2025-04-22 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:53:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-22 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:54:05 [end_date_ymd] => 2025-04-22 09:54:05 [RateCDR] => 1 ) [2025-04-22 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:54:05' and `end` < '2025-04-22 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:54:18] Production.INFO: count ==2296 [2025-04-22 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:54:05 - End Time 2025-04-22 09:54:05 [2025-04-22 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964155', 'tblTempUsageDetail_20' ) start [2025-04-22 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964155', 'tblTempUsageDetail_20' ) end [2025-04-22 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964155', 'tblTempVendorCDR_20' ) start [2025-04-22 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964155', 'tblTempVendorCDR_20' ) end [2025-04-22 09:54:19] Production.INFO: ProcessCDR(1,14964155,1,1,2) [2025-04-22 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964155', 'tblTempUsageDetail_20' ) start [2025-04-22 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964155', 'tblTempUsageDetail_20' ) end [2025-04-22 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:54:24] Production.INFO: ==16801== Releasing lock... [2025-04-22 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:54:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-22 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:55:05 [end_date_ymd] => 2025-04-22 09:55:05 [RateCDR] => 1 ) [2025-04-22 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:55:05' and `end` < '2025-04-22 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:55:18] Production.INFO: count ==2312 [2025-04-22 09:55:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:55:05 - End Time 2025-04-22 09:55:05 [2025-04-22 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964160', 'tblTempUsageDetail_20' ) start [2025-04-22 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964160', 'tblTempUsageDetail_20' ) end [2025-04-22 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964160', 'tblTempVendorCDR_20' ) start [2025-04-22 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964160', 'tblTempVendorCDR_20' ) end [2025-04-22 09:55:19] Production.INFO: ProcessCDR(1,14964160,1,1,2) [2025-04-22 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964160', 'tblTempUsageDetail_20' ) start [2025-04-22 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964160', 'tblTempUsageDetail_20' ) end [2025-04-22 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:55:24] Production.INFO: ==16875== Releasing lock... [2025-04-22 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:55:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-22 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:56:05 [end_date_ymd] => 2025-04-22 09:56:05 [RateCDR] => 1 ) [2025-04-22 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 06:56:05' and `end` < '2025-04-22 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 09:56:19] Production.INFO: count ==2345 [2025-04-22 09:56:20] Production.ERROR: pbx CDR StartTime 2025-04-22 06:56:05 - End Time 2025-04-22 09:56:05 [2025-04-22 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964165', 'tblTempUsageDetail_20' ) start [2025-04-22 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964165', 'tblTempUsageDetail_20' ) end [2025-04-22 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964165', 'tblTempVendorCDR_20' ) start [2025-04-22 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964165', 'tblTempVendorCDR_20' ) end [2025-04-22 09:56:20] Production.INFO: ProcessCDR(1,14964165,1,1,2) [2025-04-22 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964165', 'tblTempUsageDetail_20' ) start [2025-04-22 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964165', 'tblTempUsageDetail_20' ) end [2025-04-22 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:56:26] Production.INFO: ==16951== Releasing lock... [2025-04-22 09:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:56:26] Production.INFO: 45.75 MB #Memory Used# [2025-04-22 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:57:05 [end_date_ymd] => 2025-04-22 09:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:57:05' and `end` < '2025-04-22 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-04-22 09:57:18] Production.INFO: count ==2381 [2025-04-22 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-22 06:57:05 - End Time 2025-04-22 09:57:05 [2025-04-22 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964170', 'tblTempUsageDetail_20' ) start [2025-04-22 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964170', 'tblTempUsageDetail_20' ) end [2025-04-22 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964170', 'tblTempVendorCDR_20' ) start [2025-04-22 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964170', 'tblTempVendorCDR_20' ) end [2025-04-22 09:57:20] Production.INFO: ProcessCDR(1,14964170,1,1,2) [2025-04-22 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964170', 'tblTempUsageDetail_20' ) start [2025-04-22 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964170', 'tblTempUsageDetail_20' ) end [2025-04-22 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:57:25] Production.INFO: ==17027== Releasing lock... [2025-04-22 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:57:25] Production.INFO: 46 MB #Memory Used# [2025-04-22 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:58:05 [end_date_ymd] => 2025-04-22 09:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:58:05' and `end` < '2025-04-22 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-04-22 09:58:19] Production.INFO: count ==2405 [2025-04-22 09:58:20] Production.ERROR: pbx CDR StartTime 2025-04-22 06:58:05 - End Time 2025-04-22 09:58:05 [2025-04-22 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964175', 'tblTempUsageDetail_20' ) start [2025-04-22 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964175', 'tblTempUsageDetail_20' ) end [2025-04-22 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964175', 'tblTempVendorCDR_20' ) start [2025-04-22 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964175', 'tblTempVendorCDR_20' ) end [2025-04-22 09:58:20] Production.INFO: ProcessCDR(1,14964175,1,1,2) [2025-04-22 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964175', 'tblTempUsageDetail_20' ) start [2025-04-22 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964175', 'tblTempUsageDetail_20' ) end [2025-04-22 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:58:25] Production.INFO: ==17108== Releasing lock... [2025-04-22 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:58:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-22 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 06:59:05 [end_date_ymd] => 2025-04-22 09:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 06:59:05' and `end` < '2025-04-22 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-04-22 09:59:19] Production.INFO: count ==2432 [2025-04-22 09:59:20] Production.ERROR: pbx CDR StartTime 2025-04-22 06:59:05 - End Time 2025-04-22 09:59:05 [2025-04-22 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964180', 'tblTempUsageDetail_20' ) start [2025-04-22 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964180', 'tblTempUsageDetail_20' ) end [2025-04-22 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964180', 'tblTempVendorCDR_20' ) start [2025-04-22 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964180', 'tblTempVendorCDR_20' ) end [2025-04-22 09:59:20] Production.INFO: ProcessCDR(1,14964180,1,1,2) [2025-04-22 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964180', 'tblTempUsageDetail_20' ) start [2025-04-22 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964180', 'tblTempUsageDetail_20' ) end [2025-04-22 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 09:59:25] Production.INFO: ==17186== Releasing lock... [2025-04-22 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 09:59:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-22 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:00:06 [end_date_ymd] => 2025-04-22 10:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:00:06' and `end` < '2025-04-22 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-04-22 10:00:19] Production.INFO: count ==2456 [2025-04-22 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:00:06 - End Time 2025-04-22 10:00:06 [2025-04-22 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964185', 'tblTempUsageDetail_20' ) start [2025-04-22 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964185', 'tblTempUsageDetail_20' ) end [2025-04-22 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964185', 'tblTempVendorCDR_20' ) start [2025-04-22 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964185', 'tblTempVendorCDR_20' ) end [2025-04-22 10:00:20] Production.INFO: ProcessCDR(1,14964185,1,1,2) [2025-04-22 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964185', 'tblTempUsageDetail_20' ) start [2025-04-22 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964185', 'tblTempUsageDetail_20' ) end [2025-04-22 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:00:25] Production.INFO: ==17264== Releasing lock... [2025-04-22 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:00:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-22 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:01:05 [end_date_ymd] => 2025-04-22 10:01:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:01:05' and `end` < '2025-04-22 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-04-22 10:01:18] Production.INFO: count ==2527 [2025-04-22 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-22 07:01:05 - End Time 2025-04-22 10:01:05 [2025-04-22 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964191', 'tblTempUsageDetail_20' ) start [2025-04-22 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964191', 'tblTempUsageDetail_20' ) end [2025-04-22 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964191', 'tblTempVendorCDR_20' ) start [2025-04-22 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964191', 'tblTempVendorCDR_20' ) end [2025-04-22 10:01:19] Production.INFO: ProcessCDR(1,14964191,1,1,2) [2025-04-22 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964191', 'tblTempUsageDetail_20' ) start [2025-04-22 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964191', 'tblTempUsageDetail_20' ) end [2025-04-22 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:01:24] Production.INFO: ==17348== Releasing lock... [2025-04-22 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:01:24] Production.INFO: 47 MB #Memory Used# [2025-04-22 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:02:06 [end_date_ymd] => 2025-04-22 10:02:06 [RateCDR] => 1 ) [2025-04-22 10: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-04-22 07:02:06' and `end` < '2025-04-22 10: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-04-22 10:02:19] Production.INFO: count ==2557 [2025-04-22 10:02:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:02:06 - End Time 2025-04-22 10:02:06 [2025-04-22 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964196', 'tblTempUsageDetail_20' ) start [2025-04-22 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964196', 'tblTempUsageDetail_20' ) end [2025-04-22 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964196', 'tblTempVendorCDR_20' ) start [2025-04-22 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964196', 'tblTempVendorCDR_20' ) end [2025-04-22 10:02:20] Production.INFO: ProcessCDR(1,14964196,1,1,2) [2025-04-22 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964196', 'tblTempUsageDetail_20' ) start [2025-04-22 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964196', 'tblTempUsageDetail_20' ) end [2025-04-22 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:02:25] Production.INFO: ==17419== Releasing lock... [2025-04-22 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:02:25] Production.INFO: 47.25 MB #Memory Used# [2025-04-22 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:03:05 [end_date_ymd] => 2025-04-22 10:03:05 [RateCDR] => 1 ) [2025-04-22 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:03:05' and `end` < '2025-04-22 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:03:19] Production.INFO: count ==2566 [2025-04-22 10:03:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:03:05 - End Time 2025-04-22 10:03:05 [2025-04-22 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964201', 'tblTempUsageDetail_20' ) start [2025-04-22 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964201', 'tblTempUsageDetail_20' ) end [2025-04-22 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964201', 'tblTempVendorCDR_20' ) start [2025-04-22 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964201', 'tblTempVendorCDR_20' ) end [2025-04-22 10:03:20] Production.INFO: ProcessCDR(1,14964201,1,1,2) [2025-04-22 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964201', 'tblTempUsageDetail_20' ) start [2025-04-22 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964201', 'tblTempUsageDetail_20' ) end [2025-04-22 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:03:24] Production.INFO: ==17493== Releasing lock... [2025-04-22 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:03:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-22 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:04:06 [end_date_ymd] => 2025-04-22 10:04:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:04:06' and `end` < '2025-04-22 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-04-22 10:04:19] Production.INFO: count ==2573 [2025-04-22 10:04:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:04:06 - End Time 2025-04-22 10:04:06 [2025-04-22 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964206', 'tblTempUsageDetail_20' ) start [2025-04-22 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964206', 'tblTempUsageDetail_20' ) end [2025-04-22 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964206', 'tblTempVendorCDR_20' ) start [2025-04-22 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964206', 'tblTempVendorCDR_20' ) end [2025-04-22 10:04:20] Production.INFO: ProcessCDR(1,14964206,1,1,2) [2025-04-22 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964206', 'tblTempUsageDetail_20' ) start [2025-04-22 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964206', 'tblTempUsageDetail_20' ) end [2025-04-22 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:04:23] Production.INFO: ==17563== Releasing lock... [2025-04-22 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:04:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-22 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:05:05 [end_date_ymd] => 2025-04-22 10:05:05 [RateCDR] => 1 ) [2025-04-22 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:05:05' and `end` < '2025-04-22 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:05:18] Production.INFO: count ==2589 [2025-04-22 10:05:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:05:05 - End Time 2025-04-22 10:05:05 [2025-04-22 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964211', 'tblTempUsageDetail_20' ) start [2025-04-22 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964211', 'tblTempUsageDetail_20' ) end [2025-04-22 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964211', 'tblTempVendorCDR_20' ) start [2025-04-22 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964211', 'tblTempVendorCDR_20' ) end [2025-04-22 10:05:20] Production.INFO: ProcessCDR(1,14964211,1,1,2) [2025-04-22 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964211', 'tblTempUsageDetail_20' ) start [2025-04-22 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964211', 'tblTempUsageDetail_20' ) end [2025-04-22 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:05:25] Production.INFO: ==17635== Releasing lock... [2025-04-22 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:05:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-22 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:06:06 [end_date_ymd] => 2025-04-22 10:06:06 [RateCDR] => 1 ) [2025-04-22 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:06:06' and `end` < '2025-04-22 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:06:19] Production.INFO: count ==2616 [2025-04-22 10:06:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:06:06 - End Time 2025-04-22 10:06:06 [2025-04-22 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964216', 'tblTempUsageDetail_20' ) start [2025-04-22 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964216', 'tblTempUsageDetail_20' ) end [2025-04-22 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964216', 'tblTempVendorCDR_20' ) start [2025-04-22 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964216', 'tblTempVendorCDR_20' ) end [2025-04-22 10:06:20] Production.INFO: ProcessCDR(1,14964216,1,1,2) [2025-04-22 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964216', 'tblTempUsageDetail_20' ) start [2025-04-22 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964216', 'tblTempUsageDetail_20' ) end [2025-04-22 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:06:25] Production.INFO: ==17715== Releasing lock... [2025-04-22 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:06:25] Production.INFO: 48 MB #Memory Used# [2025-04-22 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:07:05 [end_date_ymd] => 2025-04-22 10:07:05 [RateCDR] => 1 ) [2025-04-22 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:07:05' and `end` < '2025-04-22 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:07:18] Production.INFO: count ==2652 [2025-04-22 10:07:19] Production.ERROR: pbx CDR StartTime 2025-04-22 07:07:05 - End Time 2025-04-22 10:07:05 [2025-04-22 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964221', 'tblTempUsageDetail_20' ) start [2025-04-22 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964221', 'tblTempUsageDetail_20' ) end [2025-04-22 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964221', 'tblTempVendorCDR_20' ) start [2025-04-22 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964221', 'tblTempVendorCDR_20' ) end [2025-04-22 10:07:19] Production.INFO: ProcessCDR(1,14964221,1,1,2) [2025-04-22 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964221', 'tblTempUsageDetail_20' ) start [2025-04-22 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964221', 'tblTempUsageDetail_20' ) end [2025-04-22 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:07:24] Production.INFO: ==17825== Releasing lock... [2025-04-22 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:07:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-22 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:08:05 [end_date_ymd] => 2025-04-22 10:08:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:08:05' and `end` < '2025-04-22 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-04-22 10:08:19] Production.INFO: count ==2664 [2025-04-22 10:08:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:08:05 - End Time 2025-04-22 10:08:05 [2025-04-22 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964226', 'tblTempUsageDetail_20' ) start [2025-04-22 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964226', 'tblTempUsageDetail_20' ) end [2025-04-22 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964226', 'tblTempVendorCDR_20' ) start [2025-04-22 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964226', 'tblTempVendorCDR_20' ) end [2025-04-22 10:08:20] Production.INFO: ProcessCDR(1,14964226,1,1,2) [2025-04-22 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964226', 'tblTempUsageDetail_20' ) start [2025-04-22 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964226', 'tblTempUsageDetail_20' ) end [2025-04-22 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:08:25] Production.INFO: ==17899== Releasing lock... [2025-04-22 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:08:25] Production.INFO: 48.25 MB #Memory Used# [2025-04-22 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:09:05 [end_date_ymd] => 2025-04-22 10:09:05 [RateCDR] => 1 ) [2025-04-22 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:09:05' and `end` < '2025-04-22 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:09:19] Production.INFO: count ==2696 [2025-04-22 10:09:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:09:05 - End Time 2025-04-22 10:09:05 [2025-04-22 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964231', 'tblTempUsageDetail_20' ) start [2025-04-22 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964231', 'tblTempUsageDetail_20' ) end [2025-04-22 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964231', 'tblTempVendorCDR_20' ) start [2025-04-22 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964231', 'tblTempVendorCDR_20' ) end [2025-04-22 10:09:20] Production.INFO: ProcessCDR(1,14964231,1,1,2) [2025-04-22 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964231', 'tblTempUsageDetail_20' ) start [2025-04-22 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964231', 'tblTempUsageDetail_20' ) end [2025-04-22 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:09:25] Production.INFO: ==17968== Releasing lock... [2025-04-22 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:09:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-22 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:10:06 [end_date_ymd] => 2025-04-22 10:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:10:06' and `end` < '2025-04-22 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-04-22 10:10:20] Production.INFO: count ==2733 [2025-04-22 10:10:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:10:06 - End Time 2025-04-22 10:10:06 [2025-04-22 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964236', 'tblTempUsageDetail_20' ) start [2025-04-22 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964236', 'tblTempUsageDetail_20' ) end [2025-04-22 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964236', 'tblTempVendorCDR_20' ) start [2025-04-22 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964236', 'tblTempVendorCDR_20' ) end [2025-04-22 10:10:21] Production.INFO: ProcessCDR(1,14964236,1,1,2) [2025-04-22 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964236', 'tblTempUsageDetail_20' ) start [2025-04-22 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964236', 'tblTempUsageDetail_20' ) end [2025-04-22 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:10:26] Production.INFO: ==18040== Releasing lock... [2025-04-22 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:10:26] Production.INFO: 48.75 MB #Memory Used# [2025-04-22 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:11:05 [end_date_ymd] => 2025-04-22 10:11:05 [RateCDR] => 1 ) [2025-04-22 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:11:05' and `end` < '2025-04-22 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:11:18] Production.INFO: count ==2823 [2025-04-22 10:11:19] Production.ERROR: pbx CDR StartTime 2025-04-22 07:11:05 - End Time 2025-04-22 10:11:05 [2025-04-22 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964242', 'tblTempUsageDetail_20' ) start [2025-04-22 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964242', 'tblTempUsageDetail_20' ) end [2025-04-22 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964242', 'tblTempVendorCDR_20' ) start [2025-04-22 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964242', 'tblTempVendorCDR_20' ) end [2025-04-22 10:11:19] Production.INFO: ProcessCDR(1,14964242,1,1,2) [2025-04-22 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964242', 'tblTempUsageDetail_20' ) start [2025-04-22 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964242', 'tblTempUsageDetail_20' ) end [2025-04-22 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:11:25] Production.INFO: ==18116== Releasing lock... [2025-04-22 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:11:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-22 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:12:06 [end_date_ymd] => 2025-04-22 10:12:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:12:06' and `end` < '2025-04-22 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-04-22 10:12:20] Production.INFO: count ==2850 [2025-04-22 10:12:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:12:06 - End Time 2025-04-22 10:12:06 [2025-04-22 10:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964247', 'tblTempUsageDetail_20' ) start [2025-04-22 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964247', 'tblTempUsageDetail_20' ) end [2025-04-22 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964247', 'tblTempVendorCDR_20' ) start [2025-04-22 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964247', 'tblTempVendorCDR_20' ) end [2025-04-22 10:12:21] Production.INFO: ProcessCDR(1,14964247,1,1,2) [2025-04-22 10:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964247', 'tblTempUsageDetail_20' ) start [2025-04-22 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964247', 'tblTempUsageDetail_20' ) end [2025-04-22 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:12:26] Production.INFO: ==18193== Releasing lock... [2025-04-22 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:12:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-22 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:13:05 [end_date_ymd] => 2025-04-22 10:13:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:13:05' and `end` < '2025-04-22 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-04-22 10:13:19] Production.INFO: count ==2867 [2025-04-22 10:13:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:13:05 - End Time 2025-04-22 10:13:05 [2025-04-22 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964252', 'tblTempUsageDetail_20' ) start [2025-04-22 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964252', 'tblTempUsageDetail_20' ) end [2025-04-22 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964252', 'tblTempVendorCDR_20' ) start [2025-04-22 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964252', 'tblTempVendorCDR_20' ) end [2025-04-22 10:13:20] Production.INFO: ProcessCDR(1,14964252,1,1,2) [2025-04-22 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964252', 'tblTempUsageDetail_20' ) start [2025-04-22 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964252', 'tblTempUsageDetail_20' ) end [2025-04-22 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:13:26] Production.INFO: ==18272== Releasing lock... [2025-04-22 10:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:13:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-22 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:14:05 [end_date_ymd] => 2025-04-22 10:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:14:05' and `end` < '2025-04-22 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-04-22 10:14:19] Production.INFO: count ==2876 [2025-04-22 10:14:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:14:05 - End Time 2025-04-22 10:14:05 [2025-04-22 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964257', 'tblTempUsageDetail_20' ) start [2025-04-22 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964257', 'tblTempUsageDetail_20' ) end [2025-04-22 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964257', 'tblTempVendorCDR_20' ) start [2025-04-22 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964257', 'tblTempVendorCDR_20' ) end [2025-04-22 10:14:20] Production.INFO: ProcessCDR(1,14964257,1,1,2) [2025-04-22 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964257', 'tblTempUsageDetail_20' ) start [2025-04-22 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964257', 'tblTempUsageDetail_20' ) end [2025-04-22 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:14:26] Production.INFO: ==18343== Releasing lock... [2025-04-22 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:14:26] Production.INFO: 49.75 MB #Memory Used# [2025-04-22 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:15:05 [end_date_ymd] => 2025-04-22 10:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:15:05' and `end` < '2025-04-22 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-04-22 10:15:19] Production.INFO: count ==2906 [2025-04-22 10:15:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:15:05 - End Time 2025-04-22 10:15:05 [2025-04-22 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964262', 'tblTempUsageDetail_20' ) start [2025-04-22 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964262', 'tblTempUsageDetail_20' ) end [2025-04-22 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964262', 'tblTempVendorCDR_20' ) start [2025-04-22 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964262', 'tblTempVendorCDR_20' ) end [2025-04-22 10:15:20] Production.INFO: ProcessCDR(1,14964262,1,1,2) [2025-04-22 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964262', 'tblTempUsageDetail_20' ) start [2025-04-22 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964262', 'tblTempUsageDetail_20' ) end [2025-04-22 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:15:26] Production.INFO: ==18413== Releasing lock... [2025-04-22 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:15:26] Production.INFO: 50.25 MB #Memory Used# [2025-04-22 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:16:05 [end_date_ymd] => 2025-04-22 10:16:05 [RateCDR] => 1 ) [2025-04-22 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:16:05' and `end` < '2025-04-22 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:16:19] Production.INFO: count ==2946 [2025-04-22 10:16:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:16:05 - End Time 2025-04-22 10:16:05 [2025-04-22 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964267', 'tblTempUsageDetail_20' ) start [2025-04-22 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964267', 'tblTempUsageDetail_20' ) end [2025-04-22 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964267', 'tblTempVendorCDR_20' ) start [2025-04-22 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964267', 'tblTempVendorCDR_20' ) end [2025-04-22 10:16:20] Production.INFO: ProcessCDR(1,14964267,1,1,2) [2025-04-22 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964267', 'tblTempUsageDetail_20' ) start [2025-04-22 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964267', 'tblTempUsageDetail_20' ) end [2025-04-22 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:16:24] Production.INFO: ==18487== Releasing lock... [2025-04-22 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:16:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-22 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:17:04 [end_date_ymd] => 2025-04-22 10:17:04 [RateCDR] => 1 ) [2025-04-22 10:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:17:04' and `end` < '2025-04-22 10:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:17:18] Production.INFO: count ==2957 [2025-04-22 10:17:19] Production.ERROR: pbx CDR StartTime 2025-04-22 07:17:04 - End Time 2025-04-22 10:17:04 [2025-04-22 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964272', 'tblTempUsageDetail_20' ) start [2025-04-22 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964272', 'tblTempUsageDetail_20' ) end [2025-04-22 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964272', 'tblTempVendorCDR_20' ) start [2025-04-22 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964272', 'tblTempVendorCDR_20' ) end [2025-04-22 10:17:19] Production.INFO: ProcessCDR(1,14964272,1,1,2) [2025-04-22 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964272', 'tblTempUsageDetail_20' ) start [2025-04-22 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964272', 'tblTempUsageDetail_20' ) end [2025-04-22 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:17:24] Production.INFO: ==18559== Releasing lock... [2025-04-22 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:17:24] Production.INFO: 50 MB #Memory Used# [2025-04-22 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:18:05 [end_date_ymd] => 2025-04-22 10:18:05 [RateCDR] => 1 ) [2025-04-22 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:18:05' and `end` < '2025-04-22 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:18:19] Production.INFO: count ==2985 [2025-04-22 10:18:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:18:05 - End Time 2025-04-22 10:18:05 [2025-04-22 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964277', 'tblTempUsageDetail_20' ) start [2025-04-22 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964277', 'tblTempUsageDetail_20' ) end [2025-04-22 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964277', 'tblTempVendorCDR_20' ) start [2025-04-22 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964277', 'tblTempVendorCDR_20' ) end [2025-04-22 10:18:20] Production.INFO: ProcessCDR(1,14964277,1,1,2) [2025-04-22 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964277', 'tblTempUsageDetail_20' ) start [2025-04-22 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964277', 'tblTempUsageDetail_20' ) end [2025-04-22 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:18:25] Production.INFO: ==18632== Releasing lock... [2025-04-22 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:18:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-22 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:19:05 [end_date_ymd] => 2025-04-22 10:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:19:05' and `end` < '2025-04-22 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-04-22 10:19:18] Production.INFO: count ==3004 [2025-04-22 10:19:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:19:05 - End Time 2025-04-22 10:19:05 [2025-04-22 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964282', 'tblTempUsageDetail_20' ) start [2025-04-22 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964282', 'tblTempUsageDetail_20' ) end [2025-04-22 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964282', 'tblTempVendorCDR_20' ) start [2025-04-22 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964282', 'tblTempVendorCDR_20' ) end [2025-04-22 10:19:20] Production.INFO: ProcessCDR(1,14964282,1,1,2) [2025-04-22 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964282', 'tblTempUsageDetail_20' ) start [2025-04-22 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964282', 'tblTempUsageDetail_20' ) end [2025-04-22 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:19:25] Production.INFO: ==18703== Releasing lock... [2025-04-22 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:19:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-22 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:20:06 [end_date_ymd] => 2025-04-22 10:20:06 [RateCDR] => 1 ) [2025-04-22 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:20:06' and `end` < '2025-04-22 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:20:19] Production.INFO: count ==3039 [2025-04-22 10:20:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:20:06 - End Time 2025-04-22 10:20:06 [2025-04-22 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964288', 'tblTempUsageDetail_20' ) start [2025-04-22 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964288', 'tblTempUsageDetail_20' ) end [2025-04-22 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964288', 'tblTempVendorCDR_20' ) start [2025-04-22 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964288', 'tblTempVendorCDR_20' ) end [2025-04-22 10:20:21] Production.INFO: ProcessCDR(1,14964288,1,1,2) [2025-04-22 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964288', 'tblTempUsageDetail_20' ) start [2025-04-22 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964288', 'tblTempUsageDetail_20' ) end [2025-04-22 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:20:26] Production.INFO: ==18779== Releasing lock... [2025-04-22 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:20:26] Production.INFO: 50.75 MB #Memory Used# [2025-04-22 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:21:05 [end_date_ymd] => 2025-04-22 10:21:05 [RateCDR] => 1 ) [2025-04-22 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:21:05' and `end` < '2025-04-22 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:21:19] Production.INFO: count ==3171 [2025-04-22 10:21:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:21:05 - End Time 2025-04-22 10:21:05 [2025-04-22 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964293', 'tblTempUsageDetail_20' ) start [2025-04-22 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964293', 'tblTempUsageDetail_20' ) end [2025-04-22 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964293', 'tblTempVendorCDR_20' ) start [2025-04-22 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964293', 'tblTempVendorCDR_20' ) end [2025-04-22 10:21:21] Production.INFO: ProcessCDR(1,14964293,1,1,2) [2025-04-22 10:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964293', 'tblTempUsageDetail_20' ) start [2025-04-22 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964293', 'tblTempUsageDetail_20' ) end [2025-04-22 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:21:25] Production.INFO: ==18851== Releasing lock... [2025-04-22 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:21:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-22 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:22:06 [end_date_ymd] => 2025-04-22 10:22:06 [RateCDR] => 1 ) [2025-04-22 10: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-04-22 07:22:06' and `end` < '2025-04-22 10: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-04-22 10:22:19] Production.INFO: count ==3187 [2025-04-22 10:22:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:22:06 - End Time 2025-04-22 10:22:06 [2025-04-22 10:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964298', 'tblTempUsageDetail_20' ) start [2025-04-22 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964298', 'tblTempUsageDetail_20' ) end [2025-04-22 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964298', 'tblTempVendorCDR_20' ) start [2025-04-22 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964298', 'tblTempVendorCDR_20' ) end [2025-04-22 10:22:21] Production.INFO: ProcessCDR(1,14964298,1,1,2) [2025-04-22 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964298', 'tblTempUsageDetail_20' ) start [2025-04-22 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964298', 'tblTempUsageDetail_20' ) end [2025-04-22 10:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:22:26] Production.INFO: ==18965== Releasing lock... [2025-04-22 10:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:22:26] Production.INFO: 51.75 MB #Memory Used# [2025-04-22 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:23:05 [end_date_ymd] => 2025-04-22 10:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:23:05' and `end` < '2025-04-22 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-04-22 10:23:19] Production.INFO: count ==3222 [2025-04-22 10:23:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:23:05 - End Time 2025-04-22 10:23:05 [2025-04-22 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964303', 'tblTempUsageDetail_20' ) start [2025-04-22 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964303', 'tblTempUsageDetail_20' ) end [2025-04-22 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964303', 'tblTempVendorCDR_20' ) start [2025-04-22 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964303', 'tblTempVendorCDR_20' ) end [2025-04-22 10:23:21] Production.INFO: ProcessCDR(1,14964303,1,1,2) [2025-04-22 10:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964303', 'tblTempUsageDetail_20' ) start [2025-04-22 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964303', 'tblTempUsageDetail_20' ) end [2025-04-22 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:23:26] Production.INFO: ==19038== Releasing lock... [2025-04-22 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:23:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-22 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:24:05 [end_date_ymd] => 2025-04-22 10:24:05 [RateCDR] => 1 ) [2025-04-22 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:24:05' and `end` < '2025-04-22 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:24:19] Production.INFO: count ==3257 [2025-04-22 10:24:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:24:05 - End Time 2025-04-22 10:24:05 [2025-04-22 10:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964308', 'tblTempUsageDetail_20' ) start [2025-04-22 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964308', 'tblTempUsageDetail_20' ) end [2025-04-22 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964308', 'tblTempVendorCDR_20' ) start [2025-04-22 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964308', 'tblTempVendorCDR_20' ) end [2025-04-22 10:24:21] Production.INFO: ProcessCDR(1,14964308,1,1,2) [2025-04-22 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964308', 'tblTempUsageDetail_20' ) start [2025-04-22 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964308', 'tblTempUsageDetail_20' ) end [2025-04-22 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:24:26] Production.INFO: ==19111== Releasing lock... [2025-04-22 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:24:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-22 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:25:06 [end_date_ymd] => 2025-04-22 10:25:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:25:06' and `end` < '2025-04-22 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-04-22 10:25:20] Production.INFO: count ==3280 [2025-04-22 10:25:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:25:06 - End Time 2025-04-22 10:25:06 [2025-04-22 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964313', 'tblTempUsageDetail_20' ) start [2025-04-22 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964313', 'tblTempUsageDetail_20' ) end [2025-04-22 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964313', 'tblTempVendorCDR_20' ) start [2025-04-22 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964313', 'tblTempVendorCDR_20' ) end [2025-04-22 10:25:21] Production.INFO: ProcessCDR(1,14964313,1,1,2) [2025-04-22 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964313', 'tblTempUsageDetail_20' ) start [2025-04-22 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964313', 'tblTempUsageDetail_20' ) end [2025-04-22 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:25:26] Production.INFO: ==19183== Releasing lock... [2025-04-22 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:25:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-22 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:26:05 [end_date_ymd] => 2025-04-22 10:26:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:26:05' and `end` < '2025-04-22 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-04-22 10:26:19] Production.INFO: count ==3298 [2025-04-22 10:26:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:26:05 - End Time 2025-04-22 10:26:05 [2025-04-22 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964318', 'tblTempUsageDetail_20' ) start [2025-04-22 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964318', 'tblTempUsageDetail_20' ) end [2025-04-22 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964318', 'tblTempVendorCDR_20' ) start [2025-04-22 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964318', 'tblTempVendorCDR_20' ) end [2025-04-22 10:26:21] Production.INFO: ProcessCDR(1,14964318,1,1,2) [2025-04-22 10:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964318', 'tblTempUsageDetail_20' ) start [2025-04-22 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964318', 'tblTempUsageDetail_20' ) end [2025-04-22 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:26:26] Production.INFO: ==19259== Releasing lock... [2025-04-22 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:26:26] Production.INFO: 53.75 MB #Memory Used# [2025-04-22 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:27:05 [end_date_ymd] => 2025-04-22 10:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:27:05' and `end` < '2025-04-22 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-04-22 10:27:19] Production.INFO: count ==3313 [2025-04-22 10:27:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:27:05 - End Time 2025-04-22 10:27:05 [2025-04-22 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964323', 'tblTempUsageDetail_20' ) start [2025-04-22 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964323', 'tblTempUsageDetail_20' ) end [2025-04-22 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964323', 'tblTempVendorCDR_20' ) start [2025-04-22 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964323', 'tblTempVendorCDR_20' ) end [2025-04-22 10:27:20] Production.INFO: ProcessCDR(1,14964323,1,1,2) [2025-04-22 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964323', 'tblTempUsageDetail_20' ) start [2025-04-22 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964323', 'tblTempUsageDetail_20' ) end [2025-04-22 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:27:26] Production.INFO: ==19334== Releasing lock... [2025-04-22 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:27:26] Production.INFO: 53.75 MB #Memory Used# [2025-04-22 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:28:05 [end_date_ymd] => 2025-04-22 10:28:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:28:05' and `end` < '2025-04-22 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-04-22 10:28:19] Production.INFO: count ==3330 [2025-04-22 10:28:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:28:05 - End Time 2025-04-22 10:28:05 [2025-04-22 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964328', 'tblTempUsageDetail_20' ) start [2025-04-22 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964328', 'tblTempUsageDetail_20' ) end [2025-04-22 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964328', 'tblTempVendorCDR_20' ) start [2025-04-22 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964328', 'tblTempVendorCDR_20' ) end [2025-04-22 10:28:20] Production.INFO: ProcessCDR(1,14964328,1,1,2) [2025-04-22 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964328', 'tblTempUsageDetail_20' ) start [2025-04-22 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964328', 'tblTempUsageDetail_20' ) end [2025-04-22 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:28:26] Production.INFO: ==19404== Releasing lock... [2025-04-22 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:28:26] Production.INFO: 53.25 MB #Memory Used# [2025-04-22 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:29:05 [end_date_ymd] => 2025-04-22 10:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:29:05' and `end` < '2025-04-22 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-04-22 10:29:19] Production.INFO: count ==3342 [2025-04-22 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:29:05 - End Time 2025-04-22 10:29:05 [2025-04-22 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964333', 'tblTempUsageDetail_20' ) start [2025-04-22 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964333', 'tblTempUsageDetail_20' ) end [2025-04-22 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964333', 'tblTempVendorCDR_20' ) start [2025-04-22 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964333', 'tblTempVendorCDR_20' ) end [2025-04-22 10:29:21] Production.INFO: ProcessCDR(1,14964333,1,1,2) [2025-04-22 10:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964333', 'tblTempUsageDetail_20' ) start [2025-04-22 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964333', 'tblTempUsageDetail_20' ) end [2025-04-22 10:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:29:26] Production.INFO: ==19477== Releasing lock... [2025-04-22 10:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:29:26] Production.INFO: 53 MB #Memory Used# [2025-04-22 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:30:05 [end_date_ymd] => 2025-04-22 10:30:05 [RateCDR] => 1 ) [2025-04-22 10: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-04-22 07:30:05' and `end` < '2025-04-22 10: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-04-22 10:30:19] Production.INFO: count ==3357 [2025-04-22 10:30:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:30:05 - End Time 2025-04-22 10:30:05 [2025-04-22 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964338', 'tblTempUsageDetail_20' ) start [2025-04-22 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964338', 'tblTempUsageDetail_20' ) end [2025-04-22 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964338', 'tblTempVendorCDR_20' ) start [2025-04-22 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964338', 'tblTempVendorCDR_20' ) end [2025-04-22 10:30:21] Production.INFO: ProcessCDR(1,14964338,1,1,2) [2025-04-22 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964338', 'tblTempUsageDetail_20' ) start [2025-04-22 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964338', 'tblTempUsageDetail_20' ) end [2025-04-22 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:30:26] Production.INFO: ==19553== Releasing lock... [2025-04-22 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:30:26] Production.INFO: 53.25 MB #Memory Used# [2025-04-22 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:31:05 [end_date_ymd] => 2025-04-22 10:31:05 [RateCDR] => 1 ) [2025-04-22 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:31:05' and `end` < '2025-04-22 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:31:19] Production.INFO: count ==3472 [2025-04-22 10:31:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:31:05 - End Time 2025-04-22 10:31:05 [2025-04-22 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964344', 'tblTempUsageDetail_20' ) start [2025-04-22 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964344', 'tblTempUsageDetail_20' ) end [2025-04-22 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964344', 'tblTempVendorCDR_20' ) start [2025-04-22 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964344', 'tblTempVendorCDR_20' ) end [2025-04-22 10:31:20] Production.INFO: ProcessCDR(1,14964344,1,1,2) [2025-04-22 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964344', 'tblTempUsageDetail_20' ) start [2025-04-22 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964344', 'tblTempUsageDetail_20' ) end [2025-04-22 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:31:26] Production.INFO: ==19629== Releasing lock... [2025-04-22 10:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:31:26] Production.INFO: 54 MB #Memory Used# [2025-04-22 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:32:05 [end_date_ymd] => 2025-04-22 10:32:05 [RateCDR] => 1 ) [2025-04-22 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:32:05' and `end` < '2025-04-22 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:32:19] Production.INFO: count ==3495 [2025-04-22 10:32:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:32:05 - End Time 2025-04-22 10:32:05 [2025-04-22 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964349', 'tblTempUsageDetail_20' ) start [2025-04-22 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964349', 'tblTempUsageDetail_20' ) end [2025-04-22 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964349', 'tblTempVendorCDR_20' ) start [2025-04-22 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964349', 'tblTempVendorCDR_20' ) end [2025-04-22 10:32:20] Production.INFO: ProcessCDR(1,14964349,1,1,2) [2025-04-22 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964349', 'tblTempUsageDetail_20' ) start [2025-04-22 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964349', 'tblTempUsageDetail_20' ) end [2025-04-22 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:32:25] Production.INFO: ==19702== Releasing lock... [2025-04-22 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:32:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-22 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:33:05 [end_date_ymd] => 2025-04-22 10:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:33:05' and `end` < '2025-04-22 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-04-22 10:33:19] Production.INFO: count ==3513 [2025-04-22 10:33:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:33:05 - End Time 2025-04-22 10:33:05 [2025-04-22 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964354', 'tblTempUsageDetail_20' ) start [2025-04-22 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964354', 'tblTempUsageDetail_20' ) end [2025-04-22 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964354', 'tblTempVendorCDR_20' ) start [2025-04-22 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964354', 'tblTempVendorCDR_20' ) end [2025-04-22 10:33:21] Production.INFO: ProcessCDR(1,14964354,1,1,2) [2025-04-22 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964354', 'tblTempUsageDetail_20' ) start [2025-04-22 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964354', 'tblTempUsageDetail_20' ) end [2025-04-22 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:33:25] Production.INFO: ==19772== Releasing lock... [2025-04-22 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:33:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-22 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:34:06 [end_date_ymd] => 2025-04-22 10:34:06 [RateCDR] => 1 ) [2025-04-22 10: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-04-22 07:34:06' and `end` < '2025-04-22 10: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-04-22 10:34:19] Production.INFO: count ==3540 [2025-04-22 10:34:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:34:06 - End Time 2025-04-22 10:34:06 [2025-04-22 10:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964359', 'tblTempUsageDetail_20' ) start [2025-04-22 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964359', 'tblTempUsageDetail_20' ) end [2025-04-22 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964359', 'tblTempVendorCDR_20' ) start [2025-04-22 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964359', 'tblTempVendorCDR_20' ) end [2025-04-22 10:34:21] Production.INFO: ProcessCDR(1,14964359,1,1,2) [2025-04-22 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964359', 'tblTempUsageDetail_20' ) start [2025-04-22 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964359', 'tblTempUsageDetail_20' ) end [2025-04-22 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:34:26] Production.INFO: ==19848== Releasing lock... [2025-04-22 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:34:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-22 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:35:05 [end_date_ymd] => 2025-04-22 10:35:05 [RateCDR] => 1 ) [2025-04-22 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:35:05' and `end` < '2025-04-22 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:35:18] Production.INFO: count ==3555 [2025-04-22 10:35:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:35:05 - End Time 2025-04-22 10:35:05 [2025-04-22 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964364', 'tblTempUsageDetail_20' ) start [2025-04-22 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964364', 'tblTempUsageDetail_20' ) end [2025-04-22 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964364', 'tblTempVendorCDR_20' ) start [2025-04-22 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964364', 'tblTempVendorCDR_20' ) end [2025-04-22 10:35:20] Production.INFO: ProcessCDR(1,14964364,1,1,2) [2025-04-22 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964364', 'tblTempUsageDetail_20' ) start [2025-04-22 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964364', 'tblTempUsageDetail_20' ) end [2025-04-22 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:35:25] Production.INFO: ==19918== Releasing lock... [2025-04-22 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:35:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-22 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:36:05 [end_date_ymd] => 2025-04-22 10:36:05 [RateCDR] => 1 ) [2025-04-22 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:36:05' and `end` < '2025-04-22 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:36:19] Production.INFO: count ==3576 [2025-04-22 10:36:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:36:05 - End Time 2025-04-22 10:36:05 [2025-04-22 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964369', 'tblTempUsageDetail_20' ) start [2025-04-22 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964369', 'tblTempUsageDetail_20' ) end [2025-04-22 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964369', 'tblTempVendorCDR_20' ) start [2025-04-22 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964369', 'tblTempVendorCDR_20' ) end [2025-04-22 10:36:20] Production.INFO: ProcessCDR(1,14964369,1,1,2) [2025-04-22 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964369', 'tblTempUsageDetail_20' ) start [2025-04-22 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964369', 'tblTempUsageDetail_20' ) end [2025-04-22 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:36:26] Production.INFO: ==19989== Releasing lock... [2025-04-22 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:36:26] Production.INFO: 55 MB #Memory Used# [2025-04-22 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:37:05 [end_date_ymd] => 2025-04-22 10:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:37:05' and `end` < '2025-04-22 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-04-22 10:37:18] Production.INFO: count ==3600 [2025-04-22 10:37:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:37:05 - End Time 2025-04-22 10:37:05 [2025-04-22 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964374', 'tblTempUsageDetail_20' ) start [2025-04-22 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964374', 'tblTempUsageDetail_20' ) end [2025-04-22 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964374', 'tblTempVendorCDR_20' ) start [2025-04-22 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964374', 'tblTempVendorCDR_20' ) end [2025-04-22 10:37:20] Production.INFO: ProcessCDR(1,14964374,1,1,2) [2025-04-22 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964374', 'tblTempUsageDetail_20' ) start [2025-04-22 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964374', 'tblTempUsageDetail_20' ) end [2025-04-22 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:37:25] Production.INFO: ==20101== Releasing lock... [2025-04-22 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:37:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-22 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:38:06 [end_date_ymd] => 2025-04-22 10:38:06 [RateCDR] => 1 ) [2025-04-22 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:38:06' and `end` < '2025-04-22 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:38:19] Production.INFO: count ==3619 [2025-04-22 10:38:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:38:06 - End Time 2025-04-22 10:38:06 [2025-04-22 10:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964379', 'tblTempUsageDetail_20' ) start [2025-04-22 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964379', 'tblTempUsageDetail_20' ) end [2025-04-22 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964379', 'tblTempVendorCDR_20' ) start [2025-04-22 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964379', 'tblTempVendorCDR_20' ) end [2025-04-22 10:38:21] Production.INFO: ProcessCDR(1,14964379,1,1,2) [2025-04-22 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964379', 'tblTempUsageDetail_20' ) start [2025-04-22 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964379', 'tblTempUsageDetail_20' ) end [2025-04-22 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:38:26] Production.INFO: ==20174== Releasing lock... [2025-04-22 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:38:26] Production.INFO: 55 MB #Memory Used# [2025-04-22 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:39:05 [end_date_ymd] => 2025-04-22 10:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:39:05' and `end` < '2025-04-22 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-04-22 10:39:18] Production.INFO: count ==3638 [2025-04-22 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:39:05 - End Time 2025-04-22 10:39:05 [2025-04-22 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964384', 'tblTempUsageDetail_20' ) start [2025-04-22 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964384', 'tblTempUsageDetail_20' ) end [2025-04-22 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964384', 'tblTempVendorCDR_20' ) start [2025-04-22 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964384', 'tblTempVendorCDR_20' ) end [2025-04-22 10:39:20] Production.INFO: ProcessCDR(1,14964384,1,1,2) [2025-04-22 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964384', 'tblTempUsageDetail_20' ) start [2025-04-22 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964384', 'tblTempUsageDetail_20' ) end [2025-04-22 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:39:26] Production.INFO: ==20249== Releasing lock... [2025-04-22 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:39:26] Production.INFO: 56.25 MB #Memory Used# [2025-04-22 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:40:06 [end_date_ymd] => 2025-04-22 10:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:40:06' and `end` < '2025-04-22 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-04-22 10:40:20] Production.INFO: count ==3659 [2025-04-22 10:40:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:40:06 - End Time 2025-04-22 10:40:06 [2025-04-22 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964390', 'tblTempUsageDetail_20' ) start [2025-04-22 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964390', 'tblTempUsageDetail_20' ) end [2025-04-22 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964390', 'tblTempVendorCDR_20' ) start [2025-04-22 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964390', 'tblTempVendorCDR_20' ) end [2025-04-22 10:40:21] Production.INFO: ProcessCDR(1,14964390,1,1,2) [2025-04-22 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964390', 'tblTempUsageDetail_20' ) start [2025-04-22 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964390', 'tblTempUsageDetail_20' ) end [2025-04-22 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:40:27] Production.INFO: ==20329== Releasing lock... [2025-04-22 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:40:27] Production.INFO: 55.5 MB #Memory Used# [2025-04-22 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:41:05 [end_date_ymd] => 2025-04-22 10:41:05 [RateCDR] => 1 ) [2025-04-22 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:41:05' and `end` < '2025-04-22 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:41:19] Production.INFO: count ==3806 [2025-04-22 10:41:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:41:05 - End Time 2025-04-22 10:41:05 [2025-04-22 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964395', 'tblTempUsageDetail_20' ) start [2025-04-22 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964395', 'tblTempUsageDetail_20' ) end [2025-04-22 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964395', 'tblTempVendorCDR_20' ) start [2025-04-22 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964395', 'tblTempVendorCDR_20' ) end [2025-04-22 10:41:20] Production.INFO: ProcessCDR(1,14964395,1,1,2) [2025-04-22 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964395', 'tblTempUsageDetail_20' ) start [2025-04-22 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964395', 'tblTempUsageDetail_20' ) end [2025-04-22 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:41:26] Production.INFO: ==20406== Releasing lock... [2025-04-22 10:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:41:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-22 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:42:05 [end_date_ymd] => 2025-04-22 10:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:42:05' and `end` < '2025-04-22 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-04-22 10:42:19] Production.INFO: count ==3844 [2025-04-22 10:42:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:42:05 - End Time 2025-04-22 10:42:05 [2025-04-22 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964400', 'tblTempUsageDetail_20' ) start [2025-04-22 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964400', 'tblTempUsageDetail_20' ) end [2025-04-22 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964400', 'tblTempVendorCDR_20' ) start [2025-04-22 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964400', 'tblTempVendorCDR_20' ) end [2025-04-22 10:42:21] Production.INFO: ProcessCDR(1,14964400,1,1,2) [2025-04-22 10:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964400', 'tblTempUsageDetail_20' ) start [2025-04-22 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964400', 'tblTempUsageDetail_20' ) end [2025-04-22 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:42:26] Production.INFO: ==20477== Releasing lock... [2025-04-22 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:42:26] Production.INFO: 56.75 MB #Memory Used# [2025-04-22 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:43:05 [end_date_ymd] => 2025-04-22 10:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:43:05' and `end` < '2025-04-22 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-04-22 10:43:18] Production.INFO: count ==3859 [2025-04-22 10:43:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:43:05 - End Time 2025-04-22 10:43:05 [2025-04-22 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964405', 'tblTempUsageDetail_20' ) start [2025-04-22 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964405', 'tblTempUsageDetail_20' ) end [2025-04-22 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964405', 'tblTempVendorCDR_20' ) start [2025-04-22 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964405', 'tblTempVendorCDR_20' ) end [2025-04-22 10:43:20] Production.INFO: ProcessCDR(1,14964405,1,1,2) [2025-04-22 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964405', 'tblTempUsageDetail_20' ) start [2025-04-22 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964405', 'tblTempUsageDetail_20' ) end [2025-04-22 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:43:25] Production.INFO: ==20550== Releasing lock... [2025-04-22 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:43:25] Production.INFO: 57 MB #Memory Used# [2025-04-22 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:44:05 [end_date_ymd] => 2025-04-22 10:44:05 [RateCDR] => 1 ) [2025-04-22 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:44:05' and `end` < '2025-04-22 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:44:19] Production.INFO: count ==3879 [2025-04-22 10:44:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:44:05 - End Time 2025-04-22 10:44:05 [2025-04-22 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964410', 'tblTempUsageDetail_20' ) start [2025-04-22 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964410', 'tblTempUsageDetail_20' ) end [2025-04-22 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964410', 'tblTempVendorCDR_20' ) start [2025-04-22 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964410', 'tblTempVendorCDR_20' ) end [2025-04-22 10:44:21] Production.INFO: ProcessCDR(1,14964410,1,1,2) [2025-04-22 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964410', 'tblTempUsageDetail_20' ) start [2025-04-22 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964410', 'tblTempUsageDetail_20' ) end [2025-04-22 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:44:26] Production.INFO: ==20625== Releasing lock... [2025-04-22 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:44:26] Production.INFO: 57 MB #Memory Used# [2025-04-22 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:45:06 [end_date_ymd] => 2025-04-22 10:45:06 [RateCDR] => 1 ) [2025-04-22 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:45:06' and `end` < '2025-04-22 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:45:20] Production.INFO: count ==3899 [2025-04-22 10:45:22] Production.ERROR: pbx CDR StartTime 2025-04-22 07:45:06 - End Time 2025-04-22 10:45:06 [2025-04-22 10:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964415', 'tblTempUsageDetail_20' ) start [2025-04-22 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964415', 'tblTempUsageDetail_20' ) end [2025-04-22 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964415', 'tblTempVendorCDR_20' ) start [2025-04-22 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964415', 'tblTempVendorCDR_20' ) end [2025-04-22 10:45:22] Production.INFO: ProcessCDR(1,14964415,1,1,2) [2025-04-22 10:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964415', 'tblTempUsageDetail_20' ) start [2025-04-22 10:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964415', 'tblTempUsageDetail_20' ) end [2025-04-22 10:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:45:28] Production.INFO: ==20696== Releasing lock... [2025-04-22 10:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:45:28] Production.INFO: 57.25 MB #Memory Used# [2025-04-22 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:46:06 [end_date_ymd] => 2025-04-22 10:46:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:46:06' and `end` < '2025-04-22 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-04-22 10:46:20] Production.INFO: count ==3910 [2025-04-22 10:46:22] Production.ERROR: pbx CDR StartTime 2025-04-22 07:46:06 - End Time 2025-04-22 10:46:06 [2025-04-22 10:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964420', 'tblTempUsageDetail_20' ) start [2025-04-22 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964420', 'tblTempUsageDetail_20' ) end [2025-04-22 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964420', 'tblTempVendorCDR_20' ) start [2025-04-22 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964420', 'tblTempVendorCDR_20' ) end [2025-04-22 10:46:22] Production.INFO: ProcessCDR(1,14964420,1,1,2) [2025-04-22 10:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964420', 'tblTempUsageDetail_20' ) start [2025-04-22 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964420', 'tblTempUsageDetail_20' ) end [2025-04-22 10:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:46:28] Production.INFO: ==20772== Releasing lock... [2025-04-22 10:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:46:28] Production.INFO: 57.25 MB #Memory Used# [2025-04-22 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:47:05 [end_date_ymd] => 2025-04-22 10:47:05 [RateCDR] => 1 ) [2025-04-22 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:47:05' and `end` < '2025-04-22 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:47:18] Production.INFO: count ==3929 [2025-04-22 10:47:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:47:05 - End Time 2025-04-22 10:47:05 [2025-04-22 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964425', 'tblTempUsageDetail_20' ) start [2025-04-22 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964425', 'tblTempUsageDetail_20' ) end [2025-04-22 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964425', 'tblTempVendorCDR_20' ) start [2025-04-22 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964425', 'tblTempVendorCDR_20' ) end [2025-04-22 10:47:20] Production.INFO: ProcessCDR(1,14964425,1,1,2) [2025-04-22 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964425', 'tblTempUsageDetail_20' ) start [2025-04-22 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964425', 'tblTempUsageDetail_20' ) end [2025-04-22 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:47:25] Production.INFO: ==20844== Releasing lock... [2025-04-22 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:47:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-22 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:48:05 [end_date_ymd] => 2025-04-22 10:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:48:05' and `end` < '2025-04-22 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-04-22 10:48:19] Production.INFO: count ==3952 [2025-04-22 10:48:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:48:05 - End Time 2025-04-22 10:48:05 [2025-04-22 10:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964430', 'tblTempUsageDetail_20' ) start [2025-04-22 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964430', 'tblTempUsageDetail_20' ) end [2025-04-22 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964430', 'tblTempVendorCDR_20' ) start [2025-04-22 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964430', 'tblTempVendorCDR_20' ) end [2025-04-22 10:48:22] Production.INFO: ProcessCDR(1,14964430,1,1,2) [2025-04-22 10:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964430', 'tblTempUsageDetail_20' ) start [2025-04-22 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964430', 'tblTempUsageDetail_20' ) end [2025-04-22 10:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:48:27] Production.INFO: ==20917== Releasing lock... [2025-04-22 10:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:48:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-22 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:49:05 [end_date_ymd] => 2025-04-22 10:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:49:05' and `end` < '2025-04-22 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-04-22 10:49:19] Production.INFO: count ==3971 [2025-04-22 10:49:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:49:05 - End Time 2025-04-22 10:49:05 [2025-04-22 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964435', 'tblTempUsageDetail_20' ) start [2025-04-22 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964435', 'tblTempUsageDetail_20' ) end [2025-04-22 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964435', 'tblTempVendorCDR_20' ) start [2025-04-22 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964435', 'tblTempVendorCDR_20' ) end [2025-04-22 10:49:21] Production.INFO: ProcessCDR(1,14964435,1,1,2) [2025-04-22 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964435', 'tblTempUsageDetail_20' ) start [2025-04-22 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964435', 'tblTempUsageDetail_20' ) end [2025-04-22 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:49:26] Production.INFO: ==20988== Releasing lock... [2025-04-22 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:49:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-22 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:50:06 [end_date_ymd] => 2025-04-22 10:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:50:06' and `end` < '2025-04-22 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-04-22 10:50:19] Production.INFO: count ==3983 [2025-04-22 10:50:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:50:06 - End Time 2025-04-22 10:50:06 [2025-04-22 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964441', 'tblTempUsageDetail_20' ) start [2025-04-22 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964441', 'tblTempUsageDetail_20' ) end [2025-04-22 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964441', 'tblTempVendorCDR_20' ) start [2025-04-22 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964441', 'tblTempVendorCDR_20' ) end [2025-04-22 10:50:21] Production.INFO: ProcessCDR(1,14964441,1,1,2) [2025-04-22 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964441', 'tblTempUsageDetail_20' ) start [2025-04-22 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964441', 'tblTempUsageDetail_20' ) end [2025-04-22 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:50:26] Production.INFO: ==21063== Releasing lock... [2025-04-22 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:50:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-22 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:51:05 [end_date_ymd] => 2025-04-22 10:51:05 [RateCDR] => 1 ) [2025-04-22 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:51:05' and `end` < '2025-04-22 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:51:19] Production.INFO: count ==4126 [2025-04-22 10:51:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:51:05 - End Time 2025-04-22 10:51:05 [2025-04-22 10:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964446', 'tblTempUsageDetail_20' ) start [2025-04-22 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964446', 'tblTempUsageDetail_20' ) end [2025-04-22 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964446', 'tblTempVendorCDR_20' ) start [2025-04-22 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964446', 'tblTempVendorCDR_20' ) end [2025-04-22 10:51:21] Production.INFO: ProcessCDR(1,14964446,1,1,2) [2025-04-22 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964446', 'tblTempUsageDetail_20' ) start [2025-04-22 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964446', 'tblTempUsageDetail_20' ) end [2025-04-22 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:51:26] Production.INFO: ==21140== Releasing lock... [2025-04-22 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:51:26] Production.INFO: 59 MB #Memory Used# [2025-04-22 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:52:05 [end_date_ymd] => 2025-04-22 10:52:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:52:05' and `end` < '2025-04-22 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-04-22 10:52:18] Production.INFO: count ==4156 [2025-04-22 10:52:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:52:05 - End Time 2025-04-22 10:52:05 [2025-04-22 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964451', 'tblTempUsageDetail_20' ) start [2025-04-22 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964451', 'tblTempUsageDetail_20' ) end [2025-04-22 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964451', 'tblTempVendorCDR_20' ) start [2025-04-22 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964451', 'tblTempVendorCDR_20' ) end [2025-04-22 10:52:21] Production.INFO: ProcessCDR(1,14964451,1,1,2) [2025-04-22 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964451', 'tblTempUsageDetail_20' ) start [2025-04-22 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964451', 'tblTempUsageDetail_20' ) end [2025-04-22 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:52:26] Production.INFO: ==21210== Releasing lock... [2025-04-22 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:52:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-22 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:53:06 [end_date_ymd] => 2025-04-22 10:53:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:53:06' and `end` < '2025-04-22 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-04-22 10:53:19] Production.INFO: count ==4175 [2025-04-22 10:53:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:53:06 - End Time 2025-04-22 10:53:06 [2025-04-22 10:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964456', 'tblTempUsageDetail_20' ) start [2025-04-22 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964456', 'tblTempUsageDetail_20' ) end [2025-04-22 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964456', 'tblTempVendorCDR_20' ) start [2025-04-22 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964456', 'tblTempVendorCDR_20' ) end [2025-04-22 10:53:21] Production.INFO: ProcessCDR(1,14964456,1,1,2) [2025-04-22 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964456', 'tblTempUsageDetail_20' ) start [2025-04-22 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964456', 'tblTempUsageDetail_20' ) end [2025-04-22 10:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:53:26] Production.INFO: ==21328== Releasing lock... [2025-04-22 10:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:53:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-22 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:54:05 [end_date_ymd] => 2025-04-22 10:54:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:54:05' and `end` < '2025-04-22 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-04-22 10:54:18] Production.INFO: count ==4234 [2025-04-22 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-22 07:54:05 - End Time 2025-04-22 10:54:05 [2025-04-22 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964461', 'tblTempUsageDetail_20' ) start [2025-04-22 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964461', 'tblTempUsageDetail_20' ) end [2025-04-22 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964461', 'tblTempVendorCDR_20' ) start [2025-04-22 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964461', 'tblTempVendorCDR_20' ) end [2025-04-22 10:54:21] Production.INFO: ProcessCDR(1,14964461,1,1,2) [2025-04-22 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964461', 'tblTempUsageDetail_20' ) start [2025-04-22 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964461', 'tblTempUsageDetail_20' ) end [2025-04-22 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:54:25] Production.INFO: ==21402== Releasing lock... [2025-04-22 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:54:25] Production.INFO: 59.75 MB #Memory Used# [2025-04-22 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:55:06 [end_date_ymd] => 2025-04-22 10:55:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:55:06' and `end` < '2025-04-22 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-04-22 10:55:19] Production.INFO: count ==4255 [2025-04-22 10:55:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:55:06 - End Time 2025-04-22 10:55:06 [2025-04-22 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964466', 'tblTempUsageDetail_20' ) start [2025-04-22 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964466', 'tblTempUsageDetail_20' ) end [2025-04-22 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964466', 'tblTempVendorCDR_20' ) start [2025-04-22 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964466', 'tblTempVendorCDR_20' ) end [2025-04-22 10:55:21] Production.INFO: ProcessCDR(1,14964466,1,1,2) [2025-04-22 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964466', 'tblTempUsageDetail_20' ) start [2025-04-22 10:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964466', 'tblTempUsageDetail_20' ) end [2025-04-22 10:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:55:27] Production.INFO: ==21473== Releasing lock... [2025-04-22 10:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:55:27] Production.INFO: 60 MB #Memory Used# [2025-04-22 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:56:06 [end_date_ymd] => 2025-04-22 10:56:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:56:06' and `end` < '2025-04-22 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-04-22 10:56:19] Production.INFO: count ==4270 [2025-04-22 10:56:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:56:06 - End Time 2025-04-22 10:56:06 [2025-04-22 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964471', 'tblTempUsageDetail_20' ) start [2025-04-22 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964471', 'tblTempUsageDetail_20' ) end [2025-04-22 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964471', 'tblTempVendorCDR_20' ) start [2025-04-22 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964471', 'tblTempVendorCDR_20' ) end [2025-04-22 10:56:21] Production.INFO: ProcessCDR(1,14964471,1,1,2) [2025-04-22 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964471', 'tblTempUsageDetail_20' ) start [2025-04-22 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964471', 'tblTempUsageDetail_20' ) end [2025-04-22 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:56:26] Production.INFO: ==21548== Releasing lock... [2025-04-22 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:56:26] Production.INFO: 60 MB #Memory Used# [2025-04-22 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:57:06 [end_date_ymd] => 2025-04-22 10:57:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:57:06' and `end` < '2025-04-22 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-04-22 10:57:19] Production.INFO: count ==4272 [2025-04-22 10:57:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:57:06 - End Time 2025-04-22 10:57:06 [2025-04-22 10:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964476', 'tblTempUsageDetail_20' ) start [2025-04-22 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964476', 'tblTempUsageDetail_20' ) end [2025-04-22 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964476', 'tblTempVendorCDR_20' ) start [2025-04-22 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964476', 'tblTempVendorCDR_20' ) end [2025-04-22 10:57:22] Production.INFO: ProcessCDR(1,14964476,1,1,2) [2025-04-22 10:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964476', 'tblTempUsageDetail_20' ) start [2025-04-22 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964476', 'tblTempUsageDetail_20' ) end [2025-04-22 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:57:25] Production.INFO: ==21620== Releasing lock... [2025-04-22 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:57:25] Production.INFO: 60 MB #Memory Used# [2025-04-22 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:58:05 [end_date_ymd] => 2025-04-22 10:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 07:58:05' and `end` < '2025-04-22 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-04-22 10:58:19] Production.INFO: count ==4281 [2025-04-22 10:58:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:58:05 - End Time 2025-04-22 10:58:05 [2025-04-22 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964481', 'tblTempUsageDetail_20' ) start [2025-04-22 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964481', 'tblTempUsageDetail_20' ) end [2025-04-22 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964481', 'tblTempVendorCDR_20' ) start [2025-04-22 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964481', 'tblTempVendorCDR_20' ) end [2025-04-22 10:58:21] Production.INFO: ProcessCDR(1,14964481,1,1,2) [2025-04-22 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964481', 'tblTempUsageDetail_20' ) start [2025-04-22 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964481', 'tblTempUsageDetail_20' ) end [2025-04-22 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:58:26] Production.INFO: ==21691== Releasing lock... [2025-04-22 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:58:26] Production.INFO: 60 MB #Memory Used# [2025-04-22 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 07:59:05 [end_date_ymd] => 2025-04-22 10:59:05 [RateCDR] => 1 ) [2025-04-22 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 07:59:05' and `end` < '2025-04-22 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 10:59:19] Production.INFO: count ==4305 [2025-04-22 10:59:21] Production.ERROR: pbx CDR StartTime 2025-04-22 07:59:05 - End Time 2025-04-22 10:59:05 [2025-04-22 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964486', 'tblTempUsageDetail_20' ) start [2025-04-22 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964486', 'tblTempUsageDetail_20' ) end [2025-04-22 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964486', 'tblTempVendorCDR_20' ) start [2025-04-22 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964486', 'tblTempVendorCDR_20' ) end [2025-04-22 10:59:21] Production.INFO: ProcessCDR(1,14964486,1,1,2) [2025-04-22 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964486', 'tblTempUsageDetail_20' ) start [2025-04-22 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964486', 'tblTempUsageDetail_20' ) end [2025-04-22 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 10:59:26] Production.INFO: ==21766== Releasing lock... [2025-04-22 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 10:59:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-22 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:00:06 [end_date_ymd] => 2025-04-22 11:00:06 [RateCDR] => 1 ) [2025-04-22 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:00:06' and `end` < '2025-04-22 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:00:20] Production.INFO: count ==4317 [2025-04-22 11:00:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:00:06 - End Time 2025-04-22 11:00:06 [2025-04-22 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964492', 'tblTempUsageDetail_20' ) start [2025-04-22 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964492', 'tblTempUsageDetail_20' ) end [2025-04-22 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964492', 'tblTempVendorCDR_20' ) start [2025-04-22 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964492', 'tblTempVendorCDR_20' ) end [2025-04-22 11:00:22] Production.INFO: ProcessCDR(1,14964492,1,1,2) [2025-04-22 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964492', 'tblTempUsageDetail_20' ) start [2025-04-22 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964492', 'tblTempUsageDetail_20' ) end [2025-04-22 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:00:27] Production.INFO: ==21845== Releasing lock... [2025-04-22 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:00:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-22 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:01:06 [end_date_ymd] => 2025-04-22 11:01:06 [RateCDR] => 1 ) [2025-04-22 11: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-04-22 08:01:06' and `end` < '2025-04-22 11: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-04-22 11:01:20] Production.INFO: count ==4425 [2025-04-22 11:01:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:01:06 - End Time 2025-04-22 11:01:06 [2025-04-22 11:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964497', 'tblTempUsageDetail_20' ) start [2025-04-22 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964497', 'tblTempUsageDetail_20' ) end [2025-04-22 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964497', 'tblTempVendorCDR_20' ) start [2025-04-22 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964497', 'tblTempVendorCDR_20' ) end [2025-04-22 11:01:22] Production.INFO: ProcessCDR(1,14964497,1,1,2) [2025-04-22 11:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964497', 'tblTempUsageDetail_20' ) start [2025-04-22 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964497', 'tblTempUsageDetail_20' ) end [2025-04-22 11:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:01:27] Production.INFO: ==21934== Releasing lock... [2025-04-22 11:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:01:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-22 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:02:05 [end_date_ymd] => 2025-04-22 11:02:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:02:05' and `end` < '2025-04-22 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-04-22 11:02:18] Production.INFO: count ==4438 [2025-04-22 11:02:20] Production.ERROR: pbx CDR StartTime 2025-04-22 08:02:05 - End Time 2025-04-22 11:02:05 [2025-04-22 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964502', 'tblTempUsageDetail_20' ) start [2025-04-22 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964502', 'tblTempUsageDetail_20' ) end [2025-04-22 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964502', 'tblTempVendorCDR_20' ) start [2025-04-22 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964502', 'tblTempVendorCDR_20' ) end [2025-04-22 11:02:20] Production.INFO: ProcessCDR(1,14964502,1,1,2) [2025-04-22 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964502', 'tblTempUsageDetail_20' ) start [2025-04-22 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964502', 'tblTempUsageDetail_20' ) end [2025-04-22 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:02:26] Production.INFO: ==22086== Releasing lock... [2025-04-22 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:02:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-22 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:03:05 [end_date_ymd] => 2025-04-22 11:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:03:05' and `end` < '2025-04-22 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-04-22 11:03:19] Production.INFO: count ==4444 [2025-04-22 11:03:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:03:05 - End Time 2025-04-22 11:03:05 [2025-04-22 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964507', 'tblTempUsageDetail_20' ) start [2025-04-22 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964507', 'tblTempUsageDetail_20' ) end [2025-04-22 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964507', 'tblTempVendorCDR_20' ) start [2025-04-22 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964507', 'tblTempVendorCDR_20' ) end [2025-04-22 11:03:21] Production.INFO: ProcessCDR(1,14964507,1,1,2) [2025-04-22 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964507', 'tblTempUsageDetail_20' ) start [2025-04-22 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964507', 'tblTempUsageDetail_20' ) end [2025-04-22 11:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:03:27] Production.INFO: ==22159== Releasing lock... [2025-04-22 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:03:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-22 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:04:05 [end_date_ymd] => 2025-04-22 11:04:05 [RateCDR] => 1 ) [2025-04-22 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:04:05' and `end` < '2025-04-22 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:04:19] Production.INFO: count ==4444 [2025-04-22 11:04:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:04:05 - End Time 2025-04-22 11:04:05 [2025-04-22 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964512', 'tblTempUsageDetail_20' ) start [2025-04-22 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964512', 'tblTempUsageDetail_20' ) end [2025-04-22 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964512', 'tblTempVendorCDR_20' ) start [2025-04-22 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964512', 'tblTempVendorCDR_20' ) end [2025-04-22 11:04:21] Production.INFO: ProcessCDR(1,14964512,1,1,2) [2025-04-22 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964512', 'tblTempUsageDetail_20' ) start [2025-04-22 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964512', 'tblTempUsageDetail_20' ) end [2025-04-22 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:04:26] Production.INFO: ==22240== Releasing lock... [2025-04-22 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:04:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-22 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:05:06 [end_date_ymd] => 2025-04-22 11:05:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:05:06' and `end` < '2025-04-22 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-04-22 11:05:19] Production.INFO: count ==4451 [2025-04-22 11:05:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:05:06 - End Time 2025-04-22 11:05:06 [2025-04-22 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964517', 'tblTempUsageDetail_20' ) start [2025-04-22 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964517', 'tblTempUsageDetail_20' ) end [2025-04-22 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964517', 'tblTempVendorCDR_20' ) start [2025-04-22 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964517', 'tblTempVendorCDR_20' ) end [2025-04-22 11:05:21] Production.INFO: ProcessCDR(1,14964517,1,1,2) [2025-04-22 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964517', 'tblTempUsageDetail_20' ) start [2025-04-22 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964517', 'tblTempUsageDetail_20' ) end [2025-04-22 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:05:26] Production.INFO: ==22391== Releasing lock... [2025-04-22 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:05:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-22 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:06:06 [end_date_ymd] => 2025-04-22 11:06:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:06:06' and `end` < '2025-04-22 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-04-22 11:06:20] Production.INFO: count ==4445 [2025-04-22 11:06:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:06:06 - End Time 2025-04-22 11:06:06 [2025-04-22 11:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964522', 'tblTempUsageDetail_20' ) start [2025-04-22 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964522', 'tblTempUsageDetail_20' ) end [2025-04-22 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964522', 'tblTempVendorCDR_20' ) start [2025-04-22 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964522', 'tblTempVendorCDR_20' ) end [2025-04-22 11:06:22] Production.INFO: ProcessCDR(1,14964522,1,1,2) [2025-04-22 11:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964522', 'tblTempUsageDetail_20' ) start [2025-04-22 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964522', 'tblTempUsageDetail_20' ) end [2025-04-22 11:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:06:27] Production.INFO: ==22465== Releasing lock... [2025-04-22 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:06:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-22 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:07:05 [end_date_ymd] => 2025-04-22 11:07:05 [RateCDR] => 1 ) [2025-04-22 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:07:05' and `end` < '2025-04-22 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:07:19] Production.INFO: count ==4500 [2025-04-22 11:07:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:07:05 - End Time 2025-04-22 11:07:05 [2025-04-22 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964527', 'tblTempUsageDetail_20' ) start [2025-04-22 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964527', 'tblTempUsageDetail_20' ) end [2025-04-22 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964527', 'tblTempVendorCDR_20' ) start [2025-04-22 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964527', 'tblTempVendorCDR_20' ) end [2025-04-22 11:07:21] Production.INFO: ProcessCDR(1,14964527,1,1,2) [2025-04-22 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964527', 'tblTempUsageDetail_20' ) start [2025-04-22 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964527', 'tblTempUsageDetail_20' ) end [2025-04-22 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:07:26] Production.INFO: ==22540== Releasing lock... [2025-04-22 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:07:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-22 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:08:06 [end_date_ymd] => 2025-04-22 11:08:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:08:06' and `end` < '2025-04-22 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-04-22 11:08:20] Production.INFO: count ==4513 [2025-04-22 11:08:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:08:06 - End Time 2025-04-22 11:08:06 [2025-04-22 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964532', 'tblTempUsageDetail_20' ) start [2025-04-22 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964532', 'tblTempUsageDetail_20' ) end [2025-04-22 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964532', 'tblTempVendorCDR_20' ) start [2025-04-22 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964532', 'tblTempVendorCDR_20' ) end [2025-04-22 11:08:22] Production.INFO: ProcessCDR(1,14964532,1,1,2) [2025-04-22 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964532', 'tblTempUsageDetail_20' ) start [2025-04-22 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964532', 'tblTempUsageDetail_20' ) end [2025-04-22 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:08:27] Production.INFO: ==22735== Releasing lock... [2025-04-22 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:08:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-22 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:09:05 [end_date_ymd] => 2025-04-22 11:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:09:05' and `end` < '2025-04-22 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-04-22 11:09:19] Production.INFO: count ==4516 [2025-04-22 11:09:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:09:05 - End Time 2025-04-22 11:09:05 [2025-04-22 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964537', 'tblTempUsageDetail_20' ) start [2025-04-22 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964537', 'tblTempUsageDetail_20' ) end [2025-04-22 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964537', 'tblTempVendorCDR_20' ) start [2025-04-22 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964537', 'tblTempVendorCDR_20' ) end [2025-04-22 11:09:21] Production.INFO: ProcessCDR(1,14964537,1,1,2) [2025-04-22 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964537', 'tblTempUsageDetail_20' ) start [2025-04-22 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964537', 'tblTempUsageDetail_20' ) end [2025-04-22 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:09:26] Production.INFO: ==22804== Releasing lock... [2025-04-22 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:09:26] Production.INFO: 62 MB #Memory Used# [2025-04-22 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:10:06 [end_date_ymd] => 2025-04-22 11:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:10:06' and `end` < '2025-04-22 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-04-22 11:10:20] Production.INFO: count ==4522 [2025-04-22 11:10:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:10:06 - End Time 2025-04-22 11:10:06 [2025-04-22 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964542', 'tblTempUsageDetail_20' ) start [2025-04-22 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964542', 'tblTempUsageDetail_20' ) end [2025-04-22 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964542', 'tblTempVendorCDR_20' ) start [2025-04-22 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964542', 'tblTempVendorCDR_20' ) end [2025-04-22 11:10:22] Production.INFO: ProcessCDR(1,14964542,1,1,2) [2025-04-22 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964542', 'tblTempUsageDetail_20' ) start [2025-04-22 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964542', 'tblTempUsageDetail_20' ) end [2025-04-22 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:10:27] Production.INFO: ==22884== Releasing lock... [2025-04-22 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:10:27] Production.INFO: 62 MB #Memory Used# [2025-04-22 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:11:05 [end_date_ymd] => 2025-04-22 11:11:05 [RateCDR] => 1 ) [2025-04-22 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:11:05' and `end` < '2025-04-22 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:11:19] Production.INFO: count ==4605 [2025-04-22 11:11:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:11:05 - End Time 2025-04-22 11:11:05 [2025-04-22 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964548', 'tblTempUsageDetail_20' ) start [2025-04-22 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964548', 'tblTempUsageDetail_20' ) end [2025-04-22 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964548', 'tblTempVendorCDR_20' ) start [2025-04-22 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964548', 'tblTempVendorCDR_20' ) end [2025-04-22 11:11:21] Production.INFO: ProcessCDR(1,14964548,1,1,2) [2025-04-22 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964548', 'tblTempUsageDetail_20' ) start [2025-04-22 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964548', 'tblTempUsageDetail_20' ) end [2025-04-22 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:11:26] Production.INFO: ==22959== Releasing lock... [2025-04-22 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:11:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-22 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:12:05 [end_date_ymd] => 2025-04-22 11:12:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:12:05' and `end` < '2025-04-22 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-04-22 11:12:19] Production.INFO: count ==4616 [2025-04-22 11:12:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:12:05 - End Time 2025-04-22 11:12:05 [2025-04-22 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964553', 'tblTempUsageDetail_20' ) start [2025-04-22 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964553', 'tblTempUsageDetail_20' ) end [2025-04-22 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964553', 'tblTempVendorCDR_20' ) start [2025-04-22 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964553', 'tblTempVendorCDR_20' ) end [2025-04-22 11:12:22] Production.INFO: ProcessCDR(1,14964553,1,1,2) [2025-04-22 11:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964553', 'tblTempUsageDetail_20' ) start [2025-04-22 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964553', 'tblTempUsageDetail_20' ) end [2025-04-22 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:12:27] Production.INFO: ==23108== Releasing lock... [2025-04-22 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:12:27] Production.INFO: 63 MB #Memory Used# [2025-04-22 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:13:05 [end_date_ymd] => 2025-04-22 11:13:05 [RateCDR] => 1 ) [2025-04-22 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:13:05' and `end` < '2025-04-22 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:13:18] Production.INFO: count ==4628 [2025-04-22 11:13:20] Production.ERROR: pbx CDR StartTime 2025-04-22 08:13:05 - End Time 2025-04-22 11:13:05 [2025-04-22 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964558', 'tblTempUsageDetail_20' ) start [2025-04-22 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964558', 'tblTempUsageDetail_20' ) end [2025-04-22 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964558', 'tblTempVendorCDR_20' ) start [2025-04-22 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964558', 'tblTempVendorCDR_20' ) end [2025-04-22 11:13:21] Production.INFO: ProcessCDR(1,14964558,1,1,2) [2025-04-22 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964558', 'tblTempUsageDetail_20' ) start [2025-04-22 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964558', 'tblTempUsageDetail_20' ) end [2025-04-22 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:13:26] Production.INFO: ==23183== Releasing lock... [2025-04-22 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:13:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-22 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:14:05 [end_date_ymd] => 2025-04-22 11:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:14:05' and `end` < '2025-04-22 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-04-22 11:14:19] Production.INFO: count ==4647 [2025-04-22 11:14:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:14:05 - End Time 2025-04-22 11:14:05 [2025-04-22 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964563', 'tblTempUsageDetail_20' ) start [2025-04-22 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964563', 'tblTempUsageDetail_20' ) end [2025-04-22 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964563', 'tblTempVendorCDR_20' ) start [2025-04-22 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964563', 'tblTempVendorCDR_20' ) end [2025-04-22 11:14:21] Production.INFO: ProcessCDR(1,14964563,1,1,2) [2025-04-22 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964563', 'tblTempUsageDetail_20' ) start [2025-04-22 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964563', 'tblTempUsageDetail_20' ) end [2025-04-22 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:14:26] Production.INFO: ==23257== Releasing lock... [2025-04-22 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:14:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-22 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:15:05 [end_date_ymd] => 2025-04-22 11:15:05 [RateCDR] => 1 ) [2025-04-22 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:15:05' and `end` < '2025-04-22 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:15:19] Production.INFO: count ==4660 [2025-04-22 11:15:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:15:05 - End Time 2025-04-22 11:15:05 [2025-04-22 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964568', 'tblTempUsageDetail_20' ) start [2025-04-22 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964568', 'tblTempUsageDetail_20' ) end [2025-04-22 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964568', 'tblTempVendorCDR_20' ) start [2025-04-22 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964568', 'tblTempVendorCDR_20' ) end [2025-04-22 11:15:21] Production.INFO: ProcessCDR(1,14964568,1,1,2) [2025-04-22 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964568', 'tblTempUsageDetail_20' ) start [2025-04-22 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964568', 'tblTempUsageDetail_20' ) end [2025-04-22 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:15:26] Production.INFO: ==23410== Releasing lock... [2025-04-22 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:15:26] Production.INFO: 63 MB #Memory Used# [2025-04-22 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:16:05 [end_date_ymd] => 2025-04-22 11:16:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:16:05' and `end` < '2025-04-22 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-04-22 11:16:19] Production.INFO: count ==4680 [2025-04-22 11:16:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:16:05 - End Time 2025-04-22 11:16:05 [2025-04-22 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964573', 'tblTempUsageDetail_20' ) start [2025-04-22 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964573', 'tblTempUsageDetail_20' ) end [2025-04-22 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964573', 'tblTempVendorCDR_20' ) start [2025-04-22 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964573', 'tblTempVendorCDR_20' ) end [2025-04-22 11:16:21] Production.INFO: ProcessCDR(1,14964573,1,1,2) [2025-04-22 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964573', 'tblTempUsageDetail_20' ) start [2025-04-22 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964573', 'tblTempUsageDetail_20' ) end [2025-04-22 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:16:26] Production.INFO: ==23482== Releasing lock... [2025-04-22 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:16:26] Production.INFO: 63 MB #Memory Used# [2025-04-22 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:17:06 [end_date_ymd] => 2025-04-22 11:17:06 [RateCDR] => 1 ) [2025-04-22 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:17:06' and `end` < '2025-04-22 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:17:19] Production.INFO: count ==4693 [2025-04-22 11:17:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:17:06 - End Time 2025-04-22 11:17:06 [2025-04-22 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964578', 'tblTempUsageDetail_20' ) start [2025-04-22 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964578', 'tblTempUsageDetail_20' ) end [2025-04-22 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964578', 'tblTempVendorCDR_20' ) start [2025-04-22 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964578', 'tblTempVendorCDR_20' ) end [2025-04-22 11:17:22] Production.INFO: ProcessCDR(1,14964578,1,1,2) [2025-04-22 11:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964578', 'tblTempUsageDetail_20' ) start [2025-04-22 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964578', 'tblTempUsageDetail_20' ) end [2025-04-22 11:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:17:27] Production.INFO: ==23558== Releasing lock... [2025-04-22 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:17:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-22 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:18:05 [end_date_ymd] => 2025-04-22 11:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:18:05' and `end` < '2025-04-22 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-04-22 11:18:19] Production.INFO: count ==4700 [2025-04-22 11:18:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:18:05 - End Time 2025-04-22 11:18:05 [2025-04-22 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964583', 'tblTempUsageDetail_20' ) start [2025-04-22 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964583', 'tblTempUsageDetail_20' ) end [2025-04-22 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964583', 'tblTempVendorCDR_20' ) start [2025-04-22 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964583', 'tblTempVendorCDR_20' ) end [2025-04-22 11:18:21] Production.INFO: ProcessCDR(1,14964583,1,1,2) [2025-04-22 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964583', 'tblTempUsageDetail_20' ) start [2025-04-22 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964583', 'tblTempUsageDetail_20' ) end [2025-04-22 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:18:26] Production.INFO: ==23628== Releasing lock... [2025-04-22 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:18:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-22 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:19:05 [end_date_ymd] => 2025-04-22 11:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:19:05' and `end` < '2025-04-22 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-04-22 11:19:19] Production.INFO: count ==4700 [2025-04-22 11:19:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:19:05 - End Time 2025-04-22 11:19:05 [2025-04-22 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964588', 'tblTempUsageDetail_20' ) start [2025-04-22 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964588', 'tblTempUsageDetail_20' ) end [2025-04-22 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964588', 'tblTempVendorCDR_20' ) start [2025-04-22 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964588', 'tblTempVendorCDR_20' ) end [2025-04-22 11:19:21] Production.INFO: ProcessCDR(1,14964588,1,1,2) [2025-04-22 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964588', 'tblTempUsageDetail_20' ) start [2025-04-22 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964588', 'tblTempUsageDetail_20' ) end [2025-04-22 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:19:26] Production.INFO: ==23706== Releasing lock... [2025-04-22 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:19:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-22 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:20:06 [end_date_ymd] => 2025-04-22 11:20:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:20:06' and `end` < '2025-04-22 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-04-22 11:20:20] Production.INFO: count ==4706 [2025-04-22 11:20:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:20:06 - End Time 2025-04-22 11:20:06 [2025-04-22 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964594', 'tblTempUsageDetail_20' ) start [2025-04-22 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964594', 'tblTempUsageDetail_20' ) end [2025-04-22 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964594', 'tblTempVendorCDR_20' ) start [2025-04-22 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964594', 'tblTempVendorCDR_20' ) end [2025-04-22 11:20:22] Production.INFO: ProcessCDR(1,14964594,1,1,2) [2025-04-22 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964594', 'tblTempUsageDetail_20' ) start [2025-04-22 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964594', 'tblTempUsageDetail_20' ) end [2025-04-22 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:20:27] Production.INFO: ==23792== Releasing lock... [2025-04-22 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:20:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-22 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:21:05 [end_date_ymd] => 2025-04-22 11:21:05 [RateCDR] => 1 ) [2025-04-22 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:21:05' and `end` < '2025-04-22 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:21:19] Production.INFO: count ==4825 [2025-04-22 11:21:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:21:05 - End Time 2025-04-22 11:21:05 [2025-04-22 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964599', 'tblTempUsageDetail_20' ) start [2025-04-22 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964599', 'tblTempUsageDetail_20' ) end [2025-04-22 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964599', 'tblTempVendorCDR_20' ) start [2025-04-22 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964599', 'tblTempVendorCDR_20' ) end [2025-04-22 11:21:22] Production.INFO: ProcessCDR(1,14964599,1,1,2) [2025-04-22 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964599', 'tblTempUsageDetail_20' ) start [2025-04-22 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964599', 'tblTempUsageDetail_20' ) end [2025-04-22 11:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:21:27] Production.INFO: ==23870== Releasing lock... [2025-04-22 11:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:21:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-22 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:22:05 [end_date_ymd] => 2025-04-22 11:22:05 [RateCDR] => 1 ) [2025-04-22 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:22:05' and `end` < '2025-04-22 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:22:19] Production.INFO: count ==4839 [2025-04-22 11:22:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:22:05 - End Time 2025-04-22 11:22:05 [2025-04-22 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964604', 'tblTempUsageDetail_20' ) start [2025-04-22 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964604', 'tblTempUsageDetail_20' ) end [2025-04-22 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964604', 'tblTempVendorCDR_20' ) start [2025-04-22 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964604', 'tblTempVendorCDR_20' ) end [2025-04-22 11:22:21] Production.INFO: ProcessCDR(1,14964604,1,1,2) [2025-04-22 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964604', 'tblTempUsageDetail_20' ) start [2025-04-22 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964604', 'tblTempUsageDetail_20' ) end [2025-04-22 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:22:26] Production.INFO: ==23944== Releasing lock... [2025-04-22 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:22:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-22 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:23:05 [end_date_ymd] => 2025-04-22 11:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:23:05' and `end` < '2025-04-22 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-04-22 11:23:19] Production.INFO: count ==4841 [2025-04-22 11:23:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:23:05 - End Time 2025-04-22 11:23:05 [2025-04-22 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964609', 'tblTempUsageDetail_20' ) start [2025-04-22 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964609', 'tblTempUsageDetail_20' ) end [2025-04-22 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964609', 'tblTempVendorCDR_20' ) start [2025-04-22 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964609', 'tblTempVendorCDR_20' ) end [2025-04-22 11:23:22] Production.INFO: ProcessCDR(1,14964609,1,1,2) [2025-04-22 11:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964609', 'tblTempUsageDetail_20' ) start [2025-04-22 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964609', 'tblTempUsageDetail_20' ) end [2025-04-22 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:23:27] Production.INFO: ==24017== Releasing lock... [2025-04-22 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:23:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-22 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:24:05 [end_date_ymd] => 2025-04-22 11:24:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:24:05' and `end` < '2025-04-22 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-04-22 11:24:19] Production.INFO: count ==4872 [2025-04-22 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:24:05 - End Time 2025-04-22 11:24:05 [2025-04-22 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964614', 'tblTempUsageDetail_20' ) start [2025-04-22 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964614', 'tblTempUsageDetail_20' ) end [2025-04-22 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964614', 'tblTempVendorCDR_20' ) start [2025-04-22 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964614', 'tblTempVendorCDR_20' ) end [2025-04-22 11:24:21] Production.INFO: ProcessCDR(1,14964614,1,1,2) [2025-04-22 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964614', 'tblTempUsageDetail_20' ) start [2025-04-22 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964614', 'tblTempUsageDetail_20' ) end [2025-04-22 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:24:26] Production.INFO: ==24134== Releasing lock... [2025-04-22 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:24:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-22 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:25:05 [end_date_ymd] => 2025-04-22 11:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:25:05' and `end` < '2025-04-22 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-04-22 11:25:19] Production.INFO: count ==4876 [2025-04-22 11:25:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:25:05 - End Time 2025-04-22 11:25:05 [2025-04-22 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964619', 'tblTempUsageDetail_20' ) start [2025-04-22 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964619', 'tblTempUsageDetail_20' ) end [2025-04-22 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964619', 'tblTempVendorCDR_20' ) start [2025-04-22 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964619', 'tblTempVendorCDR_20' ) end [2025-04-22 11:25:21] Production.INFO: ProcessCDR(1,14964619,1,1,2) [2025-04-22 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964619', 'tblTempUsageDetail_20' ) start [2025-04-22 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964619', 'tblTempUsageDetail_20' ) end [2025-04-22 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:25:26] Production.INFO: ==24209== Releasing lock... [2025-04-22 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:25:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-22 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:26:05 [end_date_ymd] => 2025-04-22 11:26:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:26:05' and `end` < '2025-04-22 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-04-22 11:26:19] Production.INFO: count ==4878 [2025-04-22 11:26:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:26:05 - End Time 2025-04-22 11:26:05 [2025-04-22 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964624', 'tblTempUsageDetail_20' ) start [2025-04-22 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964624', 'tblTempUsageDetail_20' ) end [2025-04-22 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964624', 'tblTempVendorCDR_20' ) start [2025-04-22 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964624', 'tblTempVendorCDR_20' ) end [2025-04-22 11:26:22] Production.INFO: ProcessCDR(1,14964624,1,1,2) [2025-04-22 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964624', 'tblTempUsageDetail_20' ) start [2025-04-22 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964624', 'tblTempUsageDetail_20' ) end [2025-04-22 11:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:26:27] Production.INFO: ==24285== Releasing lock... [2025-04-22 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:26:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-22 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:27:05 [end_date_ymd] => 2025-04-22 11:27:05 [RateCDR] => 1 ) [2025-04-22 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:27:05' and `end` < '2025-04-22 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:27:19] Production.INFO: count ==4900 [2025-04-22 11:27:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:27:05 - End Time 2025-04-22 11:27:05 [2025-04-22 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964629', 'tblTempUsageDetail_20' ) start [2025-04-22 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964629', 'tblTempUsageDetail_20' ) end [2025-04-22 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964629', 'tblTempVendorCDR_20' ) start [2025-04-22 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964629', 'tblTempVendorCDR_20' ) end [2025-04-22 11:27:22] Production.INFO: ProcessCDR(1,14964629,1,1,2) [2025-04-22 11:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964629', 'tblTempUsageDetail_20' ) start [2025-04-22 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964629', 'tblTempUsageDetail_20' ) end [2025-04-22 11:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:27:27] Production.INFO: ==24360== Releasing lock... [2025-04-22 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:27:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-22 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:28:05 [end_date_ymd] => 2025-04-22 11:28:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:28:05' and `end` < '2025-04-22 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-04-22 11:28:19] Production.INFO: count ==4945 [2025-04-22 11:28:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:28:05 - End Time 2025-04-22 11:28:05 [2025-04-22 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964634', 'tblTempUsageDetail_20' ) start [2025-04-22 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964634', 'tblTempUsageDetail_20' ) end [2025-04-22 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964634', 'tblTempVendorCDR_20' ) start [2025-04-22 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964634', 'tblTempVendorCDR_20' ) end [2025-04-22 11:28:22] Production.INFO: ProcessCDR(1,14964634,1,1,2) [2025-04-22 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964634', 'tblTempUsageDetail_20' ) start [2025-04-22 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964634', 'tblTempUsageDetail_20' ) end [2025-04-22 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:28:27] Production.INFO: ==24441== Releasing lock... [2025-04-22 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:28:27] Production.INFO: 65 MB #Memory Used# [2025-04-22 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:29:05 [end_date_ymd] => 2025-04-22 11:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:29:05' and `end` < '2025-04-22 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-04-22 11:29:19] Production.INFO: count ==4956 [2025-04-22 11:29:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:29:05 - End Time 2025-04-22 11:29:05 [2025-04-22 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964639', 'tblTempUsageDetail_20' ) start [2025-04-22 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964639', 'tblTempUsageDetail_20' ) end [2025-04-22 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964639', 'tblTempVendorCDR_20' ) start [2025-04-22 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964639', 'tblTempVendorCDR_20' ) end [2025-04-22 11:29:22] Production.INFO: ProcessCDR(1,14964639,1,1,2) [2025-04-22 11:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964639', 'tblTempUsageDetail_20' ) start [2025-04-22 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964639', 'tblTempUsageDetail_20' ) end [2025-04-22 11:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:29:27] Production.INFO: ==24526== Releasing lock... [2025-04-22 11:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:29:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-22 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:30:06 [end_date_ymd] => 2025-04-22 11:30:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:30:06' and `end` < '2025-04-22 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-04-22 11:30:19] Production.INFO: count ==4964 [2025-04-22 11:30:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:30:06 - End Time 2025-04-22 11:30:06 [2025-04-22 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964645', 'tblTempUsageDetail_20' ) start [2025-04-22 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964645', 'tblTempUsageDetail_20' ) end [2025-04-22 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964645', 'tblTempVendorCDR_20' ) start [2025-04-22 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964645', 'tblTempVendorCDR_20' ) end [2025-04-22 11:30:22] Production.INFO: ProcessCDR(1,14964645,1,1,2) [2025-04-22 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964645', 'tblTempUsageDetail_20' ) start [2025-04-22 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964645', 'tblTempUsageDetail_20' ) end [2025-04-22 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:30:27] Production.INFO: ==24623== Releasing lock... [2025-04-22 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:30:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-22 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:31:05 [end_date_ymd] => 2025-04-22 11:31:05 [RateCDR] => 1 ) [2025-04-22 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:31:05' and `end` < '2025-04-22 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:31:19] Production.INFO: count ==5071 [2025-04-22 11:31:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:31:05 - End Time 2025-04-22 11:31:05 [2025-04-22 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964650', 'tblTempUsageDetail_20' ) start [2025-04-22 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964650', 'tblTempUsageDetail_20' ) end [2025-04-22 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964650', 'tblTempVendorCDR_20' ) start [2025-04-22 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964650', 'tblTempVendorCDR_20' ) end [2025-04-22 11:31:22] Production.INFO: ProcessCDR(1,14964650,1,1,2) [2025-04-22 11:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964650', 'tblTempUsageDetail_20' ) start [2025-04-22 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964650', 'tblTempUsageDetail_20' ) end [2025-04-22 11:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:31:27] Production.INFO: ==24704== Releasing lock... [2025-04-22 11:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:31:27] Production.INFO: 66 MB #Memory Used# [2025-04-22 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:32:05 [end_date_ymd] => 2025-04-22 11:32:05 [RateCDR] => 1 ) [2025-04-22 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:32:05' and `end` < '2025-04-22 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:32:19] Production.INFO: count ==5083 [2025-04-22 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:32:05 - End Time 2025-04-22 11:32:05 [2025-04-22 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964655', 'tblTempUsageDetail_20' ) start [2025-04-22 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964655', 'tblTempUsageDetail_20' ) end [2025-04-22 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964655', 'tblTempVendorCDR_20' ) start [2025-04-22 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964655', 'tblTempVendorCDR_20' ) end [2025-04-22 11:32:21] Production.INFO: ProcessCDR(1,14964655,1,1,2) [2025-04-22 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964655', 'tblTempUsageDetail_20' ) start [2025-04-22 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964655', 'tblTempUsageDetail_20' ) end [2025-04-22 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:32:26] Production.INFO: ==24789== Releasing lock... [2025-04-22 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:32:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-22 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:33:05 [end_date_ymd] => 2025-04-22 11:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:33:05' and `end` < '2025-04-22 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-04-22 11:33:19] Production.INFO: count ==5087 [2025-04-22 11:33:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:33:05 - End Time 2025-04-22 11:33:05 [2025-04-22 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964660', 'tblTempUsageDetail_20' ) start [2025-04-22 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964660', 'tblTempUsageDetail_20' ) end [2025-04-22 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964660', 'tblTempVendorCDR_20' ) start [2025-04-22 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964660', 'tblTempVendorCDR_20' ) end [2025-04-22 11:33:22] Production.INFO: ProcessCDR(1,14964660,1,1,2) [2025-04-22 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964660', 'tblTempUsageDetail_20' ) start [2025-04-22 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964660', 'tblTempUsageDetail_20' ) end [2025-04-22 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:33:27] Production.INFO: ==24869== Releasing lock... [2025-04-22 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:33:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-22 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:34:05 [end_date_ymd] => 2025-04-22 11:34:05 [RateCDR] => 1 ) [2025-04-22 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:34:05' and `end` < '2025-04-22 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:34:19] Production.INFO: count ==5097 [2025-04-22 11:34:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:34:05 - End Time 2025-04-22 11:34:05 [2025-04-22 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964665', 'tblTempUsageDetail_20' ) start [2025-04-22 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964665', 'tblTempUsageDetail_20' ) end [2025-04-22 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964665', 'tblTempVendorCDR_20' ) start [2025-04-22 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964665', 'tblTempVendorCDR_20' ) end [2025-04-22 11:34:22] Production.INFO: ProcessCDR(1,14964665,1,1,2) [2025-04-22 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964665', 'tblTempUsageDetail_20' ) start [2025-04-22 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964665', 'tblTempUsageDetail_20' ) end [2025-04-22 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:34:27] Production.INFO: ==24954== Releasing lock... [2025-04-22 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:34:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-22 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:35:04 [end_date_ymd] => 2025-04-22 11:35:04 [RateCDR] => 1 ) [2025-04-22 11:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:35:04' and `end` < '2025-04-22 11:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:35:18] Production.INFO: count ==5116 [2025-04-22 11:35:20] Production.ERROR: pbx CDR StartTime 2025-04-22 08:35:04 - End Time 2025-04-22 11:35:04 [2025-04-22 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964670', 'tblTempUsageDetail_20' ) start [2025-04-22 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964670', 'tblTempUsageDetail_20' ) end [2025-04-22 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964670', 'tblTempVendorCDR_20' ) start [2025-04-22 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964670', 'tblTempVendorCDR_20' ) end [2025-04-22 11:35:21] Production.INFO: ProcessCDR(1,14964670,1,1,2) [2025-04-22 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964670', 'tblTempUsageDetail_20' ) start [2025-04-22 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964670', 'tblTempUsageDetail_20' ) end [2025-04-22 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:35:26] Production.INFO: ==25029== Releasing lock... [2025-04-22 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:35:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-22 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:36:05 [end_date_ymd] => 2025-04-22 11:36:05 [RateCDR] => 1 ) [2025-04-22 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:36:05' and `end` < '2025-04-22 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:36:19] Production.INFO: count ==5130 [2025-04-22 11:36:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:36:05 - End Time 2025-04-22 11:36:05 [2025-04-22 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964675', 'tblTempUsageDetail_20' ) start [2025-04-22 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964675', 'tblTempUsageDetail_20' ) end [2025-04-22 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964675', 'tblTempVendorCDR_20' ) start [2025-04-22 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964675', 'tblTempVendorCDR_20' ) end [2025-04-22 11:36:22] Production.INFO: ProcessCDR(1,14964675,1,1,2) [2025-04-22 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964675', 'tblTempUsageDetail_20' ) start [2025-04-22 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964675', 'tblTempUsageDetail_20' ) end [2025-04-22 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:36:26] Production.INFO: ==25105== Releasing lock... [2025-04-22 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:36:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-22 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:37:05 [end_date_ymd] => 2025-04-22 11:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:37:05' and `end` < '2025-04-22 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-04-22 11:37:19] Production.INFO: count ==5152 [2025-04-22 11:37:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:37:05 - End Time 2025-04-22 11:37:05 [2025-04-22 11:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964680', 'tblTempUsageDetail_20' ) start [2025-04-22 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964680', 'tblTempUsageDetail_20' ) end [2025-04-22 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964680', 'tblTempVendorCDR_20' ) start [2025-04-22 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964680', 'tblTempVendorCDR_20' ) end [2025-04-22 11:37:22] Production.INFO: ProcessCDR(1,14964680,1,1,2) [2025-04-22 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964680', 'tblTempUsageDetail_20' ) start [2025-04-22 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964680', 'tblTempUsageDetail_20' ) end [2025-04-22 11:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:37:28] Production.INFO: ==25197== Releasing lock... [2025-04-22 11:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:37:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-22 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:38:05 [end_date_ymd] => 2025-04-22 11:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:38:05' and `end` < '2025-04-22 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-04-22 11:38:19] Production.INFO: count ==5158 [2025-04-22 11:38:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:38:05 - End Time 2025-04-22 11:38:05 [2025-04-22 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964685', 'tblTempUsageDetail_20' ) start [2025-04-22 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964685', 'tblTempUsageDetail_20' ) end [2025-04-22 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964685', 'tblTempVendorCDR_20' ) start [2025-04-22 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964685', 'tblTempVendorCDR_20' ) end [2025-04-22 11:38:22] Production.INFO: ProcessCDR(1,14964685,1,1,2) [2025-04-22 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964685', 'tblTempUsageDetail_20' ) start [2025-04-22 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964685', 'tblTempUsageDetail_20' ) end [2025-04-22 11:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:38:27] Production.INFO: ==25270== Releasing lock... [2025-04-22 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:38:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-22 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:39:05 [end_date_ymd] => 2025-04-22 11:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:39:05' and `end` < '2025-04-22 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-04-22 11:39:19] Production.INFO: count ==5153 [2025-04-22 11:39:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:39:05 - End Time 2025-04-22 11:39:05 [2025-04-22 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964690', 'tblTempUsageDetail_20' ) start [2025-04-22 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964690', 'tblTempUsageDetail_20' ) end [2025-04-22 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964690', 'tblTempVendorCDR_20' ) start [2025-04-22 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964690', 'tblTempVendorCDR_20' ) end [2025-04-22 11:39:22] Production.INFO: ProcessCDR(1,14964690,1,1,2) [2025-04-22 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964690', 'tblTempUsageDetail_20' ) start [2025-04-22 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964690', 'tblTempUsageDetail_20' ) end [2025-04-22 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:39:27] Production.INFO: ==25383== Releasing lock... [2025-04-22 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:39:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-22 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:40:06 [end_date_ymd] => 2025-04-22 11:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:40:06' and `end` < '2025-04-22 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-04-22 11:40:20] Production.INFO: count ==5155 [2025-04-22 11:40:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:40:06 - End Time 2025-04-22 11:40:06 [2025-04-22 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964695', 'tblTempUsageDetail_20' ) start [2025-04-22 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964695', 'tblTempUsageDetail_20' ) end [2025-04-22 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964695', 'tblTempVendorCDR_20' ) start [2025-04-22 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964695', 'tblTempVendorCDR_20' ) end [2025-04-22 11:40:22] Production.INFO: ProcessCDR(1,14964695,1,1,2) [2025-04-22 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964695', 'tblTempUsageDetail_20' ) start [2025-04-22 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964695', 'tblTempUsageDetail_20' ) end [2025-04-22 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:40:28] Production.INFO: ==25459== Releasing lock... [2025-04-22 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:40:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-22 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:41:06 [end_date_ymd] => 2025-04-22 11:41:06 [RateCDR] => 1 ) [2025-04-22 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:41:06' and `end` < '2025-04-22 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:41:19] Production.INFO: count ==5250 [2025-04-22 11:41:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:41:06 - End Time 2025-04-22 11:41:06 [2025-04-22 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964701', 'tblTempUsageDetail_20' ) start [2025-04-22 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964701', 'tblTempUsageDetail_20' ) end [2025-04-22 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964701', 'tblTempVendorCDR_20' ) start [2025-04-22 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964701', 'tblTempVendorCDR_20' ) end [2025-04-22 11:41:22] Production.INFO: ProcessCDR(1,14964701,1,1,2) [2025-04-22 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964701', 'tblTempUsageDetail_20' ) start [2025-04-22 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964701', 'tblTempUsageDetail_20' ) end [2025-04-22 11:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:41:27] Production.INFO: ==25536== Releasing lock... [2025-04-22 11:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:41:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-22 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:42:05 [end_date_ymd] => 2025-04-22 11:42:05 [RateCDR] => 1 ) [2025-04-22 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:42:05' and `end` < '2025-04-22 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:42:19] Production.INFO: count ==5276 [2025-04-22 11:42:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:42:05 - End Time 2025-04-22 11:42:05 [2025-04-22 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964706', 'tblTempUsageDetail_20' ) start [2025-04-22 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964706', 'tblTempUsageDetail_20' ) end [2025-04-22 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964706', 'tblTempVendorCDR_20' ) start [2025-04-22 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964706', 'tblTempVendorCDR_20' ) end [2025-04-22 11:42:22] Production.INFO: ProcessCDR(1,14964706,1,1,2) [2025-04-22 11:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964706', 'tblTempUsageDetail_20' ) start [2025-04-22 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964706', 'tblTempUsageDetail_20' ) end [2025-04-22 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:42:27] Production.INFO: ==25606== Releasing lock... [2025-04-22 11:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:42:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-22 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:43:05 [end_date_ymd] => 2025-04-22 11:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:43:05' and `end` < '2025-04-22 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-04-22 11:43:19] Production.INFO: count ==5299 [2025-04-22 11:43:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:43:05 - End Time 2025-04-22 11:43:05 [2025-04-22 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964711', 'tblTempUsageDetail_20' ) start [2025-04-22 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964711', 'tblTempUsageDetail_20' ) end [2025-04-22 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964711', 'tblTempVendorCDR_20' ) start [2025-04-22 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964711', 'tblTempVendorCDR_20' ) end [2025-04-22 11:43:22] Production.INFO: ProcessCDR(1,14964711,1,1,2) [2025-04-22 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964711', 'tblTempUsageDetail_20' ) start [2025-04-22 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964711', 'tblTempUsageDetail_20' ) end [2025-04-22 11:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:43:27] Production.INFO: ==25679== Releasing lock... [2025-04-22 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:43:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-22 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:44:05 [end_date_ymd] => 2025-04-22 11:44:05 [RateCDR] => 1 ) [2025-04-22 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:44:05' and `end` < '2025-04-22 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:44:19] Production.INFO: count ==5322 [2025-04-22 11:44:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:44:05 - End Time 2025-04-22 11:44:05 [2025-04-22 11:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964716', 'tblTempUsageDetail_20' ) start [2025-04-22 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964716', 'tblTempUsageDetail_20' ) end [2025-04-22 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964716', 'tblTempVendorCDR_20' ) start [2025-04-22 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964716', 'tblTempVendorCDR_20' ) end [2025-04-22 11:44:22] Production.INFO: ProcessCDR(1,14964716,1,1,2) [2025-04-22 11:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964716', 'tblTempUsageDetail_20' ) start [2025-04-22 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964716', 'tblTempUsageDetail_20' ) end [2025-04-22 11:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:44:28] Production.INFO: ==25755== Releasing lock... [2025-04-22 11:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:44:28] Production.INFO: 68 MB #Memory Used# [2025-04-22 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:45:05 [end_date_ymd] => 2025-04-22 11:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:45:05' and `end` < '2025-04-22 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-04-22 11:45:19] Production.INFO: count ==5328 [2025-04-22 11:45:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:45:05 - End Time 2025-04-22 11:45:05 [2025-04-22 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964721', 'tblTempUsageDetail_20' ) start [2025-04-22 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964721', 'tblTempUsageDetail_20' ) end [2025-04-22 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964721', 'tblTempVendorCDR_20' ) start [2025-04-22 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964721', 'tblTempVendorCDR_20' ) end [2025-04-22 11:45:22] Production.INFO: ProcessCDR(1,14964721,1,1,2) [2025-04-22 11:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964721', 'tblTempUsageDetail_20' ) start [2025-04-22 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964721', 'tblTempUsageDetail_20' ) end [2025-04-22 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:45:27] Production.INFO: ==25825== Releasing lock... [2025-04-22 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:45:27] Production.INFO: 68 MB #Memory Used# [2025-04-22 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:46:06 [end_date_ymd] => 2025-04-22 11:46:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:46:06' and `end` < '2025-04-22 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-04-22 11:46:20] Production.INFO: count ==5333 [2025-04-22 11:46:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:46:06 - End Time 2025-04-22 11:46:06 [2025-04-22 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964726', 'tblTempUsageDetail_20' ) start [2025-04-22 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964726', 'tblTempUsageDetail_20' ) end [2025-04-22 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964726', 'tblTempVendorCDR_20' ) start [2025-04-22 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964726', 'tblTempVendorCDR_20' ) end [2025-04-22 11:46:23] Production.INFO: ProcessCDR(1,14964726,1,1,2) [2025-04-22 11:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964726', 'tblTempUsageDetail_20' ) start [2025-04-22 11:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964726', 'tblTempUsageDetail_20' ) end [2025-04-22 11:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:46:28] Production.INFO: ==25901== Releasing lock... [2025-04-22 11:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:46:28] Production.INFO: 68 MB #Memory Used# [2025-04-22 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:47:05 [end_date_ymd] => 2025-04-22 11:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:47:05' and `end` < '2025-04-22 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-04-22 11:47:18] Production.INFO: count ==5332 [2025-04-22 11:47:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:47:05 - End Time 2025-04-22 11:47:05 [2025-04-22 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964731', 'tblTempUsageDetail_20' ) start [2025-04-22 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964731', 'tblTempUsageDetail_20' ) end [2025-04-22 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964731', 'tblTempVendorCDR_20' ) start [2025-04-22 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964731', 'tblTempVendorCDR_20' ) end [2025-04-22 11:47:21] Production.INFO: ProcessCDR(1,14964731,1,1,2) [2025-04-22 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964731', 'tblTempUsageDetail_20' ) start [2025-04-22 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964731', 'tblTempUsageDetail_20' ) end [2025-04-22 11:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:47:27] Production.INFO: ==25972== Releasing lock... [2025-04-22 11:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:47:27] Production.INFO: 68 MB #Memory Used# [2025-04-22 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:48:06 [end_date_ymd] => 2025-04-22 11:48:06 [RateCDR] => 1 ) [2025-04-22 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:48:06' and `end` < '2025-04-22 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:48:20] Production.INFO: count ==5347 [2025-04-22 11:48:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:48:06 - End Time 2025-04-22 11:48:06 [2025-04-22 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964736', 'tblTempUsageDetail_20' ) start [2025-04-22 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964736', 'tblTempUsageDetail_20' ) end [2025-04-22 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964736', 'tblTempVendorCDR_20' ) start [2025-04-22 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964736', 'tblTempVendorCDR_20' ) end [2025-04-22 11:48:23] Production.INFO: ProcessCDR(1,14964736,1,1,2) [2025-04-22 11:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964736', 'tblTempUsageDetail_20' ) start [2025-04-22 11:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964736', 'tblTempUsageDetail_20' ) end [2025-04-22 11:48:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:48:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:48:29] Production.INFO: ==26053== Releasing lock... [2025-04-22 11:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:48:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-22 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:49:05 [end_date_ymd] => 2025-04-22 11:49:05 [RateCDR] => 1 ) [2025-04-22 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:49:05' and `end` < '2025-04-22 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-04-22 11:49:19] Production.INFO: count ==5349 [2025-04-22 11:49:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:49:05 - End Time 2025-04-22 11:49:05 [2025-04-22 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964741', 'tblTempUsageDetail_20' ) start [2025-04-22 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964741', 'tblTempUsageDetail_20' ) end [2025-04-22 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964741', 'tblTempVendorCDR_20' ) start [2025-04-22 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964741', 'tblTempVendorCDR_20' ) end [2025-04-22 11:49:22] Production.INFO: ProcessCDR(1,14964741,1,1,2) [2025-04-22 11:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964741', 'tblTempUsageDetail_20' ) start [2025-04-22 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964741', 'tblTempUsageDetail_20' ) end [2025-04-22 11:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:49:27] Production.INFO: ==26125== Releasing lock... [2025-04-22 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:49:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-22 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:50:06 [end_date_ymd] => 2025-04-22 11:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:50:06' and `end` < '2025-04-22 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-04-22 11:50:20] Production.INFO: count ==5361 [2025-04-22 11:50:23] Production.ERROR: pbx CDR StartTime 2025-04-22 08:50:06 - End Time 2025-04-22 11:50:06 [2025-04-22 11:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964747', 'tblTempUsageDetail_20' ) start [2025-04-22 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964747', 'tblTempUsageDetail_20' ) end [2025-04-22 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964747', 'tblTempVendorCDR_20' ) start [2025-04-22 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964747', 'tblTempVendorCDR_20' ) end [2025-04-22 11:50:23] Production.INFO: ProcessCDR(1,14964747,1,1,2) [2025-04-22 11:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964747', 'tblTempUsageDetail_20' ) start [2025-04-22 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964747', 'tblTempUsageDetail_20' ) end [2025-04-22 11:50:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:50:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:50:29] Production.INFO: ==26203== Releasing lock... [2025-04-22 11:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:50:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-22 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:51:05 [end_date_ymd] => 2025-04-22 11:51:05 [RateCDR] => 1 ) [2025-04-22 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:51:05' and `end` < '2025-04-22 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:51:19] Production.INFO: count ==5450 [2025-04-22 11:51:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:51:05 - End Time 2025-04-22 11:51:05 [2025-04-22 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964752', 'tblTempUsageDetail_20' ) start [2025-04-22 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964752', 'tblTempUsageDetail_20' ) end [2025-04-22 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964752', 'tblTempVendorCDR_20' ) start [2025-04-22 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964752', 'tblTempVendorCDR_20' ) end [2025-04-22 11:51:22] Production.INFO: ProcessCDR(1,14964752,1,1,2) [2025-04-22 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964752', 'tblTempUsageDetail_20' ) start [2025-04-22 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964752', 'tblTempUsageDetail_20' ) end [2025-04-22 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:51:27] Production.INFO: ==26279== Releasing lock... [2025-04-22 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:51:27] Production.INFO: 69 MB #Memory Used# [2025-04-22 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:52:06 [end_date_ymd] => 2025-04-22 11:52:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:52:06' and `end` < '2025-04-22 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-04-22 11:52:20] Production.INFO: count ==5467 [2025-04-22 11:52:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:52:06 - End Time 2025-04-22 11:52:06 [2025-04-22 11:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964757', 'tblTempUsageDetail_20' ) start [2025-04-22 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964757', 'tblTempUsageDetail_20' ) end [2025-04-22 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964757', 'tblTempVendorCDR_20' ) start [2025-04-22 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964757', 'tblTempVendorCDR_20' ) end [2025-04-22 11:52:23] Production.INFO: ProcessCDR(1,14964757,1,1,2) [2025-04-22 11:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964757', 'tblTempUsageDetail_20' ) start [2025-04-22 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964757', 'tblTempUsageDetail_20' ) end [2025-04-22 11:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:52:28] Production.INFO: ==26351== Releasing lock... [2025-04-22 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:52:28] Production.INFO: 69 MB #Memory Used# [2025-04-22 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:53:05 [end_date_ymd] => 2025-04-22 11:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:53:05' and `end` < '2025-04-22 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-04-22 11:53:19] Production.INFO: count ==5480 [2025-04-22 11:53:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:53:05 - End Time 2025-04-22 11:53:05 [2025-04-22 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964762', 'tblTempUsageDetail_20' ) start [2025-04-22 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964762', 'tblTempUsageDetail_20' ) end [2025-04-22 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964762', 'tblTempVendorCDR_20' ) start [2025-04-22 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964762', 'tblTempVendorCDR_20' ) end [2025-04-22 11:53:22] Production.INFO: ProcessCDR(1,14964762,1,1,2) [2025-04-22 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964762', 'tblTempUsageDetail_20' ) start [2025-04-22 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964762', 'tblTempUsageDetail_20' ) end [2025-04-22 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:53:27] Production.INFO: ==26425== Releasing lock... [2025-04-22 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:53:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:54:06 [end_date_ymd] => 2025-04-22 11:54:06 [RateCDR] => 1 ) [2025-04-22 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:54:06' and `end` < '2025-04-22 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:54:20] Production.INFO: count ==5499 [2025-04-22 11:54:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:54:06 - End Time 2025-04-22 11:54:06 [2025-04-22 11:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964767', 'tblTempUsageDetail_20' ) start [2025-04-22 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964767', 'tblTempUsageDetail_20' ) end [2025-04-22 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964767', 'tblTempVendorCDR_20' ) start [2025-04-22 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964767', 'tblTempVendorCDR_20' ) end [2025-04-22 11:54:23] Production.INFO: ProcessCDR(1,14964767,1,1,2) [2025-04-22 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964767', 'tblTempUsageDetail_20' ) start [2025-04-22 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964767', 'tblTempUsageDetail_20' ) end [2025-04-22 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:54:28] Production.INFO: ==26501== Releasing lock... [2025-04-22 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:54:28] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:55:05 [end_date_ymd] => 2025-04-22 11:55:05 [RateCDR] => 1 ) [2025-04-22 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:55:05' and `end` < '2025-04-22 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:55:19] Production.INFO: count ==5514 [2025-04-22 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:55:05 - End Time 2025-04-22 11:55:05 [2025-04-22 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964772', 'tblTempUsageDetail_20' ) start [2025-04-22 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964772', 'tblTempUsageDetail_20' ) end [2025-04-22 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964772', 'tblTempVendorCDR_20' ) start [2025-04-22 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964772', 'tblTempVendorCDR_20' ) end [2025-04-22 11:55:22] Production.INFO: ProcessCDR(1,14964772,1,1,2) [2025-04-22 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964772', 'tblTempUsageDetail_20' ) start [2025-04-22 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964772', 'tblTempUsageDetail_20' ) end [2025-04-22 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:55:27] Production.INFO: ==26613== Releasing lock... [2025-04-22 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:55:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-22 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:56:05 [end_date_ymd] => 2025-04-22 11:56:05 [RateCDR] => 1 ) [2025-04-22 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 08:56:05' and `end` < '2025-04-22 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 11:56:19] Production.INFO: count ==5525 [2025-04-22 11:56:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:56:05 - End Time 2025-04-22 11:56:05 [2025-04-22 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964777', 'tblTempUsageDetail_20' ) start [2025-04-22 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964777', 'tblTempUsageDetail_20' ) end [2025-04-22 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964777', 'tblTempVendorCDR_20' ) start [2025-04-22 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964777', 'tblTempVendorCDR_20' ) end [2025-04-22 11:56:22] Production.INFO: ProcessCDR(1,14964777,1,1,2) [2025-04-22 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964777', 'tblTempUsageDetail_20' ) start [2025-04-22 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964777', 'tblTempUsageDetail_20' ) end [2025-04-22 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:56:28] Production.INFO: ==26689== Releasing lock... [2025-04-22 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:56:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-22 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:57:05 [end_date_ymd] => 2025-04-22 11:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:57:05' and `end` < '2025-04-22 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-04-22 11:57:19] Production.INFO: count ==5532 [2025-04-22 11:57:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:57:05 - End Time 2025-04-22 11:57:05 [2025-04-22 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964782', 'tblTempUsageDetail_20' ) start [2025-04-22 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964782', 'tblTempUsageDetail_20' ) end [2025-04-22 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964782', 'tblTempVendorCDR_20' ) start [2025-04-22 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964782', 'tblTempVendorCDR_20' ) end [2025-04-22 11:57:22] Production.INFO: ProcessCDR(1,14964782,1,1,2) [2025-04-22 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964782', 'tblTempUsageDetail_20' ) start [2025-04-22 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964782', 'tblTempUsageDetail_20' ) end [2025-04-22 11:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:57:28] Production.INFO: ==26760== Releasing lock... [2025-04-22 11:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:57:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-22 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:58:05 [end_date_ymd] => 2025-04-22 11:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:58:05' and `end` < '2025-04-22 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-04-22 11:58:19] Production.INFO: count ==5549 [2025-04-22 11:58:22] Production.ERROR: pbx CDR StartTime 2025-04-22 08:58:05 - End Time 2025-04-22 11:58:05 [2025-04-22 11:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964787', 'tblTempUsageDetail_20' ) start [2025-04-22 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964787', 'tblTempUsageDetail_20' ) end [2025-04-22 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964787', 'tblTempVendorCDR_20' ) start [2025-04-22 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964787', 'tblTempVendorCDR_20' ) end [2025-04-22 11:58:22] Production.INFO: ProcessCDR(1,14964787,1,1,2) [2025-04-22 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964787', 'tblTempUsageDetail_20' ) start [2025-04-22 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964787', 'tblTempUsageDetail_20' ) end [2025-04-22 11:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:58:28] Production.INFO: ==26835== Releasing lock... [2025-04-22 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:58:28] Production.INFO: 69.75 MB #Memory Used# [2025-04-22 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 08:59:05 [end_date_ymd] => 2025-04-22 11:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 08:59:05' and `end` < '2025-04-22 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-04-22 11:59:19] Production.INFO: count ==5571 [2025-04-22 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-22 08:59:05 - End Time 2025-04-22 11:59:05 [2025-04-22 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964792', 'tblTempUsageDetail_20' ) start [2025-04-22 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964792', 'tblTempUsageDetail_20' ) end [2025-04-22 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964792', 'tblTempVendorCDR_20' ) start [2025-04-22 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964792', 'tblTempVendorCDR_20' ) end [2025-04-22 11:59:22] Production.INFO: ProcessCDR(1,14964792,1,1,2) [2025-04-22 11:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 11:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964792', 'tblTempUsageDetail_20' ) start [2025-04-22 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964792', 'tblTempUsageDetail_20' ) end [2025-04-22 11:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 11:59:27] Production.INFO: ==26908== Releasing lock... [2025-04-22 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 11:59:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-22 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:00:06 [end_date_ymd] => 2025-04-22 12:00:06 [RateCDR] => 1 ) [2025-04-22 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:00:06' and `end` < '2025-04-22 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:00:20] Production.INFO: count ==5601 [2025-04-22 12:00:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:00:06 - End Time 2025-04-22 12:00:06 [2025-04-22 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964798', 'tblTempUsageDetail_20' ) start [2025-04-22 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964798', 'tblTempUsageDetail_20' ) end [2025-04-22 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964798', 'tblTempVendorCDR_20' ) start [2025-04-22 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964798', 'tblTempVendorCDR_20' ) end [2025-04-22 12:00:23] Production.INFO: ProcessCDR(1,14964798,1,1,2) [2025-04-22 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964798', 'tblTempUsageDetail_20' ) start [2025-04-22 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964798', 'tblTempUsageDetail_20' ) end [2025-04-22 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:00:28] Production.INFO: ==26984== Releasing lock... [2025-04-22 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:00:28] Production.INFO: 70 MB #Memory Used# [2025-04-22 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:01:04 [end_date_ymd] => 2025-04-22 12:01:04 [RateCDR] => 1 ) [2025-04-22 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:01:04' and `end` < '2025-04-22 12: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-04-22 12:01:18] Production.INFO: count ==5709 [2025-04-22 12:01:21] Production.ERROR: pbx CDR StartTime 2025-04-22 09:01:04 - End Time 2025-04-22 12:01:04 [2025-04-22 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964803', 'tblTempUsageDetail_20' ) start [2025-04-22 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964803', 'tblTempUsageDetail_20' ) end [2025-04-22 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964803', 'tblTempVendorCDR_20' ) start [2025-04-22 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964803', 'tblTempVendorCDR_20' ) end [2025-04-22 12:01:22] Production.INFO: ProcessCDR(1,14964803,1,1,2) [2025-04-22 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964803', 'tblTempUsageDetail_20' ) start [2025-04-22 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964803', 'tblTempUsageDetail_20' ) end [2025-04-22 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:01:27] Production.INFO: ==27075== Releasing lock... [2025-04-22 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:01:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:02:05 [end_date_ymd] => 2025-04-22 12:02:05 [RateCDR] => 1 ) [2025-04-22 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:02:05' and `end` < '2025-04-22 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:02:19] Production.INFO: count ==5724 [2025-04-22 12:02:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:02:05 - End Time 2025-04-22 12:02:05 [2025-04-22 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964808', 'tblTempUsageDetail_20' ) start [2025-04-22 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964808', 'tblTempUsageDetail_20' ) end [2025-04-22 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964808', 'tblTempVendorCDR_20' ) start [2025-04-22 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964808', 'tblTempVendorCDR_20' ) end [2025-04-22 12:02:23] Production.INFO: ProcessCDR(1,14964808,1,1,2) [2025-04-22 12:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964808', 'tblTempUsageDetail_20' ) start [2025-04-22 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964808', 'tblTempUsageDetail_20' ) end [2025-04-22 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:02:28] Production.INFO: ==27151== Releasing lock... [2025-04-22 12:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:02:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:03:05 [end_date_ymd] => 2025-04-22 12:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:03:05' and `end` < '2025-04-22 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-04-22 12:03:19] Production.INFO: count ==5729 [2025-04-22 12:03:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:03:05 - End Time 2025-04-22 12:03:05 [2025-04-22 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964813', 'tblTempUsageDetail_20' ) start [2025-04-22 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964813', 'tblTempUsageDetail_20' ) end [2025-04-22 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964813', 'tblTempVendorCDR_20' ) start [2025-04-22 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964813', 'tblTempVendorCDR_20' ) end [2025-04-22 12:03:22] Production.INFO: ProcessCDR(1,14964813,1,1,2) [2025-04-22 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964813', 'tblTempUsageDetail_20' ) start [2025-04-22 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964813', 'tblTempUsageDetail_20' ) end [2025-04-22 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:03:28] Production.INFO: ==27224== Releasing lock... [2025-04-22 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:03:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:04:05 [end_date_ymd] => 2025-04-22 12:04:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:04:05' and `end` < '2025-04-22 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-04-22 12:04:19] Production.INFO: count ==5752 [2025-04-22 12:04:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:04:05 - End Time 2025-04-22 12:04:05 [2025-04-22 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964818', 'tblTempUsageDetail_20' ) start [2025-04-22 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964818', 'tblTempUsageDetail_20' ) end [2025-04-22 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964818', 'tblTempVendorCDR_20' ) start [2025-04-22 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964818', 'tblTempVendorCDR_20' ) end [2025-04-22 12:04:23] Production.INFO: ProcessCDR(1,14964818,1,1,2) [2025-04-22 12:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964818', 'tblTempUsageDetail_20' ) start [2025-04-22 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964818', 'tblTempUsageDetail_20' ) end [2025-04-22 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:04:28] Production.INFO: ==27297== Releasing lock... [2025-04-22 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:04:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:05:06 [end_date_ymd] => 2025-04-22 12:05:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:05:06' and `end` < '2025-04-22 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-04-22 12:05:20] Production.INFO: count ==5763 [2025-04-22 12:05:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:05:06 - End Time 2025-04-22 12:05:06 [2025-04-22 12:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964823', 'tblTempUsageDetail_20' ) start [2025-04-22 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964823', 'tblTempUsageDetail_20' ) end [2025-04-22 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964823', 'tblTempVendorCDR_20' ) start [2025-04-22 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964823', 'tblTempVendorCDR_20' ) end [2025-04-22 12:05:23] Production.INFO: ProcessCDR(1,14964823,1,1,2) [2025-04-22 12:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964823', 'tblTempUsageDetail_20' ) start [2025-04-22 12:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964823', 'tblTempUsageDetail_20' ) end [2025-04-22 12:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:05:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:05:29] Production.INFO: ==27366== Releasing lock... [2025-04-22 12:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:05:29] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:06:05 [end_date_ymd] => 2025-04-22 12:06:05 [RateCDR] => 1 ) [2025-04-22 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:06:05' and `end` < '2025-04-22 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:06:19] Production.INFO: count ==5768 [2025-04-22 12:06:21] Production.ERROR: pbx CDR StartTime 2025-04-22 09:06:05 - End Time 2025-04-22 12:06:05 [2025-04-22 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964828', 'tblTempUsageDetail_20' ) start [2025-04-22 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964828', 'tblTempUsageDetail_20' ) end [2025-04-22 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964828', 'tblTempVendorCDR_20' ) start [2025-04-22 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964828', 'tblTempVendorCDR_20' ) end [2025-04-22 12:06:22] Production.INFO: ProcessCDR(1,14964828,1,1,2) [2025-04-22 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964828', 'tblTempUsageDetail_20' ) start [2025-04-22 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964828', 'tblTempUsageDetail_20' ) end [2025-04-22 12:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:06:28] Production.INFO: ==27440== Releasing lock... [2025-04-22 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:06:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:07:05 [end_date_ymd] => 2025-04-22 12:07:05 [RateCDR] => 1 ) [2025-04-22 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:07:05' and `end` < '2025-04-22 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:07:19] Production.INFO: count ==5774 [2025-04-22 12:07:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:07:05 - End Time 2025-04-22 12:07:05 [2025-04-22 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964833', 'tblTempUsageDetail_20' ) start [2025-04-22 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964833', 'tblTempUsageDetail_20' ) end [2025-04-22 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964833', 'tblTempVendorCDR_20' ) start [2025-04-22 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964833', 'tblTempVendorCDR_20' ) end [2025-04-22 12:07:23] Production.INFO: ProcessCDR(1,14964833,1,1,2) [2025-04-22 12:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964833', 'tblTempUsageDetail_20' ) start [2025-04-22 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964833', 'tblTempUsageDetail_20' ) end [2025-04-22 12:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:07:28] Production.INFO: ==27514== Releasing lock... [2025-04-22 12:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:07:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:08:05 [end_date_ymd] => 2025-04-22 12:08:05 [RateCDR] => 1 ) [2025-04-22 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:08:05' and `end` < '2025-04-22 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:08:19] Production.INFO: count ==5780 [2025-04-22 12:08:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:08:05 - End Time 2025-04-22 12:08:05 [2025-04-22 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964838', 'tblTempUsageDetail_20' ) start [2025-04-22 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964838', 'tblTempUsageDetail_20' ) end [2025-04-22 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964838', 'tblTempVendorCDR_20' ) start [2025-04-22 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964838', 'tblTempVendorCDR_20' ) end [2025-04-22 12:08:23] Production.INFO: ProcessCDR(1,14964838,1,1,2) [2025-04-22 12:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964838', 'tblTempUsageDetail_20' ) start [2025-04-22 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964838', 'tblTempUsageDetail_20' ) end [2025-04-22 12:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:08:28] Production.INFO: ==27587== Releasing lock... [2025-04-22 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:08:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-22 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:09:06 [end_date_ymd] => 2025-04-22 12:09:06 [RateCDR] => 1 ) [2025-04-22 12: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-04-22 09:09:06' and `end` < '2025-04-22 12: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-04-22 12:09:20] Production.INFO: count ==5779 [2025-04-22 12:09:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:09:06 - End Time 2025-04-22 12:09:06 [2025-04-22 12:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964843', 'tblTempUsageDetail_20' ) start [2025-04-22 12:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964843', 'tblTempUsageDetail_20' ) end [2025-04-22 12:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964843', 'tblTempVendorCDR_20' ) start [2025-04-22 12:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964843', 'tblTempVendorCDR_20' ) end [2025-04-22 12:09:24] Production.INFO: ProcessCDR(1,14964843,1,1,2) [2025-04-22 12:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964843', 'tblTempUsageDetail_20' ) start [2025-04-22 12:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964843', 'tblTempUsageDetail_20' ) end [2025-04-22 12:09:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:09:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:09:29] Production.INFO: ==27659== Releasing lock... [2025-04-22 12:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:09:29] Production.INFO: 71.5 MB #Memory Used# [2025-04-22 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:10:06 [end_date_ymd] => 2025-04-22 12:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:10:06' and `end` < '2025-04-22 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-04-22 12:10:20] Production.INFO: count ==5804 [2025-04-22 12:10:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:10:06 - End Time 2025-04-22 12:10:06 [2025-04-22 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964849', 'tblTempUsageDetail_20' ) start [2025-04-22 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964849', 'tblTempUsageDetail_20' ) end [2025-04-22 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964849', 'tblTempVendorCDR_20' ) start [2025-04-22 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964849', 'tblTempVendorCDR_20' ) end [2025-04-22 12:10:24] Production.INFO: ProcessCDR(1,14964849,1,1,2) [2025-04-22 12:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964849', 'tblTempUsageDetail_20' ) start [2025-04-22 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964849', 'tblTempUsageDetail_20' ) end [2025-04-22 12:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:10:29] Production.INFO: ==27774== Releasing lock... [2025-04-22 12:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:10:29] Production.INFO: 71.5 MB #Memory Used# [2025-04-22 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:11:05 [end_date_ymd] => 2025-04-22 12:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:11:05' and `end` < '2025-04-22 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-04-22 12:11:19] Production.INFO: count ==5861 [2025-04-22 12:11:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:11:05 - End Time 2025-04-22 12:11:05 [2025-04-22 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964854', 'tblTempUsageDetail_20' ) start [2025-04-22 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964854', 'tblTempUsageDetail_20' ) end [2025-04-22 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964854', 'tblTempVendorCDR_20' ) start [2025-04-22 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964854', 'tblTempVendorCDR_20' ) end [2025-04-22 12:11:23] Production.INFO: ProcessCDR(1,14964854,1,1,2) [2025-04-22 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964854', 'tblTempUsageDetail_20' ) start [2025-04-22 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964854', 'tblTempUsageDetail_20' ) end [2025-04-22 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:11:28] Production.INFO: ==27850== Releasing lock... [2025-04-22 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:11:28] Production.INFO: 72 MB #Memory Used# [2025-04-22 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:12:05 [end_date_ymd] => 2025-04-22 12:12:05 [RateCDR] => 1 ) [2025-04-22 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:12:05' and `end` < '2025-04-22 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:12:19] Production.INFO: count ==5912 [2025-04-22 12:12:21] Production.ERROR: pbx CDR StartTime 2025-04-22 09:12:05 - End Time 2025-04-22 12:12:05 [2025-04-22 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964859', 'tblTempUsageDetail_20' ) start [2025-04-22 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964859', 'tblTempUsageDetail_20' ) end [2025-04-22 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964859', 'tblTempVendorCDR_20' ) start [2025-04-22 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964859', 'tblTempVendorCDR_20' ) end [2025-04-22 12:12:22] Production.INFO: ProcessCDR(1,14964859,1,1,2) [2025-04-22 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964859', 'tblTempUsageDetail_20' ) start [2025-04-22 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964859', 'tblTempUsageDetail_20' ) end [2025-04-22 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:12:27] Production.INFO: ==27927== Releasing lock... [2025-04-22 12:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:12:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:13:05 [end_date_ymd] => 2025-04-22 12:13:05 [RateCDR] => 1 ) [2025-04-22 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:13:05' and `end` < '2025-04-22 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:13:19] Production.INFO: count ==5957 [2025-04-22 12:13:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:13:05 - End Time 2025-04-22 12:13:05 [2025-04-22 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964864', 'tblTempUsageDetail_20' ) start [2025-04-22 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964864', 'tblTempUsageDetail_20' ) end [2025-04-22 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964864', 'tblTempVendorCDR_20' ) start [2025-04-22 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964864', 'tblTempVendorCDR_20' ) end [2025-04-22 12:13:23] Production.INFO: ProcessCDR(1,14964864,1,1,2) [2025-04-22 12:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964864', 'tblTempUsageDetail_20' ) start [2025-04-22 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964864', 'tblTempUsageDetail_20' ) end [2025-04-22 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:13:28] Production.INFO: ==28000== Releasing lock... [2025-04-22 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:13:28] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:14:05 [end_date_ymd] => 2025-04-22 12:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:14:05' and `end` < '2025-04-22 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-04-22 12:14:19] Production.INFO: count ==5958 [2025-04-22 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:14:05 - End Time 2025-04-22 12:14:05 [2025-04-22 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964869', 'tblTempUsageDetail_20' ) start [2025-04-22 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964869', 'tblTempUsageDetail_20' ) end [2025-04-22 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964869', 'tblTempVendorCDR_20' ) start [2025-04-22 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964869', 'tblTempVendorCDR_20' ) end [2025-04-22 12:14:23] Production.INFO: ProcessCDR(1,14964869,1,1,2) [2025-04-22 12:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964869', 'tblTempUsageDetail_20' ) start [2025-04-22 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964869', 'tblTempUsageDetail_20' ) end [2025-04-22 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:14:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:14:29] Production.INFO: ==28082== Releasing lock... [2025-04-22 12:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:14:29] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:15:06 [end_date_ymd] => 2025-04-22 12:15:06 [RateCDR] => 1 ) [2025-04-22 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:15:06' and `end` < '2025-04-22 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:15:20] Production.INFO: count ==5972 [2025-04-22 12:15:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:15:06 - End Time 2025-04-22 12:15:06 [2025-04-22 12:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964874', 'tblTempUsageDetail_20' ) start [2025-04-22 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964874', 'tblTempUsageDetail_20' ) end [2025-04-22 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964874', 'tblTempVendorCDR_20' ) start [2025-04-22 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964874', 'tblTempVendorCDR_20' ) end [2025-04-22 12:15:23] Production.INFO: ProcessCDR(1,14964874,1,1,2) [2025-04-22 12:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964874', 'tblTempUsageDetail_20' ) start [2025-04-22 12:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964874', 'tblTempUsageDetail_20' ) end [2025-04-22 12:15:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:15:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:15:29] Production.INFO: ==28164== Releasing lock... [2025-04-22 12:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:15:29] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:16:05 [end_date_ymd] => 2025-04-22 12:16:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:16:05' and `end` < '2025-04-22 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-04-22 12:16:19] Production.INFO: count ==5984 [2025-04-22 12:16:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:16:05 - End Time 2025-04-22 12:16:05 [2025-04-22 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964879', 'tblTempUsageDetail_20' ) start [2025-04-22 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964879', 'tblTempUsageDetail_20' ) end [2025-04-22 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964879', 'tblTempVendorCDR_20' ) start [2025-04-22 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964879', 'tblTempVendorCDR_20' ) end [2025-04-22 12:16:23] Production.INFO: ProcessCDR(1,14964879,1,1,2) [2025-04-22 12:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964879', 'tblTempUsageDetail_20' ) start [2025-04-22 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964879', 'tblTempUsageDetail_20' ) end [2025-04-22 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:16:28] Production.INFO: ==28243== Releasing lock... [2025-04-22 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:16:28] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:17:05 [end_date_ymd] => 2025-04-22 12:17:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:17:05' and `end` < '2025-04-22 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-04-22 12:17:19] Production.INFO: count ==6008 [2025-04-22 12:17:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:17:05 - End Time 2025-04-22 12:17:05 [2025-04-22 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964884', 'tblTempUsageDetail_20' ) start [2025-04-22 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964884', 'tblTempUsageDetail_20' ) end [2025-04-22 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964884', 'tblTempVendorCDR_20' ) start [2025-04-22 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964884', 'tblTempVendorCDR_20' ) end [2025-04-22 12:17:23] Production.INFO: ProcessCDR(1,14964884,1,1,2) [2025-04-22 12:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964884', 'tblTempUsageDetail_20' ) start [2025-04-22 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964884', 'tblTempUsageDetail_20' ) end [2025-04-22 12:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:17:28] Production.INFO: ==28319== Releasing lock... [2025-04-22 12:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:17:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:18:05 [end_date_ymd] => 2025-04-22 12:18:05 [RateCDR] => 1 ) [2025-04-22 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:18:05' and `end` < '2025-04-22 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:18:19] Production.INFO: count ==6019 [2025-04-22 12:18:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:18:05 - End Time 2025-04-22 12:18:05 [2025-04-22 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964889', 'tblTempUsageDetail_20' ) start [2025-04-22 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964889', 'tblTempUsageDetail_20' ) end [2025-04-22 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964889', 'tblTempVendorCDR_20' ) start [2025-04-22 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964889', 'tblTempVendorCDR_20' ) end [2025-04-22 12:18:23] Production.INFO: ProcessCDR(1,14964889,1,1,2) [2025-04-22 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964889', 'tblTempUsageDetail_20' ) start [2025-04-22 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964889', 'tblTempUsageDetail_20' ) end [2025-04-22 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:18:28] Production.INFO: ==28395== Releasing lock... [2025-04-22 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:18:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:19:05 [end_date_ymd] => 2025-04-22 12:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:19:05' and `end` < '2025-04-22 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-04-22 12:19:19] Production.INFO: count ==6012 [2025-04-22 12:19:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:19:05 - End Time 2025-04-22 12:19:05 [2025-04-22 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964894', 'tblTempUsageDetail_20' ) start [2025-04-22 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964894', 'tblTempUsageDetail_20' ) end [2025-04-22 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964894', 'tblTempVendorCDR_20' ) start [2025-04-22 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964894', 'tblTempVendorCDR_20' ) end [2025-04-22 12:19:23] Production.INFO: ProcessCDR(1,14964894,1,1,2) [2025-04-22 12:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964894', 'tblTempUsageDetail_20' ) start [2025-04-22 12:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964894', 'tblTempUsageDetail_20' ) end [2025-04-22 12:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:19:28] Production.INFO: ==28468== Releasing lock... [2025-04-22 12:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:19:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:20:06 [end_date_ymd] => 2025-04-22 12:20:06 [RateCDR] => 1 ) [2025-04-22 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:20:06' and `end` < '2025-04-22 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:20:20] Production.INFO: count ==6019 [2025-04-22 12:20:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:20:06 - End Time 2025-04-22 12:20:06 [2025-04-22 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964900', 'tblTempUsageDetail_20' ) start [2025-04-22 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964900', 'tblTempUsageDetail_20' ) end [2025-04-22 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964900', 'tblTempVendorCDR_20' ) start [2025-04-22 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964900', 'tblTempVendorCDR_20' ) end [2025-04-22 12:20:24] Production.INFO: ProcessCDR(1,14964900,1,1,2) [2025-04-22 12:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964900', 'tblTempUsageDetail_20' ) start [2025-04-22 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964900', 'tblTempUsageDetail_20' ) end [2025-04-22 12:20:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:20:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:20:29] Production.INFO: ==28543== Releasing lock... [2025-04-22 12:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:20:29] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:21:05 [end_date_ymd] => 2025-04-22 12:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:21:05' and `end` < '2025-04-22 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-04-22 12:21:20] Production.INFO: count ==6051 [2025-04-22 12:21:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:21:05 - End Time 2025-04-22 12:21:05 [2025-04-22 12:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964905', 'tblTempUsageDetail_20' ) start [2025-04-22 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964905', 'tblTempUsageDetail_20' ) end [2025-04-22 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964905', 'tblTempVendorCDR_20' ) start [2025-04-22 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964905', 'tblTempVendorCDR_20' ) end [2025-04-22 12:21:24] Production.INFO: ProcessCDR(1,14964905,1,1,2) [2025-04-22 12:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964905', 'tblTempUsageDetail_20' ) start [2025-04-22 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964905', 'tblTempUsageDetail_20' ) end [2025-04-22 12:21:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:21:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:21:29] Production.INFO: ==28620== Releasing lock... [2025-04-22 12:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:21:29] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:22:05 [end_date_ymd] => 2025-04-22 12:22:05 [RateCDR] => 1 ) [2025-04-22 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:22:05' and `end` < '2025-04-22 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:22:19] Production.INFO: count ==6025 [2025-04-22 12:22:21] Production.ERROR: pbx CDR StartTime 2025-04-22 09:22:05 - End Time 2025-04-22 12:22:05 [2025-04-22 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964910', 'tblTempUsageDetail_20' ) start [2025-04-22 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964910', 'tblTempUsageDetail_20' ) end [2025-04-22 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964910', 'tblTempVendorCDR_20' ) start [2025-04-22 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964910', 'tblTempVendorCDR_20' ) end [2025-04-22 12:22:22] Production.INFO: ProcessCDR(1,14964910,1,1,2) [2025-04-22 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964910', 'tblTempUsageDetail_20' ) start [2025-04-22 12:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964910', 'tblTempUsageDetail_20' ) end [2025-04-22 12:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:22:28] Production.INFO: ==28697== Releasing lock... [2025-04-22 12:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:22:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:23:05 [end_date_ymd] => 2025-04-22 12:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:23:05' and `end` < '2025-04-22 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-04-22 12:23:19] Production.INFO: count ==6000 [2025-04-22 12:23:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:23:05 - End Time 2025-04-22 12:23:05 [2025-04-22 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964915', 'tblTempUsageDetail_20' ) start [2025-04-22 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964915', 'tblTempUsageDetail_20' ) end [2025-04-22 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964915', 'tblTempVendorCDR_20' ) start [2025-04-22 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964915', 'tblTempVendorCDR_20' ) end [2025-04-22 12:23:22] Production.INFO: ProcessCDR(1,14964915,1,1,2) [2025-04-22 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964915', 'tblTempUsageDetail_20' ) start [2025-04-22 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964915', 'tblTempUsageDetail_20' ) end [2025-04-22 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:23:28] Production.INFO: ==28770== Releasing lock... [2025-04-22 12:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:23:28] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:24:05 [end_date_ymd] => 2025-04-22 12:24:05 [RateCDR] => 1 ) [2025-04-22 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:24:05' and `end` < '2025-04-22 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:24:19] Production.INFO: count ==5984 [2025-04-22 12:24:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:24:05 - End Time 2025-04-22 12:24:05 [2025-04-22 12:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964920', 'tblTempUsageDetail_20' ) start [2025-04-22 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964920', 'tblTempUsageDetail_20' ) end [2025-04-22 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964920', 'tblTempVendorCDR_20' ) start [2025-04-22 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964920', 'tblTempVendorCDR_20' ) end [2025-04-22 12:24:22] Production.INFO: ProcessCDR(1,14964920,1,1,2) [2025-04-22 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964920', 'tblTempUsageDetail_20' ) start [2025-04-22 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964920', 'tblTempUsageDetail_20' ) end [2025-04-22 12:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:24:28] Production.INFO: ==28841== Releasing lock... [2025-04-22 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:24:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:25:05 [end_date_ymd] => 2025-04-22 12:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:25:05' and `end` < '2025-04-22 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-04-22 12:25:20] Production.INFO: count ==5977 [2025-04-22 12:25:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:25:05 - End Time 2025-04-22 12:25:05 [2025-04-22 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964925', 'tblTempUsageDetail_20' ) start [2025-04-22 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964925', 'tblTempUsageDetail_20' ) end [2025-04-22 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964925', 'tblTempVendorCDR_20' ) start [2025-04-22 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964925', 'tblTempVendorCDR_20' ) end [2025-04-22 12:25:23] Production.INFO: ProcessCDR(1,14964925,1,1,2) [2025-04-22 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964925', 'tblTempUsageDetail_20' ) start [2025-04-22 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964925', 'tblTempUsageDetail_20' ) end [2025-04-22 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:25:28] Production.INFO: ==28914== Releasing lock... [2025-04-22 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:25:28] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:26:05 [end_date_ymd] => 2025-04-22 12:26:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:26:05' and `end` < '2025-04-22 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-04-22 12:26:19] Production.INFO: count ==5978 [2025-04-22 12:26:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:26:05 - End Time 2025-04-22 12:26:05 [2025-04-22 12:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964930', 'tblTempUsageDetail_20' ) start [2025-04-22 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964930', 'tblTempUsageDetail_20' ) end [2025-04-22 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964930', 'tblTempVendorCDR_20' ) start [2025-04-22 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964930', 'tblTempVendorCDR_20' ) end [2025-04-22 12:26:22] Production.INFO: ProcessCDR(1,14964930,1,1,2) [2025-04-22 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964930', 'tblTempUsageDetail_20' ) start [2025-04-22 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964930', 'tblTempUsageDetail_20' ) end [2025-04-22 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:26:27] Production.INFO: ==29031== Releasing lock... [2025-04-22 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:26:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:27:05 [end_date_ymd] => 2025-04-22 12:27:05 [RateCDR] => 1 ) [2025-04-22 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:27:05' and `end` < '2025-04-22 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:27:21] Production.INFO: count ==6018 [2025-04-22 12:27:24] Production.ERROR: pbx CDR StartTime 2025-04-22 09:27:05 - End Time 2025-04-22 12:27:05 [2025-04-22 12:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964935', 'tblTempUsageDetail_20' ) start [2025-04-22 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964935', 'tblTempUsageDetail_20' ) end [2025-04-22 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964935', 'tblTempVendorCDR_20' ) start [2025-04-22 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964935', 'tblTempVendorCDR_20' ) end [2025-04-22 12:27:25] Production.INFO: ProcessCDR(1,14964935,1,1,2) [2025-04-22 12:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964935', 'tblTempUsageDetail_20' ) start [2025-04-22 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964935', 'tblTempUsageDetail_20' ) end [2025-04-22 12:27:30] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:27:30] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:27:30] Production.INFO: ==29104== Releasing lock... [2025-04-22 12:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:27:30] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:28:05 [end_date_ymd] => 2025-04-22 12:28:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:28:05' and `end` < '2025-04-22 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-04-22 12:28:19] Production.INFO: count ==5999 [2025-04-22 12:28:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:28:05 - End Time 2025-04-22 12:28:05 [2025-04-22 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964940', 'tblTempUsageDetail_20' ) start [2025-04-22 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964940', 'tblTempUsageDetail_20' ) end [2025-04-22 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964940', 'tblTempVendorCDR_20' ) start [2025-04-22 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964940', 'tblTempVendorCDR_20' ) end [2025-04-22 12:28:22] Production.INFO: ProcessCDR(1,14964940,1,1,2) [2025-04-22 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964940', 'tblTempUsageDetail_20' ) start [2025-04-22 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964940', 'tblTempUsageDetail_20' ) end [2025-04-22 12:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:28:28] Production.INFO: ==29173== Releasing lock... [2025-04-22 12:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:28:28] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:29:05 [end_date_ymd] => 2025-04-22 12:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:29:05' and `end` < '2025-04-22 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:29:20] Production.INFO: count ==5995 [2025-04-22 12:29:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:29:05 - End Time 2025-04-22 12:29:05 [2025-04-22 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964945', 'tblTempUsageDetail_20' ) start [2025-04-22 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964945', 'tblTempUsageDetail_20' ) end [2025-04-22 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964945', 'tblTempVendorCDR_20' ) start [2025-04-22 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964945', 'tblTempVendorCDR_20' ) end [2025-04-22 12:29:23] Production.INFO: ProcessCDR(1,14964945,1,1,2) [2025-04-22 12:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964945', 'tblTempUsageDetail_20' ) start [2025-04-22 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964945', 'tblTempUsageDetail_20' ) end [2025-04-22 12:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:29:28] Production.INFO: ==29253== Releasing lock... [2025-04-22 12:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:29:28] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:30:06 [end_date_ymd] => 2025-04-22 12:30:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:30:06' and `end` < '2025-04-22 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-04-22 12:30:20] Production.INFO: count ==5982 [2025-04-22 12:30:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:30:06 - End Time 2025-04-22 12:30:06 [2025-04-22 12:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964951', 'tblTempUsageDetail_20' ) start [2025-04-22 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964951', 'tblTempUsageDetail_20' ) end [2025-04-22 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964951', 'tblTempVendorCDR_20' ) start [2025-04-22 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964951', 'tblTempVendorCDR_20' ) end [2025-04-22 12:30:24] Production.INFO: ProcessCDR(1,14964951,1,1,2) [2025-04-22 12:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964951', 'tblTempUsageDetail_20' ) start [2025-04-22 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964951', 'tblTempUsageDetail_20' ) end [2025-04-22 12:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:30:29] Production.INFO: ==29328== Releasing lock... [2025-04-22 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:30:29] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:31:05 [end_date_ymd] => 2025-04-22 12:31:05 [RateCDR] => 1 ) [2025-04-22 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:31:05' and `end` < '2025-04-22 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:31:19] Production.INFO: count ==5977 [2025-04-22 12:31:21] Production.ERROR: pbx CDR StartTime 2025-04-22 09:31:05 - End Time 2025-04-22 12:31:05 [2025-04-22 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964956', 'tblTempUsageDetail_20' ) start [2025-04-22 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964956', 'tblTempUsageDetail_20' ) end [2025-04-22 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964956', 'tblTempVendorCDR_20' ) start [2025-04-22 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964956', 'tblTempVendorCDR_20' ) end [2025-04-22 12:31:22] Production.INFO: ProcessCDR(1,14964956,1,1,2) [2025-04-22 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964956', 'tblTempUsageDetail_20' ) start [2025-04-22 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964956', 'tblTempUsageDetail_20' ) end [2025-04-22 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:31:27] Production.INFO: ==29406== Releasing lock... [2025-04-22 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:31:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:32:06 [end_date_ymd] => 2025-04-22 12:32:06 [RateCDR] => 1 ) [2025-04-22 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:32:06' and `end` < '2025-04-22 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:32:20] Production.INFO: count ==5966 [2025-04-22 12:32:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:32:06 - End Time 2025-04-22 12:32:06 [2025-04-22 12:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964961', 'tblTempUsageDetail_20' ) start [2025-04-22 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964961', 'tblTempUsageDetail_20' ) end [2025-04-22 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964961', 'tblTempVendorCDR_20' ) start [2025-04-22 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964961', 'tblTempVendorCDR_20' ) end [2025-04-22 12:32:23] Production.INFO: ProcessCDR(1,14964961,1,1,2) [2025-04-22 12:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964961', 'tblTempUsageDetail_20' ) start [2025-04-22 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964961', 'tblTempUsageDetail_20' ) end [2025-04-22 12:32:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:32:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:32:29] Production.INFO: ==29481== Releasing lock... [2025-04-22 12:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:32:29] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:33:05 [end_date_ymd] => 2025-04-22 12:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:33:05' and `end` < '2025-04-22 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-04-22 12:33:20] Production.INFO: count ==5968 [2025-04-22 12:33:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:33:05 - End Time 2025-04-22 12:33:05 [2025-04-22 12:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964966', 'tblTempUsageDetail_20' ) start [2025-04-22 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964966', 'tblTempUsageDetail_20' ) end [2025-04-22 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964966', 'tblTempVendorCDR_20' ) start [2025-04-22 12:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964966', 'tblTempVendorCDR_20' ) end [2025-04-22 12:33:24] Production.INFO: ProcessCDR(1,14964966,1,1,2) [2025-04-22 12:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964966', 'tblTempUsageDetail_20' ) start [2025-04-22 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964966', 'tblTempUsageDetail_20' ) end [2025-04-22 12:33:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:33:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:33:29] Production.INFO: ==29560== Releasing lock... [2025-04-22 12:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:33:30] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:34:06 [end_date_ymd] => 2025-04-22 12:34:06 [RateCDR] => 1 ) [2025-04-22 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:34:06' and `end` < '2025-04-22 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:34:20] Production.INFO: count ==5965 [2025-04-22 12:34:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:34:06 - End Time 2025-04-22 12:34:06 [2025-04-22 12:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964971', 'tblTempUsageDetail_20' ) start [2025-04-22 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964971', 'tblTempUsageDetail_20' ) end [2025-04-22 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964971', 'tblTempVendorCDR_20' ) start [2025-04-22 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964971', 'tblTempVendorCDR_20' ) end [2025-04-22 12:34:23] Production.INFO: ProcessCDR(1,14964971,1,1,2) [2025-04-22 12:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964971', 'tblTempUsageDetail_20' ) start [2025-04-22 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964971', 'tblTempUsageDetail_20' ) end [2025-04-22 12:34:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:34:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:34:29] Production.INFO: ==29632== Releasing lock... [2025-04-22 12:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:34:29] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:35:05 [end_date_ymd] => 2025-04-22 12:35:05 [RateCDR] => 1 ) [2025-04-22 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:35:05' and `end` < '2025-04-22 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:35:19] Production.INFO: count ==5943 [2025-04-22 12:35:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:35:05 - End Time 2025-04-22 12:35:05 [2025-04-22 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964976', 'tblTempUsageDetail_20' ) start [2025-04-22 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964976', 'tblTempUsageDetail_20' ) end [2025-04-22 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964976', 'tblTempVendorCDR_20' ) start [2025-04-22 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964976', 'tblTempVendorCDR_20' ) end [2025-04-22 12:35:22] Production.INFO: ProcessCDR(1,14964976,1,1,2) [2025-04-22 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964976', 'tblTempUsageDetail_20' ) start [2025-04-22 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964976', 'tblTempUsageDetail_20' ) end [2025-04-22 12:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:35:28] Production.INFO: ==29705== Releasing lock... [2025-04-22 12:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:35:28] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:36:06 [end_date_ymd] => 2025-04-22 12:36:06 [RateCDR] => 1 ) [2025-04-22 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:36:06' and `end` < '2025-04-22 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:36:20] Production.INFO: count ==5951 [2025-04-22 12:36:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:36:06 - End Time 2025-04-22 12:36:06 [2025-04-22 12:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964981', 'tblTempUsageDetail_20' ) start [2025-04-22 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964981', 'tblTempUsageDetail_20' ) end [2025-04-22 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964981', 'tblTempVendorCDR_20' ) start [2025-04-22 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964981', 'tblTempVendorCDR_20' ) end [2025-04-22 12:36:24] Production.INFO: ProcessCDR(1,14964981,1,1,2) [2025-04-22 12:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964981', 'tblTempUsageDetail_20' ) start [2025-04-22 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964981', 'tblTempUsageDetail_20' ) end [2025-04-22 12:36:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:36:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:36:29] Production.INFO: ==29777== Releasing lock... [2025-04-22 12:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:36:29] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:37:05 [end_date_ymd] => 2025-04-22 12:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:37:05' and `end` < '2025-04-22 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:37:20] Production.INFO: count ==5954 [2025-04-22 12:37:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:37:05 - End Time 2025-04-22 12:37:05 [2025-04-22 12:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964986', 'tblTempUsageDetail_20' ) start [2025-04-22 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964986', 'tblTempUsageDetail_20' ) end [2025-04-22 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964986', 'tblTempVendorCDR_20' ) start [2025-04-22 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964986', 'tblTempVendorCDR_20' ) end [2025-04-22 12:37:24] Production.INFO: ProcessCDR(1,14964986,1,1,2) [2025-04-22 12:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964986', 'tblTempUsageDetail_20' ) start [2025-04-22 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964986', 'tblTempUsageDetail_20' ) end [2025-04-22 12:37:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:37:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:37:29] Production.INFO: ==29855== Releasing lock... [2025-04-22 12:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:37:29] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:38:05 [end_date_ymd] => 2025-04-22 12:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:38:05' and `end` < '2025-04-22 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-04-22 12:38:19] Production.INFO: count ==5975 [2025-04-22 12:38:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:38:05 - End Time 2025-04-22 12:38:05 [2025-04-22 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964991', 'tblTempUsageDetail_20' ) start [2025-04-22 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964991', 'tblTempUsageDetail_20' ) end [2025-04-22 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964991', 'tblTempVendorCDR_20' ) start [2025-04-22 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964991', 'tblTempVendorCDR_20' ) end [2025-04-22 12:38:23] Production.INFO: ProcessCDR(1,14964991,1,1,2) [2025-04-22 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964991', 'tblTempUsageDetail_20' ) start [2025-04-22 12:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964991', 'tblTempUsageDetail_20' ) end [2025-04-22 12:38:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:38:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:38:29] Production.INFO: ==29930== Releasing lock... [2025-04-22 12:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:38:29] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:39:04 [end_date_ymd] => 2025-04-22 12:39:04 [RateCDR] => 1 ) [2025-04-22 12: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-04-22 09:39:04' and `end` < '2025-04-22 12: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-04-22 12:39:18] Production.INFO: count ==5977 [2025-04-22 12:39:21] Production.ERROR: pbx CDR StartTime 2025-04-22 09:39:04 - End Time 2025-04-22 12:39:04 [2025-04-22 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964996', 'tblTempUsageDetail_20' ) start [2025-04-22 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14964996', 'tblTempUsageDetail_20' ) end [2025-04-22 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964996', 'tblTempVendorCDR_20' ) start [2025-04-22 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14964996', 'tblTempVendorCDR_20' ) end [2025-04-22 12:39:22] Production.INFO: ProcessCDR(1,14964996,1,1,2) [2025-04-22 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14964996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14964996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14964996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14964996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964996', 'tblTempUsageDetail_20' ) start [2025-04-22 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14964996', 'tblTempUsageDetail_20' ) end [2025-04-22 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:39:27] Production.INFO: ==30000== Releasing lock... [2025-04-22 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:39:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:40:06 [end_date_ymd] => 2025-04-22 12:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:40:06' and `end` < '2025-04-22 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-04-22 12:40:20] Production.INFO: count ==5974 [2025-04-22 12:40:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:40:06 - End Time 2025-04-22 12:40:06 [2025-04-22 12:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965002', 'tblTempUsageDetail_20' ) start [2025-04-22 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965002', 'tblTempUsageDetail_20' ) end [2025-04-22 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965002', 'tblTempVendorCDR_20' ) start [2025-04-22 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965002', 'tblTempVendorCDR_20' ) end [2025-04-22 12:40:24] Production.INFO: ProcessCDR(1,14965002,1,1,2) [2025-04-22 12:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965002', 'tblTempUsageDetail_20' ) start [2025-04-22 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965002', 'tblTempUsageDetail_20' ) end [2025-04-22 12:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:40:29] Production.INFO: ==30078== Releasing lock... [2025-04-22 12:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:40:29] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:41:05 [end_date_ymd] => 2025-04-22 12:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:41:05' and `end` < '2025-04-22 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-04-22 12:41:19] Production.INFO: count ==6022 [2025-04-22 12:41:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:41:05 - End Time 2025-04-22 12:41:05 [2025-04-22 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965007', 'tblTempUsageDetail_20' ) start [2025-04-22 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965007', 'tblTempUsageDetail_20' ) end [2025-04-22 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965007', 'tblTempVendorCDR_20' ) start [2025-04-22 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965007', 'tblTempVendorCDR_20' ) end [2025-04-22 12:41:22] Production.INFO: ProcessCDR(1,14965007,1,1,2) [2025-04-22 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965007', 'tblTempUsageDetail_20' ) start [2025-04-22 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965007', 'tblTempUsageDetail_20' ) end [2025-04-22 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:41:28] Production.INFO: ==30190== Releasing lock... [2025-04-22 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:41:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:42:06 [end_date_ymd] => 2025-04-22 12:42:06 [RateCDR] => 1 ) [2025-04-22 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:42:06' and `end` < '2025-04-22 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:42:20] Production.INFO: count ==6018 [2025-04-22 12:42:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:42:06 - End Time 2025-04-22 12:42:06 [2025-04-22 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965012', 'tblTempUsageDetail_20' ) start [2025-04-22 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965012', 'tblTempUsageDetail_20' ) end [2025-04-22 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965012', 'tblTempVendorCDR_20' ) start [2025-04-22 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965012', 'tblTempVendorCDR_20' ) end [2025-04-22 12:42:23] Production.INFO: ProcessCDR(1,14965012,1,1,2) [2025-04-22 12:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965012', 'tblTempUsageDetail_20' ) start [2025-04-22 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965012', 'tblTempUsageDetail_20' ) end [2025-04-22 12:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:42:28] Production.INFO: ==30268== Releasing lock... [2025-04-22 12:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:42:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:43:05 [end_date_ymd] => 2025-04-22 12:43:05 [RateCDR] => 1 ) [2025-04-22 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:43:05' and `end` < '2025-04-22 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:43:19] Production.INFO: count ==6025 [2025-04-22 12:43:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:43:05 - End Time 2025-04-22 12:43:05 [2025-04-22 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965017', 'tblTempUsageDetail_20' ) start [2025-04-22 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965017', 'tblTempUsageDetail_20' ) end [2025-04-22 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965017', 'tblTempVendorCDR_20' ) start [2025-04-22 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965017', 'tblTempVendorCDR_20' ) end [2025-04-22 12:43:22] Production.INFO: ProcessCDR(1,14965017,1,1,2) [2025-04-22 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965017', 'tblTempUsageDetail_20' ) start [2025-04-22 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965017', 'tblTempUsageDetail_20' ) end [2025-04-22 12:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:43:28] Production.INFO: ==30345== Releasing lock... [2025-04-22 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:43:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:44:05 [end_date_ymd] => 2025-04-22 12:44:05 [RateCDR] => 1 ) [2025-04-22 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:44:05' and `end` < '2025-04-22 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-04-22 12:44:19] Production.INFO: count ==6025 [2025-04-22 12:44:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:44:05 - End Time 2025-04-22 12:44:05 [2025-04-22 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965022', 'tblTempUsageDetail_20' ) start [2025-04-22 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965022', 'tblTempUsageDetail_20' ) end [2025-04-22 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965022', 'tblTempVendorCDR_20' ) start [2025-04-22 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965022', 'tblTempVendorCDR_20' ) end [2025-04-22 12:44:23] Production.INFO: ProcessCDR(1,14965022,1,1,2) [2025-04-22 12:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965022', 'tblTempUsageDetail_20' ) start [2025-04-22 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965022', 'tblTempUsageDetail_20' ) end [2025-04-22 12:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:44:28] Production.INFO: ==30422== Releasing lock... [2025-04-22 12:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:44:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:45:04 [end_date_ymd] => 2025-04-22 12:45:04 [RateCDR] => 1 ) [2025-04-22 12:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:45:04' and `end` < '2025-04-22 12:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:45:18] Production.INFO: count ==6021 [2025-04-22 12:45:21] Production.ERROR: pbx CDR StartTime 2025-04-22 09:45:04 - End Time 2025-04-22 12:45:04 [2025-04-22 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965027', 'tblTempUsageDetail_20' ) start [2025-04-22 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965027', 'tblTempUsageDetail_20' ) end [2025-04-22 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965027', 'tblTempVendorCDR_20' ) start [2025-04-22 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965027', 'tblTempVendorCDR_20' ) end [2025-04-22 12:45:22] Production.INFO: ProcessCDR(1,14965027,1,1,2) [2025-04-22 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965027', 'tblTempUsageDetail_20' ) start [2025-04-22 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965027', 'tblTempUsageDetail_20' ) end [2025-04-22 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:45:27] Production.INFO: ==30501== Releasing lock... [2025-04-22 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:45:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:46:06 [end_date_ymd] => 2025-04-22 12:46:06 [RateCDR] => 1 ) [2025-04-22 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:46:06' and `end` < '2025-04-22 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:46:20] Production.INFO: count ==6018 [2025-04-22 12:46:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:46:06 - End Time 2025-04-22 12:46:06 [2025-04-22 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965032', 'tblTempUsageDetail_20' ) start [2025-04-22 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965032', 'tblTempUsageDetail_20' ) end [2025-04-22 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965032', 'tblTempVendorCDR_20' ) start [2025-04-22 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965032', 'tblTempVendorCDR_20' ) end [2025-04-22 12:46:23] Production.INFO: ProcessCDR(1,14965032,1,1,2) [2025-04-22 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965032', 'tblTempUsageDetail_20' ) start [2025-04-22 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965032', 'tblTempUsageDetail_20' ) end [2025-04-22 12:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:46:28] Production.INFO: ==30573== Releasing lock... [2025-04-22 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:46:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:47:05 [end_date_ymd] => 2025-04-22 12:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:47:05' and `end` < '2025-04-22 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-04-22 12:47:19] Production.INFO: count ==6015 [2025-04-22 12:47:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:47:05 - End Time 2025-04-22 12:47:05 [2025-04-22 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965037', 'tblTempUsageDetail_20' ) start [2025-04-22 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965037', 'tblTempUsageDetail_20' ) end [2025-04-22 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965037', 'tblTempVendorCDR_20' ) start [2025-04-22 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965037', 'tblTempVendorCDR_20' ) end [2025-04-22 12:47:23] Production.INFO: ProcessCDR(1,14965037,1,1,2) [2025-04-22 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965037', 'tblTempUsageDetail_20' ) start [2025-04-22 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965037', 'tblTempUsageDetail_20' ) end [2025-04-22 12:47:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:47:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:47:29] Production.INFO: ==30649== Releasing lock... [2025-04-22 12:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:47:29] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:48:06 [end_date_ymd] => 2025-04-22 12:48:06 [RateCDR] => 1 ) [2025-04-22 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:48:06' and `end` < '2025-04-22 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:48:20] Production.INFO: count ==6001 [2025-04-22 12:48:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:48:06 - End Time 2025-04-22 12:48:06 [2025-04-22 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965042', 'tblTempUsageDetail_20' ) start [2025-04-22 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965042', 'tblTempUsageDetail_20' ) end [2025-04-22 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965042', 'tblTempVendorCDR_20' ) start [2025-04-22 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965042', 'tblTempVendorCDR_20' ) end [2025-04-22 12:48:23] Production.INFO: ProcessCDR(1,14965042,1,1,2) [2025-04-22 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965042', 'tblTempUsageDetail_20' ) start [2025-04-22 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965042', 'tblTempUsageDetail_20' ) end [2025-04-22 12:48:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:48:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:48:29] Production.INFO: ==30721== Releasing lock... [2025-04-22 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:48:29] Production.INFO: 73 MB #Memory Used# [2025-04-22 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:49:05 [end_date_ymd] => 2025-04-22 12:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:49:05' and `end` < '2025-04-22 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-04-22 12:49:19] Production.INFO: count ==6008 [2025-04-22 12:49:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:49:05 - End Time 2025-04-22 12:49:05 [2025-04-22 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965047', 'tblTempUsageDetail_20' ) start [2025-04-22 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965047', 'tblTempUsageDetail_20' ) end [2025-04-22 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965047', 'tblTempVendorCDR_20' ) start [2025-04-22 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965047', 'tblTempVendorCDR_20' ) end [2025-04-22 12:49:22] Production.INFO: ProcessCDR(1,14965047,1,1,2) [2025-04-22 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965047', 'tblTempUsageDetail_20' ) start [2025-04-22 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965047', 'tblTempUsageDetail_20' ) end [2025-04-22 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:49:28] Production.INFO: ==30796== Releasing lock... [2025-04-22 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:49:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:50:06 [end_date_ymd] => 2025-04-22 12:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:50:06' and `end` < '2025-04-22 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-04-22 12:50:20] Production.INFO: count ==6030 [2025-04-22 12:50:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:50:06 - End Time 2025-04-22 12:50:06 [2025-04-22 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965053', 'tblTempUsageDetail_20' ) start [2025-04-22 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965053', 'tblTempUsageDetail_20' ) end [2025-04-22 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965053', 'tblTempVendorCDR_20' ) start [2025-04-22 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965053', 'tblTempVendorCDR_20' ) end [2025-04-22 12:50:24] Production.INFO: ProcessCDR(1,14965053,1,1,2) [2025-04-22 12:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965053', 'tblTempUsageDetail_20' ) start [2025-04-22 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965053', 'tblTempUsageDetail_20' ) end [2025-04-22 12:50:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:50:29] Production.INFO: ==30875== Releasing lock... [2025-04-22 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:50:29] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:51:05 [end_date_ymd] => 2025-04-22 12:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:51:05' and `end` < '2025-04-22 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-04-22 12:51:19] Production.INFO: count ==6086 [2025-04-22 12:51:21] Production.ERROR: pbx CDR StartTime 2025-04-22 09:51:05 - End Time 2025-04-22 12:51:05 [2025-04-22 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965058', 'tblTempUsageDetail_20' ) start [2025-04-22 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965058', 'tblTempUsageDetail_20' ) end [2025-04-22 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965058', 'tblTempVendorCDR_20' ) start [2025-04-22 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965058', 'tblTempVendorCDR_20' ) end [2025-04-22 12:51:22] Production.INFO: ProcessCDR(1,14965058,1,1,2) [2025-04-22 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965058', 'tblTempUsageDetail_20' ) start [2025-04-22 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965058', 'tblTempUsageDetail_20' ) end [2025-04-22 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:51:27] Production.INFO: ==30955== Releasing lock... [2025-04-22 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:51:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:52:05 [end_date_ymd] => 2025-04-22 12:52:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:52:05' and `end` < '2025-04-22 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-04-22 12:52:19] Production.INFO: count ==6089 [2025-04-22 12:52:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:52:05 - End Time 2025-04-22 12:52:05 [2025-04-22 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965063', 'tblTempUsageDetail_20' ) start [2025-04-22 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965063', 'tblTempUsageDetail_20' ) end [2025-04-22 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965063', 'tblTempVendorCDR_20' ) start [2025-04-22 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965063', 'tblTempVendorCDR_20' ) end [2025-04-22 12:52:23] Production.INFO: ProcessCDR(1,14965063,1,1,2) [2025-04-22 12:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965063', 'tblTempUsageDetail_20' ) start [2025-04-22 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965063', 'tblTempUsageDetail_20' ) end [2025-04-22 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:52:28] Production.INFO: ==31034== Releasing lock... [2025-04-22 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:52:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:53:05 [end_date_ymd] => 2025-04-22 12:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:53:05' and `end` < '2025-04-22 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-04-22 12:53:19] Production.INFO: count ==6091 [2025-04-22 12:53:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:53:05 - End Time 2025-04-22 12:53:05 [2025-04-22 12:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965068', 'tblTempUsageDetail_20' ) start [2025-04-22 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965068', 'tblTempUsageDetail_20' ) end [2025-04-22 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965068', 'tblTempVendorCDR_20' ) start [2025-04-22 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965068', 'tblTempVendorCDR_20' ) end [2025-04-22 12:53:23] Production.INFO: ProcessCDR(1,14965068,1,1,2) [2025-04-22 12:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965068', 'tblTempUsageDetail_20' ) start [2025-04-22 12:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965068', 'tblTempUsageDetail_20' ) end [2025-04-22 12:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:53:28] Production.INFO: ==31108== Releasing lock... [2025-04-22 12:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:53:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:54:05 [end_date_ymd] => 2025-04-22 12:54:05 [RateCDR] => 1 ) [2025-04-22 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:54:05' and `end` < '2025-04-22 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:54:19] Production.INFO: count ==6100 [2025-04-22 12:54:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:54:05 - End Time 2025-04-22 12:54:05 [2025-04-22 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965073', 'tblTempUsageDetail_20' ) start [2025-04-22 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965073', 'tblTempUsageDetail_20' ) end [2025-04-22 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965073', 'tblTempVendorCDR_20' ) start [2025-04-22 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965073', 'tblTempVendorCDR_20' ) end [2025-04-22 12:54:23] Production.INFO: ProcessCDR(1,14965073,1,1,2) [2025-04-22 12:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965073', 'tblTempUsageDetail_20' ) start [2025-04-22 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965073', 'tblTempUsageDetail_20' ) end [2025-04-22 12:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:54:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:54:29] Production.INFO: ==31181== Releasing lock... [2025-04-22 12:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:54:29] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:55:06 [end_date_ymd] => 2025-04-22 12:55:06 [RateCDR] => 1 ) [2025-04-22 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:55:06' and `end` < '2025-04-22 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:55:20] Production.INFO: count ==6096 [2025-04-22 12:55:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:55:06 - End Time 2025-04-22 12:55:06 [2025-04-22 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965078', 'tblTempUsageDetail_20' ) start [2025-04-22 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965078', 'tblTempUsageDetail_20' ) end [2025-04-22 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965078', 'tblTempVendorCDR_20' ) start [2025-04-22 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965078', 'tblTempVendorCDR_20' ) end [2025-04-22 12:55:23] Production.INFO: ProcessCDR(1,14965078,1,1,2) [2025-04-22 12:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965078', 'tblTempUsageDetail_20' ) start [2025-04-22 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965078', 'tblTempUsageDetail_20' ) end [2025-04-22 12:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:55:28] Production.INFO: ==31258== Releasing lock... [2025-04-22 12:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:55:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:56:05 [end_date_ymd] => 2025-04-22 12:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:56:05' and `end` < '2025-04-22 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-04-22 12:56:19] Production.INFO: count ==6077 [2025-04-22 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:56:05 - End Time 2025-04-22 12:56:05 [2025-04-22 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965083', 'tblTempUsageDetail_20' ) start [2025-04-22 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965083', 'tblTempUsageDetail_20' ) end [2025-04-22 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965083', 'tblTempVendorCDR_20' ) start [2025-04-22 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965083', 'tblTempVendorCDR_20' ) end [2025-04-22 12:56:23] Production.INFO: ProcessCDR(1,14965083,1,1,2) [2025-04-22 12:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965083', 'tblTempUsageDetail_20' ) start [2025-04-22 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965083', 'tblTempUsageDetail_20' ) end [2025-04-22 12:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:56:28] Production.INFO: ==31373== Releasing lock... [2025-04-22 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:56:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:57:06 [end_date_ymd] => 2025-04-22 12:57:06 [RateCDR] => 1 ) [2025-04-22 12:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 09:57:06' and `end` < '2025-04-22 12:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 12:57:20] Production.INFO: count ==6080 [2025-04-22 12:57:23] Production.ERROR: pbx CDR StartTime 2025-04-22 09:57:06 - End Time 2025-04-22 12:57:06 [2025-04-22 12:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965088', 'tblTempUsageDetail_20' ) start [2025-04-22 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965088', 'tblTempUsageDetail_20' ) end [2025-04-22 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965088', 'tblTempVendorCDR_20' ) start [2025-04-22 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965088', 'tblTempVendorCDR_20' ) end [2025-04-22 12:57:23] Production.INFO: ProcessCDR(1,14965088,1,1,2) [2025-04-22 12:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965088', 'tblTempUsageDetail_20' ) start [2025-04-22 12:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965088', 'tblTempUsageDetail_20' ) end [2025-04-22 12:57:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:57:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:57:29] Production.INFO: ==31446== Releasing lock... [2025-04-22 12:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:57:29] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:58:05 [end_date_ymd] => 2025-04-22 12:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:58:05' and `end` < '2025-04-22 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-04-22 12:58:19] Production.INFO: count ==6080 [2025-04-22 12:58:22] Production.ERROR: pbx CDR StartTime 2025-04-22 09:58:05 - End Time 2025-04-22 12:58:05 [2025-04-22 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965093', 'tblTempUsageDetail_20' ) start [2025-04-22 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965093', 'tblTempUsageDetail_20' ) end [2025-04-22 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965093', 'tblTempVendorCDR_20' ) start [2025-04-22 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965093', 'tblTempVendorCDR_20' ) end [2025-04-22 12:58:22] Production.INFO: ProcessCDR(1,14965093,1,1,2) [2025-04-22 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965093', 'tblTempUsageDetail_20' ) start [2025-04-22 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965093', 'tblTempUsageDetail_20' ) end [2025-04-22 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:58:28] Production.INFO: ==31515== Releasing lock... [2025-04-22 12:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:58:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 09:59:05 [end_date_ymd] => 2025-04-22 12:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 09:59:05' and `end` < '2025-04-22 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-04-22 12:59:18] Production.INFO: count ==6081 [2025-04-22 12:59:21] Production.ERROR: pbx CDR StartTime 2025-04-22 09:59:05 - End Time 2025-04-22 12:59:05 [2025-04-22 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965098', 'tblTempUsageDetail_20' ) start [2025-04-22 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965098', 'tblTempUsageDetail_20' ) end [2025-04-22 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965098', 'tblTempVendorCDR_20' ) start [2025-04-22 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965098', 'tblTempVendorCDR_20' ) end [2025-04-22 12:59:22] Production.INFO: ProcessCDR(1,14965098,1,1,2) [2025-04-22 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965098', 'tblTempUsageDetail_20' ) start [2025-04-22 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965098', 'tblTempUsageDetail_20' ) end [2025-04-22 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 12:59:27] Production.INFO: ==31596== Releasing lock... [2025-04-22 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 12:59:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:00:06 [end_date_ymd] => 2025-04-22 13:00:06 [RateCDR] => 1 ) [2025-04-22 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:00:06' and `end` < '2025-04-22 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:00:20] Production.INFO: count ==6086 [2025-04-22 13:00:23] Production.ERROR: pbx CDR StartTime 2025-04-22 10:00:06 - End Time 2025-04-22 13:00:06 [2025-04-22 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965104', 'tblTempUsageDetail_20' ) start [2025-04-22 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965104', 'tblTempUsageDetail_20' ) end [2025-04-22 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965104', 'tblTempVendorCDR_20' ) start [2025-04-22 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965104', 'tblTempVendorCDR_20' ) end [2025-04-22 13:00:23] Production.INFO: ProcessCDR(1,14965104,1,1,2) [2025-04-22 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965104', 'tblTempUsageDetail_20' ) start [2025-04-22 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965104', 'tblTempUsageDetail_20' ) end [2025-04-22 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:00:28] Production.INFO: ==31671== Releasing lock... [2025-04-22 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:00:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:01:06 [end_date_ymd] => 2025-04-22 13:01:06 [RateCDR] => 1 ) [2025-04-22 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:01:06' and `end` < '2025-04-22 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:01:20] Production.INFO: count ==6133 [2025-04-22 13:01:23] Production.ERROR: pbx CDR StartTime 2025-04-22 10:01:06 - End Time 2025-04-22 13:01:06 [2025-04-22 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965109', 'tblTempUsageDetail_20' ) start [2025-04-22 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965109', 'tblTempUsageDetail_20' ) end [2025-04-22 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965109', 'tblTempVendorCDR_20' ) start [2025-04-22 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965109', 'tblTempVendorCDR_20' ) end [2025-04-22 13:01:23] Production.INFO: ProcessCDR(1,14965109,1,1,2) [2025-04-22 13:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965109', 'tblTempUsageDetail_20' ) start [2025-04-22 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965109', 'tblTempUsageDetail_20' ) end [2025-04-22 13:01:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:01:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:01:29] Production.INFO: ==31762== Releasing lock... [2025-04-22 13:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:01:29] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:02:05 [end_date_ymd] => 2025-04-22 13:02:05 [RateCDR] => 1 ) [2025-04-22 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:02:05' and `end` < '2025-04-22 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:02:19] Production.INFO: count ==6131 [2025-04-22 13:02:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:02:05 - End Time 2025-04-22 13:02:05 [2025-04-22 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965114', 'tblTempUsageDetail_20' ) start [2025-04-22 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965114', 'tblTempUsageDetail_20' ) end [2025-04-22 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965114', 'tblTempVendorCDR_20' ) start [2025-04-22 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965114', 'tblTempVendorCDR_20' ) end [2025-04-22 13:02:23] Production.INFO: ProcessCDR(1,14965114,1,1,2) [2025-04-22 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965114', 'tblTempUsageDetail_20' ) start [2025-04-22 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965114', 'tblTempUsageDetail_20' ) end [2025-04-22 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:02:28] Production.INFO: ==31843== Releasing lock... [2025-04-22 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:02:28] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:03:05 [end_date_ymd] => 2025-04-22 13:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:03:05' and `end` < '2025-04-22 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-04-22 13:03:19] Production.INFO: count ==6131 [2025-04-22 13:03:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:03:05 - End Time 2025-04-22 13:03:05 [2025-04-22 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965119', 'tblTempUsageDetail_20' ) start [2025-04-22 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965119', 'tblTempUsageDetail_20' ) end [2025-04-22 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965119', 'tblTempVendorCDR_20' ) start [2025-04-22 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965119', 'tblTempVendorCDR_20' ) end [2025-04-22 13:03:23] Production.INFO: ProcessCDR(1,14965119,1,1,2) [2025-04-22 13:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965119', 'tblTempUsageDetail_20' ) start [2025-04-22 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965119', 'tblTempUsageDetail_20' ) end [2025-04-22 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:03:28] Production.INFO: ==31915== Releasing lock... [2025-04-22 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:03:28] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:04:05 [end_date_ymd] => 2025-04-22 13:04:05 [RateCDR] => 1 ) [2025-04-22 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:04:05' and `end` < '2025-04-22 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:04:19] Production.INFO: count ==6120 [2025-04-22 13:04:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:04:05 - End Time 2025-04-22 13:04:05 [2025-04-22 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965124', 'tblTempUsageDetail_20' ) start [2025-04-22 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965124', 'tblTempUsageDetail_20' ) end [2025-04-22 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965124', 'tblTempVendorCDR_20' ) start [2025-04-22 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965124', 'tblTempVendorCDR_20' ) end [2025-04-22 13:04:22] Production.INFO: ProcessCDR(1,14965124,1,1,2) [2025-04-22 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965124', 'tblTempUsageDetail_20' ) start [2025-04-22 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965124', 'tblTempUsageDetail_20' ) end [2025-04-22 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:04:28] Production.INFO: ==31985== Releasing lock... [2025-04-22 13:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:04:28] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:05:05 [end_date_ymd] => 2025-04-22 13:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:05:05' and `end` < '2025-04-22 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-04-22 13:05:19] Production.INFO: count ==6126 [2025-04-22 13:05:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:05:05 - End Time 2025-04-22 13:05:05 [2025-04-22 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965129', 'tblTempUsageDetail_20' ) start [2025-04-22 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965129', 'tblTempUsageDetail_20' ) end [2025-04-22 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965129', 'tblTempVendorCDR_20' ) start [2025-04-22 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965129', 'tblTempVendorCDR_20' ) end [2025-04-22 13:05:23] Production.INFO: ProcessCDR(1,14965129,1,1,2) [2025-04-22 13:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965129', 'tblTempUsageDetail_20' ) start [2025-04-22 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965129', 'tblTempUsageDetail_20' ) end [2025-04-22 13:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:05:28] Production.INFO: ==32056== Releasing lock... [2025-04-22 13:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:05:28] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:06:05 [end_date_ymd] => 2025-04-22 13:06:05 [RateCDR] => 1 ) [2025-04-22 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:06:05' and `end` < '2025-04-22 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:06:19] Production.INFO: count ==6141 [2025-04-22 13:06:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:06:05 - End Time 2025-04-22 13:06:05 [2025-04-22 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965134', 'tblTempUsageDetail_20' ) start [2025-04-22 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965134', 'tblTempUsageDetail_20' ) end [2025-04-22 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965134', 'tblTempVendorCDR_20' ) start [2025-04-22 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965134', 'tblTempVendorCDR_20' ) end [2025-04-22 13:06:23] Production.INFO: ProcessCDR(1,14965134,1,1,2) [2025-04-22 13:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965134', 'tblTempUsageDetail_20' ) start [2025-04-22 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965134', 'tblTempUsageDetail_20' ) end [2025-04-22 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:06:28] Production.INFO: ==32130== Releasing lock... [2025-04-22 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:06:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-22 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:07:06 [end_date_ymd] => 2025-04-22 13:07:06 [RateCDR] => 1 ) [2025-04-22 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:07:06' and `end` < '2025-04-22 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:07:20] Production.INFO: count ==6143 [2025-04-22 13:07:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:07:06 - End Time 2025-04-22 13:07:06 [2025-04-22 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965139', 'tblTempUsageDetail_20' ) start [2025-04-22 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965139', 'tblTempUsageDetail_20' ) end [2025-04-22 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965139', 'tblTempVendorCDR_20' ) start [2025-04-22 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965139', 'tblTempVendorCDR_20' ) end [2025-04-22 13:07:23] Production.INFO: ProcessCDR(1,14965139,1,1,2) [2025-04-22 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965139', 'tblTempUsageDetail_20' ) start [2025-04-22 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965139', 'tblTempUsageDetail_20' ) end [2025-04-22 13:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:07:28] Production.INFO: ==32204== Releasing lock... [2025-04-22 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:07:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-22 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:08:05 [end_date_ymd] => 2025-04-22 13:08:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:08:05' and `end` < '2025-04-22 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-04-22 13:08:19] Production.INFO: count ==6144 [2025-04-22 13:08:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:08:05 - End Time 2025-04-22 13:08:05 [2025-04-22 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965144', 'tblTempUsageDetail_20' ) start [2025-04-22 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965144', 'tblTempUsageDetail_20' ) end [2025-04-22 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965144', 'tblTempVendorCDR_20' ) start [2025-04-22 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965144', 'tblTempVendorCDR_20' ) end [2025-04-22 13:08:22] Production.INFO: ProcessCDR(1,14965144,1,1,2) [2025-04-22 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965144', 'tblTempUsageDetail_20' ) start [2025-04-22 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965144', 'tblTempUsageDetail_20' ) end [2025-04-22 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:08:28] Production.INFO: ==32281== Releasing lock... [2025-04-22 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:08:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-22 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:09:06 [end_date_ymd] => 2025-04-22 13:09:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:09:06' and `end` < '2025-04-22 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-04-22 13:09:20] Production.INFO: count ==6148 [2025-04-22 13:09:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:09:06 - End Time 2025-04-22 13:09:06 [2025-04-22 13:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965149', 'tblTempUsageDetail_20' ) start [2025-04-22 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965149', 'tblTempUsageDetail_20' ) end [2025-04-22 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965149', 'tblTempVendorCDR_20' ) start [2025-04-22 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965149', 'tblTempVendorCDR_20' ) end [2025-04-22 13:09:23] Production.INFO: ProcessCDR(1,14965149,1,1,2) [2025-04-22 13:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965149', 'tblTempUsageDetail_20' ) start [2025-04-22 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965149', 'tblTempUsageDetail_20' ) end [2025-04-22 13:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:09:28] Production.INFO: ==32359== Releasing lock... [2025-04-22 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:09:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-22 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:10:05 [end_date_ymd] => 2025-04-22 13:10:05 [RateCDR] => 1 ) [2025-04-22 13: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-04-22 10:10:05' and `end` < '2025-04-22 13: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-04-22 13:10:19] Production.INFO: count ==6129 [2025-04-22 13:10:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:10:05 - End Time 2025-04-22 13:10:05 [2025-04-22 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965155', 'tblTempUsageDetail_20' ) start [2025-04-22 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965155', 'tblTempUsageDetail_20' ) end [2025-04-22 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965155', 'tblTempVendorCDR_20' ) start [2025-04-22 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965155', 'tblTempVendorCDR_20' ) end [2025-04-22 13:10:22] Production.INFO: ProcessCDR(1,14965155,1,1,2) [2025-04-22 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965155', 'tblTempUsageDetail_20' ) start [2025-04-22 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965155', 'tblTempUsageDetail_20' ) end [2025-04-22 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:10:28] Production.INFO: ==32431== Releasing lock... [2025-04-22 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:10:28] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:11:05 [end_date_ymd] => 2025-04-22 13:11:05 [RateCDR] => 1 ) [2025-04-22 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:11:05' and `end` < '2025-04-22 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:11:19] Production.INFO: count ==6136 [2025-04-22 13:11:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:11:05 - End Time 2025-04-22 13:11:05 [2025-04-22 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965160', 'tblTempUsageDetail_20' ) start [2025-04-22 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965160', 'tblTempUsageDetail_20' ) end [2025-04-22 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965160', 'tblTempVendorCDR_20' ) start [2025-04-22 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965160', 'tblTempVendorCDR_20' ) end [2025-04-22 13:11:22] Production.INFO: ProcessCDR(1,14965160,1,1,2) [2025-04-22 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965160', 'tblTempUsageDetail_20' ) start [2025-04-22 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965160', 'tblTempUsageDetail_20' ) end [2025-04-22 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:11:27] Production.INFO: ==32504== Releasing lock... [2025-04-22 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:11:27] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:12:05 [end_date_ymd] => 2025-04-22 13:12:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:12:05' and `end` < '2025-04-22 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-04-22 13:12:19] Production.INFO: count ==6133 [2025-04-22 13:12:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:12:05 - End Time 2025-04-22 13:12:05 [2025-04-22 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965165', 'tblTempUsageDetail_20' ) start [2025-04-22 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965165', 'tblTempUsageDetail_20' ) end [2025-04-22 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965165', 'tblTempVendorCDR_20' ) start [2025-04-22 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965165', 'tblTempVendorCDR_20' ) end [2025-04-22 13:12:22] Production.INFO: ProcessCDR(1,14965165,1,1,2) [2025-04-22 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965165', 'tblTempUsageDetail_20' ) start [2025-04-22 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965165', 'tblTempUsageDetail_20' ) end [2025-04-22 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:12:27] Production.INFO: ==32616== Releasing lock... [2025-04-22 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:12:27] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:13:05 [end_date_ymd] => 2025-04-22 13:13:05 [RateCDR] => 1 ) [2025-04-22 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:13:05' and `end` < '2025-04-22 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:13:19] Production.INFO: count ==6159 [2025-04-22 13:13:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:13:05 - End Time 2025-04-22 13:13:05 [2025-04-22 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965170', 'tblTempUsageDetail_20' ) start [2025-04-22 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965170', 'tblTempUsageDetail_20' ) end [2025-04-22 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965170', 'tblTempVendorCDR_20' ) start [2025-04-22 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965170', 'tblTempVendorCDR_20' ) end [2025-04-22 13:13:22] Production.INFO: ProcessCDR(1,14965170,1,1,2) [2025-04-22 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965170', 'tblTempUsageDetail_20' ) start [2025-04-22 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965170', 'tblTempUsageDetail_20' ) end [2025-04-22 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:13:27] Production.INFO: ==32688== Releasing lock... [2025-04-22 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:13:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-22 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:14:05 [end_date_ymd] => 2025-04-22 13:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:14:05' and `end` < '2025-04-22 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-04-22 13:14:19] Production.INFO: count ==6147 [2025-04-22 13:14:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:14:05 - End Time 2025-04-22 13:14:05 [2025-04-22 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965175', 'tblTempUsageDetail_20' ) start [2025-04-22 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965175', 'tblTempUsageDetail_20' ) end [2025-04-22 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965175', 'tblTempVendorCDR_20' ) start [2025-04-22 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965175', 'tblTempVendorCDR_20' ) end [2025-04-22 13:14:22] Production.INFO: ProcessCDR(1,14965175,1,1,2) [2025-04-22 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965175', 'tblTempUsageDetail_20' ) start [2025-04-22 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965175', 'tblTempUsageDetail_20' ) end [2025-04-22 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:14:27] Production.INFO: ==32766== Releasing lock... [2025-04-22 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:14:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-22 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:15:05 [end_date_ymd] => 2025-04-22 13:15:05 [RateCDR] => 1 ) [2025-04-22 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:15:05' and `end` < '2025-04-22 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:15:19] Production.INFO: count ==6123 [2025-04-22 13:15:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:15:05 - End Time 2025-04-22 13:15:05 [2025-04-22 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965180', 'tblTempUsageDetail_20' ) start [2025-04-22 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965180', 'tblTempUsageDetail_20' ) end [2025-04-22 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965180', 'tblTempVendorCDR_20' ) start [2025-04-22 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965180', 'tblTempVendorCDR_20' ) end [2025-04-22 13:15:22] Production.INFO: ProcessCDR(1,14965180,1,1,2) [2025-04-22 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965180', 'tblTempUsageDetail_20' ) start [2025-04-22 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965180', 'tblTempUsageDetail_20' ) end [2025-04-22 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:15:27] Production.INFO: ==395== Releasing lock... [2025-04-22 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:15:27] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:16:05 [end_date_ymd] => 2025-04-22 13:16:05 [RateCDR] => 1 ) [2025-04-22 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:16:05' and `end` < '2025-04-22 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:16:18] Production.INFO: count ==6118 [2025-04-22 13:16:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:16:05 - End Time 2025-04-22 13:16:05 [2025-04-22 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965185', 'tblTempUsageDetail_20' ) start [2025-04-22 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965185', 'tblTempUsageDetail_20' ) end [2025-04-22 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965185', 'tblTempVendorCDR_20' ) start [2025-04-22 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965185', 'tblTempVendorCDR_20' ) end [2025-04-22 13:16:22] Production.INFO: ProcessCDR(1,14965185,1,1,2) [2025-04-22 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965185', 'tblTempUsageDetail_20' ) start [2025-04-22 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965185', 'tblTempUsageDetail_20' ) end [2025-04-22 13:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:16:25] Production.INFO: ==465== Releasing lock... [2025-04-22 13:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:16:25] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:17:05 [end_date_ymd] => 2025-04-22 13:17:05 [RateCDR] => 1 ) [2025-04-22 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:17:05' and `end` < '2025-04-22 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:17:19] Production.INFO: count ==6110 [2025-04-22 13:17:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:17:05 - End Time 2025-04-22 13:17:05 [2025-04-22 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965190', 'tblTempUsageDetail_20' ) start [2025-04-22 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965190', 'tblTempUsageDetail_20' ) end [2025-04-22 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965190', 'tblTempVendorCDR_20' ) start [2025-04-22 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965190', 'tblTempVendorCDR_20' ) end [2025-04-22 13:17:23] Production.INFO: ProcessCDR(1,14965190,1,1,2) [2025-04-22 13:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965190', 'tblTempUsageDetail_20' ) start [2025-04-22 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965190', 'tblTempUsageDetail_20' ) end [2025-04-22 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:17:27] Production.INFO: ==555== Releasing lock... [2025-04-22 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:17:27] Production.INFO: 74 MB #Memory Used# [2025-04-22 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:18:06 [end_date_ymd] => 2025-04-22 13:18:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:18:06' and `end` < '2025-04-22 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-04-22 13:18:20] Production.INFO: count ==6092 [2025-04-22 13:18:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:18:06 - End Time 2025-04-22 13:18:06 [2025-04-22 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965195', 'tblTempUsageDetail_20' ) start [2025-04-22 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965195', 'tblTempUsageDetail_20' ) end [2025-04-22 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965195', 'tblTempVendorCDR_20' ) start [2025-04-22 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965195', 'tblTempVendorCDR_20' ) end [2025-04-22 13:18:23] Production.INFO: ProcessCDR(1,14965195,1,1,2) [2025-04-22 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965195', 'tblTempUsageDetail_20' ) start [2025-04-22 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965195', 'tblTempUsageDetail_20' ) end [2025-04-22 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:18:28] Production.INFO: ==648== Releasing lock... [2025-04-22 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:18:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:19:05 [end_date_ymd] => 2025-04-22 13:19:05 [RateCDR] => 1 ) [2025-04-22 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:19:05' and `end` < '2025-04-22 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:19:19] Production.INFO: count ==6096 [2025-04-22 13:19:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:19:05 - End Time 2025-04-22 13:19:05 [2025-04-22 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965200', 'tblTempUsageDetail_20' ) start [2025-04-22 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965200', 'tblTempUsageDetail_20' ) end [2025-04-22 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965200', 'tblTempVendorCDR_20' ) start [2025-04-22 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965200', 'tblTempVendorCDR_20' ) end [2025-04-22 13:19:22] Production.INFO: ProcessCDR(1,14965200,1,1,2) [2025-04-22 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965200', 'tblTempUsageDetail_20' ) start [2025-04-22 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965200', 'tblTempUsageDetail_20' ) end [2025-04-22 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:19:27] Production.INFO: ==743== Releasing lock... [2025-04-22 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:19:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:20:05 [end_date_ymd] => 2025-04-22 13:20:05 [RateCDR] => 1 ) [2025-04-22 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:20:05' and `end` < '2025-04-22 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:20:19] Production.INFO: count ==6097 [2025-04-22 13:20:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:20:05 - End Time 2025-04-22 13:20:05 [2025-04-22 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965205', 'tblTempUsageDetail_20' ) start [2025-04-22 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965205', 'tblTempUsageDetail_20' ) end [2025-04-22 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965205', 'tblTempVendorCDR_20' ) start [2025-04-22 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965205', 'tblTempVendorCDR_20' ) end [2025-04-22 13:20:23] Production.INFO: ProcessCDR(1,14965205,1,1,2) [2025-04-22 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965205', 'tblTempUsageDetail_20' ) start [2025-04-22 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965205', 'tblTempUsageDetail_20' ) end [2025-04-22 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:20:28] Production.INFO: ==821== Releasing lock... [2025-04-22 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:20:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:21:05 [end_date_ymd] => 2025-04-22 13:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:21:05' and `end` < '2025-04-22 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-04-22 13:21:19] Production.INFO: count ==6085 [2025-04-22 13:21:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:21:05 - End Time 2025-04-22 13:21:05 [2025-04-22 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965211', 'tblTempUsageDetail_20' ) start [2025-04-22 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965211', 'tblTempUsageDetail_20' ) end [2025-04-22 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965211', 'tblTempVendorCDR_20' ) start [2025-04-22 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965211', 'tblTempVendorCDR_20' ) end [2025-04-22 13:21:22] Production.INFO: ProcessCDR(1,14965211,1,1,2) [2025-04-22 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965211', 'tblTempUsageDetail_20' ) start [2025-04-22 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965211', 'tblTempUsageDetail_20' ) end [2025-04-22 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:21:27] Production.INFO: ==893== Releasing lock... [2025-04-22 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:21:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:22:06 [end_date_ymd] => 2025-04-22 13:22:06 [RateCDR] => 1 ) [2025-04-22 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:22:06' and `end` < '2025-04-22 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:22:19] Production.INFO: count ==6076 [2025-04-22 13:22:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:22:06 - End Time 2025-04-22 13:22:06 [2025-04-22 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965216', 'tblTempUsageDetail_20' ) start [2025-04-22 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965216', 'tblTempUsageDetail_20' ) end [2025-04-22 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965216', 'tblTempVendorCDR_20' ) start [2025-04-22 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965216', 'tblTempVendorCDR_20' ) end [2025-04-22 13:22:23] Production.INFO: ProcessCDR(1,14965216,1,1,2) [2025-04-22 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965216', 'tblTempUsageDetail_20' ) start [2025-04-22 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965216', 'tblTempUsageDetail_20' ) end [2025-04-22 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:22:28] Production.INFO: ==967== Releasing lock... [2025-04-22 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:22:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-22 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:23:05 [end_date_ymd] => 2025-04-22 13:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:23:05' and `end` < '2025-04-22 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-04-22 13:23:19] Production.INFO: count ==6054 [2025-04-22 13:23:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:23:05 - End Time 2025-04-22 13:23:05 [2025-04-22 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965221', 'tblTempUsageDetail_20' ) start [2025-04-22 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965221', 'tblTempUsageDetail_20' ) end [2025-04-22 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965221', 'tblTempVendorCDR_20' ) start [2025-04-22 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965221', 'tblTempVendorCDR_20' ) end [2025-04-22 13:23:22] Production.INFO: ProcessCDR(1,14965221,1,1,2) [2025-04-22 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965221', 'tblTempUsageDetail_20' ) start [2025-04-22 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965221', 'tblTempUsageDetail_20' ) end [2025-04-22 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:23:27] Production.INFO: ==1044== Releasing lock... [2025-04-22 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:23:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:24:05 [end_date_ymd] => 2025-04-22 13:24:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:24:05' and `end` < '2025-04-22 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-04-22 13:24:19] Production.INFO: count ==6031 [2025-04-22 13:24:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:24:05 - End Time 2025-04-22 13:24:05 [2025-04-22 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965226', 'tblTempUsageDetail_20' ) start [2025-04-22 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965226', 'tblTempUsageDetail_20' ) end [2025-04-22 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965226', 'tblTempVendorCDR_20' ) start [2025-04-22 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965226', 'tblTempVendorCDR_20' ) end [2025-04-22 13:24:22] Production.INFO: ProcessCDR(1,14965226,1,1,2) [2025-04-22 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965226', 'tblTempUsageDetail_20' ) start [2025-04-22 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965226', 'tblTempUsageDetail_20' ) end [2025-04-22 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:24:27] Production.INFO: ==1116== Releasing lock... [2025-04-22 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:24:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:25:05 [end_date_ymd] => 2025-04-22 13:25:05 [RateCDR] => 1 ) [2025-04-22 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:25:05' and `end` < '2025-04-22 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:25:19] Production.INFO: count ==6037 [2025-04-22 13:25:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:25:05 - End Time 2025-04-22 13:25:05 [2025-04-22 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965231', 'tblTempUsageDetail_20' ) start [2025-04-22 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965231', 'tblTempUsageDetail_20' ) end [2025-04-22 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965231', 'tblTempVendorCDR_20' ) start [2025-04-22 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965231', 'tblTempVendorCDR_20' ) end [2025-04-22 13:25:23] Production.INFO: ProcessCDR(1,14965231,1,1,2) [2025-04-22 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965231', 'tblTempUsageDetail_20' ) start [2025-04-22 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965231', 'tblTempUsageDetail_20' ) end [2025-04-22 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:25:27] Production.INFO: ==1193== Releasing lock... [2025-04-22 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:25:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:26:05 [end_date_ymd] => 2025-04-22 13:26:05 [RateCDR] => 1 ) [2025-04-22 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:26:05' and `end` < '2025-04-22 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:26:19] Production.INFO: count ==6030 [2025-04-22 13:26:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:26:05 - End Time 2025-04-22 13:26:05 [2025-04-22 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965236', 'tblTempUsageDetail_20' ) start [2025-04-22 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965236', 'tblTempUsageDetail_20' ) end [2025-04-22 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965236', 'tblTempVendorCDR_20' ) start [2025-04-22 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965236', 'tblTempVendorCDR_20' ) end [2025-04-22 13:26:22] Production.INFO: ProcessCDR(1,14965236,1,1,2) [2025-04-22 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965236', 'tblTempUsageDetail_20' ) start [2025-04-22 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965236', 'tblTempUsageDetail_20' ) end [2025-04-22 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:26:27] Production.INFO: ==1280== Releasing lock... [2025-04-22 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:26:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:27:05 [end_date_ymd] => 2025-04-22 13:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:27:05' and `end` < '2025-04-22 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-04-22 13:27:19] Production.INFO: count ==6027 [2025-04-22 13:27:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:27:05 - End Time 2025-04-22 13:27:05 [2025-04-22 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965241', 'tblTempUsageDetail_20' ) start [2025-04-22 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965241', 'tblTempUsageDetail_20' ) end [2025-04-22 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965241', 'tblTempVendorCDR_20' ) start [2025-04-22 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965241', 'tblTempVendorCDR_20' ) end [2025-04-22 13:27:22] Production.INFO: ProcessCDR(1,14965241,1,1,2) [2025-04-22 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965241', 'tblTempUsageDetail_20' ) start [2025-04-22 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965241', 'tblTempUsageDetail_20' ) end [2025-04-22 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:27:27] Production.INFO: ==1393== Releasing lock... [2025-04-22 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:27:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:28:05 [end_date_ymd] => 2025-04-22 13:28:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:28:05' and `end` < '2025-04-22 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-04-22 13:28:19] Production.INFO: count ==6021 [2025-04-22 13:28:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:28:05 - End Time 2025-04-22 13:28:05 [2025-04-22 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965246', 'tblTempUsageDetail_20' ) start [2025-04-22 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965246', 'tblTempUsageDetail_20' ) end [2025-04-22 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965246', 'tblTempVendorCDR_20' ) start [2025-04-22 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965246', 'tblTempVendorCDR_20' ) end [2025-04-22 13:28:22] Production.INFO: ProcessCDR(1,14965246,1,1,2) [2025-04-22 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965246', 'tblTempUsageDetail_20' ) start [2025-04-22 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965246', 'tblTempUsageDetail_20' ) end [2025-04-22 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:28:27] Production.INFO: ==1465== Releasing lock... [2025-04-22 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:28:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:29:05 [end_date_ymd] => 2025-04-22 13:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:29:05' and `end` < '2025-04-22 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-04-22 13:29:19] Production.INFO: count ==6036 [2025-04-22 13:29:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:29:05 - End Time 2025-04-22 13:29:05 [2025-04-22 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965251', 'tblTempUsageDetail_20' ) start [2025-04-22 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965251', 'tblTempUsageDetail_20' ) end [2025-04-22 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965251', 'tblTempVendorCDR_20' ) start [2025-04-22 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965251', 'tblTempVendorCDR_20' ) end [2025-04-22 13:29:22] Production.INFO: ProcessCDR(1,14965251,1,1,2) [2025-04-22 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965251', 'tblTempUsageDetail_20' ) start [2025-04-22 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965251', 'tblTempUsageDetail_20' ) end [2025-04-22 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:29:27] Production.INFO: ==1581== Releasing lock... [2025-04-22 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:29:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:30:05 [end_date_ymd] => 2025-04-22 13:30:05 [RateCDR] => 1 ) [2025-04-22 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:30:05' and `end` < '2025-04-22 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:30:19] Production.INFO: count ==6045 [2025-04-22 13:30:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:30:05 - End Time 2025-04-22 13:30:05 [2025-04-22 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965257', 'tblTempUsageDetail_20' ) start [2025-04-22 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965257', 'tblTempUsageDetail_20' ) end [2025-04-22 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965257', 'tblTempVendorCDR_20' ) start [2025-04-22 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965257', 'tblTempVendorCDR_20' ) end [2025-04-22 13:30:22] Production.INFO: ProcessCDR(1,14965257,1,1,2) [2025-04-22 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965257', 'tblTempUsageDetail_20' ) start [2025-04-22 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965257', 'tblTempUsageDetail_20' ) end [2025-04-22 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:30:28] Production.INFO: ==1655== Releasing lock... [2025-04-22 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:30:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:31:05 [end_date_ymd] => 2025-04-22 13:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:31:05' and `end` < '2025-04-22 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-04-22 13:31:19] Production.INFO: count ==6013 [2025-04-22 13:31:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:31:05 - End Time 2025-04-22 13:31:05 [2025-04-22 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965262', 'tblTempUsageDetail_20' ) start [2025-04-22 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965262', 'tblTempUsageDetail_20' ) end [2025-04-22 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965262', 'tblTempVendorCDR_20' ) start [2025-04-22 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965262', 'tblTempVendorCDR_20' ) end [2025-04-22 13:31:22] Production.INFO: ProcessCDR(1,14965262,1,1,2) [2025-04-22 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965262', 'tblTempUsageDetail_20' ) start [2025-04-22 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965262', 'tblTempUsageDetail_20' ) end [2025-04-22 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:31:27] Production.INFO: ==1727== Releasing lock... [2025-04-22 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:31:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:32:06 [end_date_ymd] => 2025-04-22 13:32:06 [RateCDR] => 1 ) [2025-04-22 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:32:06' and `end` < '2025-04-22 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:32:20] Production.INFO: count ==6005 [2025-04-22 13:32:23] Production.ERROR: pbx CDR StartTime 2025-04-22 10:32:06 - End Time 2025-04-22 13:32:06 [2025-04-22 13:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965267', 'tblTempUsageDetail_20' ) start [2025-04-22 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965267', 'tblTempUsageDetail_20' ) end [2025-04-22 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965267', 'tblTempVendorCDR_20' ) start [2025-04-22 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965267', 'tblTempVendorCDR_20' ) end [2025-04-22 13:32:23] Production.INFO: ProcessCDR(1,14965267,1,1,2) [2025-04-22 13:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965267', 'tblTempUsageDetail_20' ) start [2025-04-22 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965267', 'tblTempUsageDetail_20' ) end [2025-04-22 13:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:32:28] Production.INFO: ==1810== Releasing lock... [2025-04-22 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:32:28] Production.INFO: 73 MB #Memory Used# [2025-04-22 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:33:05 [end_date_ymd] => 2025-04-22 13:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:33:05' and `end` < '2025-04-22 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-04-22 13:33:19] Production.INFO: count ==6005 [2025-04-22 13:33:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:33:05 - End Time 2025-04-22 13:33:05 [2025-04-22 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965272', 'tblTempUsageDetail_20' ) start [2025-04-22 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965272', 'tblTempUsageDetail_20' ) end [2025-04-22 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965272', 'tblTempVendorCDR_20' ) start [2025-04-22 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965272', 'tblTempVendorCDR_20' ) end [2025-04-22 13:33:22] Production.INFO: ProcessCDR(1,14965272,1,1,2) [2025-04-22 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965272', 'tblTempUsageDetail_20' ) start [2025-04-22 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965272', 'tblTempUsageDetail_20' ) end [2025-04-22 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:33:27] Production.INFO: ==1887== Releasing lock... [2025-04-22 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:33:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:34:06 [end_date_ymd] => 2025-04-22 13:34:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:34:06' and `end` < '2025-04-22 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-04-22 13:34:19] Production.INFO: count ==5986 [2025-04-22 13:34:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:34:06 - End Time 2025-04-22 13:34:06 [2025-04-22 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965277', 'tblTempUsageDetail_20' ) start [2025-04-22 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965277', 'tblTempUsageDetail_20' ) end [2025-04-22 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965277', 'tblTempVendorCDR_20' ) start [2025-04-22 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965277', 'tblTempVendorCDR_20' ) end [2025-04-22 13:34:22] Production.INFO: ProcessCDR(1,14965277,1,1,2) [2025-04-22 13:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965277', 'tblTempUsageDetail_20' ) start [2025-04-22 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965277', 'tblTempUsageDetail_20' ) end [2025-04-22 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:34:27] Production.INFO: ==1959== Releasing lock... [2025-04-22 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:34:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:35:05 [end_date_ymd] => 2025-04-22 13:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:35:05' and `end` < '2025-04-22 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-04-22 13:35:19] Production.INFO: count ==5989 [2025-04-22 13:35:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:35:05 - End Time 2025-04-22 13:35:05 [2025-04-22 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965282', 'tblTempUsageDetail_20' ) start [2025-04-22 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965282', 'tblTempUsageDetail_20' ) end [2025-04-22 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965282', 'tblTempVendorCDR_20' ) start [2025-04-22 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965282', 'tblTempVendorCDR_20' ) end [2025-04-22 13:35:22] Production.INFO: ProcessCDR(1,14965282,1,1,2) [2025-04-22 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965282', 'tblTempUsageDetail_20' ) start [2025-04-22 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965282', 'tblTempUsageDetail_20' ) end [2025-04-22 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:35:27] Production.INFO: ==2030== Releasing lock... [2025-04-22 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:35:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:36:06 [end_date_ymd] => 2025-04-22 13:36:06 [RateCDR] => 1 ) [2025-04-22 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:36:06' and `end` < '2025-04-22 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:36:20] Production.INFO: count ==5984 [2025-04-22 13:36:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:36:06 - End Time 2025-04-22 13:36:06 [2025-04-22 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965287', 'tblTempUsageDetail_20' ) start [2025-04-22 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965287', 'tblTempUsageDetail_20' ) end [2025-04-22 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965287', 'tblTempVendorCDR_20' ) start [2025-04-22 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965287', 'tblTempVendorCDR_20' ) end [2025-04-22 13:36:23] Production.INFO: ProcessCDR(1,14965287,1,1,2) [2025-04-22 13:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965287', 'tblTempUsageDetail_20' ) start [2025-04-22 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965287', 'tblTempUsageDetail_20' ) end [2025-04-22 13:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:36:28] Production.INFO: ==2102== Releasing lock... [2025-04-22 13:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:36:28] Production.INFO: 73 MB #Memory Used# [2025-04-22 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:37:05 [end_date_ymd] => 2025-04-22 13:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:37:05' and `end` < '2025-04-22 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-04-22 13:37:19] Production.INFO: count ==5986 [2025-04-22 13:37:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:37:05 - End Time 2025-04-22 13:37:05 [2025-04-22 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965292', 'tblTempUsageDetail_20' ) start [2025-04-22 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965292', 'tblTempUsageDetail_20' ) end [2025-04-22 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965292', 'tblTempVendorCDR_20' ) start [2025-04-22 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965292', 'tblTempVendorCDR_20' ) end [2025-04-22 13:37:22] Production.INFO: ProcessCDR(1,14965292,1,1,2) [2025-04-22 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965292', 'tblTempUsageDetail_20' ) start [2025-04-22 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965292', 'tblTempUsageDetail_20' ) end [2025-04-22 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:37:27] Production.INFO: ==2178== Releasing lock... [2025-04-22 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:37:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:38:05 [end_date_ymd] => 2025-04-22 13:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:38:05' and `end` < '2025-04-22 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-04-22 13:38:19] Production.INFO: count ==5988 [2025-04-22 13:38:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:38:05 - End Time 2025-04-22 13:38:05 [2025-04-22 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965297', 'tblTempUsageDetail_20' ) start [2025-04-22 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965297', 'tblTempUsageDetail_20' ) end [2025-04-22 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965297', 'tblTempVendorCDR_20' ) start [2025-04-22 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965297', 'tblTempVendorCDR_20' ) end [2025-04-22 13:38:22] Production.INFO: ProcessCDR(1,14965297,1,1,2) [2025-04-22 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965297', 'tblTempUsageDetail_20' ) start [2025-04-22 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965297', 'tblTempUsageDetail_20' ) end [2025-04-22 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:38:27] Production.INFO: ==2249== Releasing lock... [2025-04-22 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:38:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:39:05 [end_date_ymd] => 2025-04-22 13:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:39:05' and `end` < '2025-04-22 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-04-22 13:39:19] Production.INFO: count ==5966 [2025-04-22 13:39:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:39:05 - End Time 2025-04-22 13:39:05 [2025-04-22 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965302', 'tblTempUsageDetail_20' ) start [2025-04-22 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965302', 'tblTempUsageDetail_20' ) end [2025-04-22 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965302', 'tblTempVendorCDR_20' ) start [2025-04-22 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965302', 'tblTempVendorCDR_20' ) end [2025-04-22 13:39:22] Production.INFO: ProcessCDR(1,14965302,1,1,2) [2025-04-22 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965302', 'tblTempUsageDetail_20' ) start [2025-04-22 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965302', 'tblTempUsageDetail_20' ) end [2025-04-22 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:39:27] Production.INFO: ==2331== Releasing lock... [2025-04-22 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:39:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:40:06 [end_date_ymd] => 2025-04-22 13:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:40:06' and `end` < '2025-04-22 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-04-22 13:40:20] Production.INFO: count ==5968 [2025-04-22 13:40:23] Production.ERROR: pbx CDR StartTime 2025-04-22 10:40:06 - End Time 2025-04-22 13:40:06 [2025-04-22 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965308', 'tblTempUsageDetail_20' ) start [2025-04-22 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965308', 'tblTempUsageDetail_20' ) end [2025-04-22 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965308', 'tblTempVendorCDR_20' ) start [2025-04-22 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965308', 'tblTempVendorCDR_20' ) end [2025-04-22 13:40:23] Production.INFO: ProcessCDR(1,14965308,1,1,2) [2025-04-22 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965308', 'tblTempUsageDetail_20' ) start [2025-04-22 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965308', 'tblTempUsageDetail_20' ) end [2025-04-22 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:40:28] Production.INFO: ==2413== Releasing lock... [2025-04-22 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:40:28] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:41:05 [end_date_ymd] => 2025-04-22 13:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:41:05' and `end` < '2025-04-22 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-04-22 13:41:19] Production.INFO: count ==5924 [2025-04-22 13:41:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:41:05 - End Time 2025-04-22 13:41:05 [2025-04-22 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965313', 'tblTempUsageDetail_20' ) start [2025-04-22 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965313', 'tblTempUsageDetail_20' ) end [2025-04-22 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965313', 'tblTempVendorCDR_20' ) start [2025-04-22 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965313', 'tblTempVendorCDR_20' ) end [2025-04-22 13:41:23] Production.INFO: ProcessCDR(1,14965313,1,1,2) [2025-04-22 13:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965313', 'tblTempUsageDetail_20' ) start [2025-04-22 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965313', 'tblTempUsageDetail_20' ) end [2025-04-22 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:41:27] Production.INFO: ==2490== Releasing lock... [2025-04-22 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:41:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:42:05 [end_date_ymd] => 2025-04-22 13:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:42:05' and `end` < '2025-04-22 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-04-22 13:42:19] Production.INFO: count ==5901 [2025-04-22 13:42:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:42:05 - End Time 2025-04-22 13:42:05 [2025-04-22 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965318', 'tblTempUsageDetail_20' ) start [2025-04-22 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965318', 'tblTempUsageDetail_20' ) end [2025-04-22 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965318', 'tblTempVendorCDR_20' ) start [2025-04-22 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965318', 'tblTempVendorCDR_20' ) end [2025-04-22 13:42:23] Production.INFO: ProcessCDR(1,14965318,1,1,2) [2025-04-22 13:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965318', 'tblTempUsageDetail_20' ) start [2025-04-22 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965318', 'tblTempUsageDetail_20' ) end [2025-04-22 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:42:28] Production.INFO: ==2564== Releasing lock... [2025-04-22 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:42:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:43:04 [end_date_ymd] => 2025-04-22 13:43:04 [RateCDR] => 1 ) [2025-04-22 13:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:43:04' and `end` < '2025-04-22 13:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:43:18] Production.INFO: count ==5905 [2025-04-22 13:43:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:43:04 - End Time 2025-04-22 13:43:04 [2025-04-22 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965323', 'tblTempUsageDetail_20' ) start [2025-04-22 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965323', 'tblTempUsageDetail_20' ) end [2025-04-22 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965323', 'tblTempVendorCDR_20' ) start [2025-04-22 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965323', 'tblTempVendorCDR_20' ) end [2025-04-22 13:43:22] Production.INFO: ProcessCDR(1,14965323,1,1,2) [2025-04-22 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965323', 'tblTempUsageDetail_20' ) start [2025-04-22 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965323', 'tblTempUsageDetail_20' ) end [2025-04-22 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:43:27] Production.INFO: ==2675== Releasing lock... [2025-04-22 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:43:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:44:06 [end_date_ymd] => 2025-04-22 13:44:06 [RateCDR] => 1 ) [2025-04-22 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:44:06' and `end` < '2025-04-22 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:44:19] Production.INFO: count ==5905 [2025-04-22 13:44:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:44:06 - End Time 2025-04-22 13:44:06 [2025-04-22 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965328', 'tblTempUsageDetail_20' ) start [2025-04-22 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965328', 'tblTempUsageDetail_20' ) end [2025-04-22 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965328', 'tblTempVendorCDR_20' ) start [2025-04-22 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965328', 'tblTempVendorCDR_20' ) end [2025-04-22 13:44:23] Production.INFO: ProcessCDR(1,14965328,1,1,2) [2025-04-22 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965328', 'tblTempUsageDetail_20' ) start [2025-04-22 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965328', 'tblTempUsageDetail_20' ) end [2025-04-22 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:44:28] Production.INFO: ==2755== Releasing lock... [2025-04-22 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:44:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:45:06 [end_date_ymd] => 2025-04-22 13:45:06 [RateCDR] => 1 ) [2025-04-22 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:45:06' and `end` < '2025-04-22 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:45:20] Production.INFO: count ==5895 [2025-04-22 13:45:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:45:06 - End Time 2025-04-22 13:45:06 [2025-04-22 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965333', 'tblTempUsageDetail_20' ) start [2025-04-22 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965333', 'tblTempUsageDetail_20' ) end [2025-04-22 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965333', 'tblTempVendorCDR_20' ) start [2025-04-22 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965333', 'tblTempVendorCDR_20' ) end [2025-04-22 13:45:23] Production.INFO: ProcessCDR(1,14965333,1,1,2) [2025-04-22 13:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965333', 'tblTempUsageDetail_20' ) start [2025-04-22 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965333', 'tblTempUsageDetail_20' ) end [2025-04-22 13:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:45:28] Production.INFO: ==2830== Releasing lock... [2025-04-22 13:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:45:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:46:05 [end_date_ymd] => 2025-04-22 13:46:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:46:05' and `end` < '2025-04-22 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-04-22 13:46:19] Production.INFO: count ==5911 [2025-04-22 13:46:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:46:05 - End Time 2025-04-22 13:46:05 [2025-04-22 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965338', 'tblTempUsageDetail_20' ) start [2025-04-22 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965338', 'tblTempUsageDetail_20' ) end [2025-04-22 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965338', 'tblTempVendorCDR_20' ) start [2025-04-22 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965338', 'tblTempVendorCDR_20' ) end [2025-04-22 13:46:22] Production.INFO: ProcessCDR(1,14965338,1,1,2) [2025-04-22 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965338', 'tblTempUsageDetail_20' ) start [2025-04-22 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965338', 'tblTempUsageDetail_20' ) end [2025-04-22 13:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:46:28] Production.INFO: ==2900== Releasing lock... [2025-04-22 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:46:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:47:06 [end_date_ymd] => 2025-04-22 13:47:06 [RateCDR] => 1 ) [2025-04-22 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:47:06' and `end` < '2025-04-22 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:47:19] Production.INFO: count ==5907 [2025-04-22 13:47:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:47:06 - End Time 2025-04-22 13:47:06 [2025-04-22 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965343', 'tblTempUsageDetail_20' ) start [2025-04-22 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965343', 'tblTempUsageDetail_20' ) end [2025-04-22 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965343', 'tblTempVendorCDR_20' ) start [2025-04-22 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965343', 'tblTempVendorCDR_20' ) end [2025-04-22 13:47:23] Production.INFO: ProcessCDR(1,14965343,1,1,2) [2025-04-22 13:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965343', 'tblTempUsageDetail_20' ) start [2025-04-22 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965343', 'tblTempUsageDetail_20' ) end [2025-04-22 13:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:47:28] Production.INFO: ==2974== Releasing lock... [2025-04-22 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:47:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:48:05 [end_date_ymd] => 2025-04-22 13:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:48:05' and `end` < '2025-04-22 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-04-22 13:48:19] Production.INFO: count ==5939 [2025-04-22 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:48:05 - End Time 2025-04-22 13:48:05 [2025-04-22 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965348', 'tblTempUsageDetail_20' ) start [2025-04-22 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965348', 'tblTempUsageDetail_20' ) end [2025-04-22 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965348', 'tblTempVendorCDR_20' ) start [2025-04-22 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965348', 'tblTempVendorCDR_20' ) end [2025-04-22 13:48:22] Production.INFO: ProcessCDR(1,14965348,1,1,2) [2025-04-22 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965348', 'tblTempUsageDetail_20' ) start [2025-04-22 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965348', 'tblTempUsageDetail_20' ) end [2025-04-22 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:48:27] Production.INFO: ==3049== Releasing lock... [2025-04-22 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:48:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:49:05 [end_date_ymd] => 2025-04-22 13:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:49:05' and `end` < '2025-04-22 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-04-22 13:49:20] Production.INFO: count ==5927 [2025-04-22 13:49:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:49:05 - End Time 2025-04-22 13:49:05 [2025-04-22 13:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965353', 'tblTempUsageDetail_20' ) start [2025-04-22 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965353', 'tblTempUsageDetail_20' ) end [2025-04-22 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965353', 'tblTempVendorCDR_20' ) start [2025-04-22 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965353', 'tblTempVendorCDR_20' ) end [2025-04-22 13:49:23] Production.INFO: ProcessCDR(1,14965353,1,1,2) [2025-04-22 13:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965353', 'tblTempUsageDetail_20' ) start [2025-04-22 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965353', 'tblTempUsageDetail_20' ) end [2025-04-22 13:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:49:28] Production.INFO: ==3123== Releasing lock... [2025-04-22 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:49:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:50:06 [end_date_ymd] => 2025-04-22 13:50:06 [RateCDR] => 1 ) [2025-04-22 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:50:06' and `end` < '2025-04-22 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:50:20] Production.INFO: count ==5920 [2025-04-22 13:50:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:50:06 - End Time 2025-04-22 13:50:06 [2025-04-22 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965359', 'tblTempUsageDetail_20' ) start [2025-04-22 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965359', 'tblTempUsageDetail_20' ) end [2025-04-22 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965359', 'tblTempVendorCDR_20' ) start [2025-04-22 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965359', 'tblTempVendorCDR_20' ) end [2025-04-22 13:50:23] Production.INFO: ProcessCDR(1,14965359,1,1,2) [2025-04-22 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965359', 'tblTempUsageDetail_20' ) start [2025-04-22 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965359', 'tblTempUsageDetail_20' ) end [2025-04-22 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:50:28] Production.INFO: ==3203== Releasing lock... [2025-04-22 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:50:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:51:05 [end_date_ymd] => 2025-04-22 13:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:51:05' and `end` < '2025-04-22 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-04-22 13:51:19] Production.INFO: count ==5917 [2025-04-22 13:51:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:51:05 - End Time 2025-04-22 13:51:05 [2025-04-22 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965364', 'tblTempUsageDetail_20' ) start [2025-04-22 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965364', 'tblTempUsageDetail_20' ) end [2025-04-22 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965364', 'tblTempVendorCDR_20' ) start [2025-04-22 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965364', 'tblTempVendorCDR_20' ) end [2025-04-22 13:51:22] Production.INFO: ProcessCDR(1,14965364,1,1,2) [2025-04-22 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965364', 'tblTempUsageDetail_20' ) start [2025-04-22 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965364', 'tblTempUsageDetail_20' ) end [2025-04-22 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:51:28] Production.INFO: ==3281== Releasing lock... [2025-04-22 13:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:51:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:52:05 [end_date_ymd] => 2025-04-22 13:52:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:52:05' and `end` < '2025-04-22 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-04-22 13:52:19] Production.INFO: count ==5921 [2025-04-22 13:52:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:52:05 - End Time 2025-04-22 13:52:05 [2025-04-22 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965369', 'tblTempUsageDetail_20' ) start [2025-04-22 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965369', 'tblTempUsageDetail_20' ) end [2025-04-22 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965369', 'tblTempVendorCDR_20' ) start [2025-04-22 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965369', 'tblTempVendorCDR_20' ) end [2025-04-22 13:52:22] Production.INFO: ProcessCDR(1,14965369,1,1,2) [2025-04-22 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965369', 'tblTempUsageDetail_20' ) start [2025-04-22 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965369', 'tblTempUsageDetail_20' ) end [2025-04-22 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:52:27] Production.INFO: ==3352== Releasing lock... [2025-04-22 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:52:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:53:05 [end_date_ymd] => 2025-04-22 13:53:05 [RateCDR] => 1 ) [2025-04-22 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:53:05' and `end` < '2025-04-22 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:53:19] Production.INFO: count ==5918 [2025-04-22 13:53:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:53:05 - End Time 2025-04-22 13:53:05 [2025-04-22 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965374', 'tblTempUsageDetail_20' ) start [2025-04-22 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965374', 'tblTempUsageDetail_20' ) end [2025-04-22 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965374', 'tblTempVendorCDR_20' ) start [2025-04-22 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965374', 'tblTempVendorCDR_20' ) end [2025-04-22 13:53:22] Production.INFO: ProcessCDR(1,14965374,1,1,2) [2025-04-22 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965374', 'tblTempUsageDetail_20' ) start [2025-04-22 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965374', 'tblTempUsageDetail_20' ) end [2025-04-22 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:53:28] Production.INFO: ==3424== Releasing lock... [2025-04-22 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:53:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:54:05 [end_date_ymd] => 2025-04-22 13:54:05 [RateCDR] => 1 ) [2025-04-22 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 10:54:05' and `end` < '2025-04-22 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 13:54:19] Production.INFO: count ==5906 [2025-04-22 13:54:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:54:05 - End Time 2025-04-22 13:54:05 [2025-04-22 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965379', 'tblTempUsageDetail_20' ) start [2025-04-22 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965379', 'tblTempUsageDetail_20' ) end [2025-04-22 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965379', 'tblTempVendorCDR_20' ) start [2025-04-22 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965379', 'tblTempVendorCDR_20' ) end [2025-04-22 13:54:23] Production.INFO: ProcessCDR(1,14965379,1,1,2) [2025-04-22 13:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965379', 'tblTempUsageDetail_20' ) start [2025-04-22 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965379', 'tblTempUsageDetail_20' ) end [2025-04-22 13:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:54:28] Production.INFO: ==3493== Releasing lock... [2025-04-22 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:54:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:55:05 [end_date_ymd] => 2025-04-22 13:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:55:05' and `end` < '2025-04-22 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-04-22 13:55:19] Production.INFO: count ==5920 [2025-04-22 13:55:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:55:05 - End Time 2025-04-22 13:55:05 [2025-04-22 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965384', 'tblTempUsageDetail_20' ) start [2025-04-22 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965384', 'tblTempUsageDetail_20' ) end [2025-04-22 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965384', 'tblTempVendorCDR_20' ) start [2025-04-22 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965384', 'tblTempVendorCDR_20' ) end [2025-04-22 13:55:22] Production.INFO: ProcessCDR(1,14965384,1,1,2) [2025-04-22 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965384', 'tblTempUsageDetail_20' ) start [2025-04-22 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965384', 'tblTempUsageDetail_20' ) end [2025-04-22 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:55:27] Production.INFO: ==3567== Releasing lock... [2025-04-22 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:55:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:56:06 [end_date_ymd] => 2025-04-22 13:56:06 [RateCDR] => 1 ) [2025-04-22 13: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-04-22 10:56:06' and `end` < '2025-04-22 13: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-04-22 13:56:20] Production.INFO: count ==6039 [2025-04-22 13:56:22] Production.ERROR: pbx CDR StartTime 2025-04-22 10:56:06 - End Time 2025-04-22 13:56:06 [2025-04-22 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965389', 'tblTempUsageDetail_20' ) start [2025-04-22 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965389', 'tblTempUsageDetail_20' ) end [2025-04-22 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965389', 'tblTempVendorCDR_20' ) start [2025-04-22 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965389', 'tblTempVendorCDR_20' ) end [2025-04-22 13:56:23] Production.INFO: ProcessCDR(1,14965389,1,1,2) [2025-04-22 13:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965389', 'tblTempUsageDetail_20' ) start [2025-04-22 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965389', 'tblTempUsageDetail_20' ) end [2025-04-22 13:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:56:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:56:29] Production.INFO: ==3643== Releasing lock... [2025-04-22 13:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:56:29] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:57:05 [end_date_ymd] => 2025-04-22 13:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:57:05' and `end` < '2025-04-22 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-04-22 13:57:19] Production.INFO: count ==6051 [2025-04-22 13:57:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:57:05 - End Time 2025-04-22 13:57:05 [2025-04-22 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965394', 'tblTempUsageDetail_20' ) start [2025-04-22 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965394', 'tblTempUsageDetail_20' ) end [2025-04-22 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965394', 'tblTempVendorCDR_20' ) start [2025-04-22 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965394', 'tblTempVendorCDR_20' ) end [2025-04-22 13:57:22] Production.INFO: ProcessCDR(1,14965394,1,1,2) [2025-04-22 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965394', 'tblTempUsageDetail_20' ) start [2025-04-22 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965394', 'tblTempUsageDetail_20' ) end [2025-04-22 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:57:27] Production.INFO: ==3721== Releasing lock... [2025-04-22 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:57:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:58:06 [end_date_ymd] => 2025-04-22 13:58:06 [RateCDR] => 1 ) [2025-04-22 13: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-04-22 10:58:06' and `end` < '2025-04-22 13: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-04-22 13:58:20] Production.INFO: count ==6060 [2025-04-22 13:58:23] Production.ERROR: pbx CDR StartTime 2025-04-22 10:58:06 - End Time 2025-04-22 13:58:06 [2025-04-22 13:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965399', 'tblTempUsageDetail_20' ) start [2025-04-22 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965399', 'tblTempUsageDetail_20' ) end [2025-04-22 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965399', 'tblTempVendorCDR_20' ) start [2025-04-22 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965399', 'tblTempVendorCDR_20' ) end [2025-04-22 13:58:23] Production.INFO: ProcessCDR(1,14965399,1,1,2) [2025-04-22 13:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965399', 'tblTempUsageDetail_20' ) start [2025-04-22 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965399', 'tblTempUsageDetail_20' ) end [2025-04-22 13:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:58:28] Production.INFO: ==3833== Releasing lock... [2025-04-22 13:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:58:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 10:59:05 [end_date_ymd] => 2025-04-22 13:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 10:59:05' and `end` < '2025-04-22 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-04-22 13:59:19] Production.INFO: count ==6052 [2025-04-22 13:59:21] Production.ERROR: pbx CDR StartTime 2025-04-22 10:59:05 - End Time 2025-04-22 13:59:05 [2025-04-22 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965404', 'tblTempUsageDetail_20' ) start [2025-04-22 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965404', 'tblTempUsageDetail_20' ) end [2025-04-22 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965404', 'tblTempVendorCDR_20' ) start [2025-04-22 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965404', 'tblTempVendorCDR_20' ) end [2025-04-22 13:59:22] Production.INFO: ProcessCDR(1,14965404,1,1,2) [2025-04-22 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965404', 'tblTempUsageDetail_20' ) start [2025-04-22 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965404', 'tblTempUsageDetail_20' ) end [2025-04-22 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 13:59:27] Production.INFO: ==3910== Releasing lock... [2025-04-22 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 13:59:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:00:06 [end_date_ymd] => 2025-04-22 14:00:06 [RateCDR] => 1 ) [2025-04-22 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:00:06' and `end` < '2025-04-22 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:00:20] Production.INFO: count ==6047 [2025-04-22 14:00:23] Production.ERROR: pbx CDR StartTime 2025-04-22 11:00:06 - End Time 2025-04-22 14:00:06 [2025-04-22 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965410', 'tblTempUsageDetail_20' ) start [2025-04-22 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965410', 'tblTempUsageDetail_20' ) end [2025-04-22 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965410', 'tblTempVendorCDR_20' ) start [2025-04-22 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965410', 'tblTempVendorCDR_20' ) end [2025-04-22 14:00:23] Production.INFO: ProcessCDR(1,14965410,1,1,2) [2025-04-22 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965410', 'tblTempUsageDetail_20' ) start [2025-04-22 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965410', 'tblTempUsageDetail_20' ) end [2025-04-22 14:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:00:29] Production.INFO: ==3983== Releasing lock... [2025-04-22 14:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:00:29] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:01:05 [end_date_ymd] => 2025-04-22 14:01:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:01:05' and `end` < '2025-04-22 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:01:19] Production.INFO: count ==6042 [2025-04-22 14:01:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:01:05 - End Time 2025-04-22 14:01:05 [2025-04-22 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965415', 'tblTempUsageDetail_20' ) start [2025-04-22 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965415', 'tblTempUsageDetail_20' ) end [2025-04-22 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965415', 'tblTempVendorCDR_20' ) start [2025-04-22 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965415', 'tblTempVendorCDR_20' ) end [2025-04-22 14:01:22] Production.INFO: ProcessCDR(1,14965415,1,1,2) [2025-04-22 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965415', 'tblTempUsageDetail_20' ) start [2025-04-22 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965415', 'tblTempUsageDetail_20' ) end [2025-04-22 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:01:28] Production.INFO: ==4073== Releasing lock... [2025-04-22 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:01:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:02:05 [end_date_ymd] => 2025-04-22 14:02:05 [RateCDR] => 1 ) [2025-04-22 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:02:05' and `end` < '2025-04-22 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:02:19] Production.INFO: count ==6037 [2025-04-22 14:02:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:02:05 - End Time 2025-04-22 14:02:05 [2025-04-22 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965420', 'tblTempUsageDetail_20' ) start [2025-04-22 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965420', 'tblTempUsageDetail_20' ) end [2025-04-22 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965420', 'tblTempVendorCDR_20' ) start [2025-04-22 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965420', 'tblTempVendorCDR_20' ) end [2025-04-22 14:02:22] Production.INFO: ProcessCDR(1,14965420,1,1,2) [2025-04-22 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965420', 'tblTempUsageDetail_20' ) start [2025-04-22 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965420', 'tblTempUsageDetail_20' ) end [2025-04-22 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:02:28] Production.INFO: ==4152== Releasing lock... [2025-04-22 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:02:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:03:04 [end_date_ymd] => 2025-04-22 14:03:04 [RateCDR] => 1 ) [2025-04-22 14: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-04-22 11:03:04' and `end` < '2025-04-22 14: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-04-22 14:03:18] Production.INFO: count ==6036 [2025-04-22 14:03:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:03:04 - End Time 2025-04-22 14:03:04 [2025-04-22 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965425', 'tblTempUsageDetail_20' ) start [2025-04-22 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965425', 'tblTempUsageDetail_20' ) end [2025-04-22 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965425', 'tblTempVendorCDR_20' ) start [2025-04-22 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965425', 'tblTempVendorCDR_20' ) end [2025-04-22 14:03:22] Production.INFO: ProcessCDR(1,14965425,1,1,2) [2025-04-22 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965425', 'tblTempUsageDetail_20' ) start [2025-04-22 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965425', 'tblTempUsageDetail_20' ) end [2025-04-22 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:03:27] Production.INFO: ==4229== Releasing lock... [2025-04-22 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:03:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:04:05 [end_date_ymd] => 2025-04-22 14:04:05 [RateCDR] => 1 ) [2025-04-22 14: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-04-22 11:04:05' and `end` < '2025-04-22 14: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-04-22 14:04:19] Production.INFO: count ==6015 [2025-04-22 14:04:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:04:05 - End Time 2025-04-22 14:04:05 [2025-04-22 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965430', 'tblTempUsageDetail_20' ) start [2025-04-22 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965430', 'tblTempUsageDetail_20' ) end [2025-04-22 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965430', 'tblTempVendorCDR_20' ) start [2025-04-22 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965430', 'tblTempVendorCDR_20' ) end [2025-04-22 14:04:22] Production.INFO: ProcessCDR(1,14965430,1,1,2) [2025-04-22 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965430', 'tblTempUsageDetail_20' ) start [2025-04-22 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965430', 'tblTempUsageDetail_20' ) end [2025-04-22 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:04:27] Production.INFO: ==4310== Releasing lock... [2025-04-22 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:04:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:05:06 [end_date_ymd] => 2025-04-22 14:05:06 [RateCDR] => 1 ) [2025-04-22 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:05:06' and `end` < '2025-04-22 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:05:19] Production.INFO: count ==6018 [2025-04-22 14:05:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:05:06 - End Time 2025-04-22 14:05:06 [2025-04-22 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965435', 'tblTempUsageDetail_20' ) start [2025-04-22 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965435', 'tblTempUsageDetail_20' ) end [2025-04-22 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965435', 'tblTempVendorCDR_20' ) start [2025-04-22 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965435', 'tblTempVendorCDR_20' ) end [2025-04-22 14:05:23] Production.INFO: ProcessCDR(1,14965435,1,1,2) [2025-04-22 14:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965435', 'tblTempUsageDetail_20' ) start [2025-04-22 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965435', 'tblTempUsageDetail_20' ) end [2025-04-22 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:05:28] Production.INFO: ==4381== Releasing lock... [2025-04-22 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:05:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:06:05 [end_date_ymd] => 2025-04-22 14:06:05 [RateCDR] => 1 ) [2025-04-22 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:06:05' and `end` < '2025-04-22 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:06:19] Production.INFO: count ==6041 [2025-04-22 14:06:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:06:05 - End Time 2025-04-22 14:06:05 [2025-04-22 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965440', 'tblTempUsageDetail_20' ) start [2025-04-22 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965440', 'tblTempUsageDetail_20' ) end [2025-04-22 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965440', 'tblTempVendorCDR_20' ) start [2025-04-22 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965440', 'tblTempVendorCDR_20' ) end [2025-04-22 14:06:22] Production.INFO: ProcessCDR(1,14965440,1,1,2) [2025-04-22 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965440', 'tblTempUsageDetail_20' ) start [2025-04-22 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965440', 'tblTempUsageDetail_20' ) end [2025-04-22 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:06:27] Production.INFO: ==4452== Releasing lock... [2025-04-22 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:06:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:07:05 [end_date_ymd] => 2025-04-22 14:07:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:07:05' and `end` < '2025-04-22 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-04-22 14:07:19] Production.INFO: count ==6033 [2025-04-22 14:07:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:07:05 - End Time 2025-04-22 14:07:05 [2025-04-22 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965445', 'tblTempUsageDetail_20' ) start [2025-04-22 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965445', 'tblTempUsageDetail_20' ) end [2025-04-22 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965445', 'tblTempVendorCDR_20' ) start [2025-04-22 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965445', 'tblTempVendorCDR_20' ) end [2025-04-22 14:07:23] Production.INFO: ProcessCDR(1,14965445,1,1,2) [2025-04-22 14:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965445', 'tblTempUsageDetail_20' ) start [2025-04-22 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965445', 'tblTempUsageDetail_20' ) end [2025-04-22 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:07:28] Production.INFO: ==4528== Releasing lock... [2025-04-22 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:07:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:08:05 [end_date_ymd] => 2025-04-22 14:08:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:08:05' and `end` < '2025-04-22 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-04-22 14:08:19] Production.INFO: count ==6032 [2025-04-22 14:08:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:08:05 - End Time 2025-04-22 14:08:05 [2025-04-22 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965450', 'tblTempUsageDetail_20' ) start [2025-04-22 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965450', 'tblTempUsageDetail_20' ) end [2025-04-22 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965450', 'tblTempVendorCDR_20' ) start [2025-04-22 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965450', 'tblTempVendorCDR_20' ) end [2025-04-22 14:08:22] Production.INFO: ProcessCDR(1,14965450,1,1,2) [2025-04-22 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965450', 'tblTempUsageDetail_20' ) start [2025-04-22 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965450', 'tblTempUsageDetail_20' ) end [2025-04-22 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:08:27] Production.INFO: ==4605== Releasing lock... [2025-04-22 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:08:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:09:05 [end_date_ymd] => 2025-04-22 14:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:09:05' and `end` < '2025-04-22 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-04-22 14:09:19] Production.INFO: count ==6032 [2025-04-22 14:09:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:09:05 - End Time 2025-04-22 14:09:05 [2025-04-22 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965455', 'tblTempUsageDetail_20' ) start [2025-04-22 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965455', 'tblTempUsageDetail_20' ) end [2025-04-22 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965455', 'tblTempVendorCDR_20' ) start [2025-04-22 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965455', 'tblTempVendorCDR_20' ) end [2025-04-22 14:09:23] Production.INFO: ProcessCDR(1,14965455,1,1,2) [2025-04-22 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965455', 'tblTempUsageDetail_20' ) start [2025-04-22 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965455', 'tblTempUsageDetail_20' ) end [2025-04-22 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:09:28] Production.INFO: ==4684== Releasing lock... [2025-04-22 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:09:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:10:06 [end_date_ymd] => 2025-04-22 14:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:10:06' and `end` < '2025-04-22 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-04-22 14:10:20] Production.INFO: count ==6027 [2025-04-22 14:10:23] Production.ERROR: pbx CDR StartTime 2025-04-22 11:10:06 - End Time 2025-04-22 14:10:06 [2025-04-22 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965460', 'tblTempUsageDetail_20' ) start [2025-04-22 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965460', 'tblTempUsageDetail_20' ) end [2025-04-22 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965460', 'tblTempVendorCDR_20' ) start [2025-04-22 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965460', 'tblTempVendorCDR_20' ) end [2025-04-22 14:10:24] Production.INFO: ProcessCDR(1,14965460,1,1,2) [2025-04-22 14:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965460', 'tblTempUsageDetail_20' ) start [2025-04-22 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965460', 'tblTempUsageDetail_20' ) end [2025-04-22 14:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:10:29] Production.INFO: ==4756== Releasing lock... [2025-04-22 14:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:10:29] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:11:05 [end_date_ymd] => 2025-04-22 14:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:11:05' and `end` < '2025-04-22 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-04-22 14:11:19] Production.INFO: count ==6037 [2025-04-22 14:11:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:11:05 - End Time 2025-04-22 14:11:05 [2025-04-22 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965466', 'tblTempUsageDetail_20' ) start [2025-04-22 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965466', 'tblTempUsageDetail_20' ) end [2025-04-22 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965466', 'tblTempVendorCDR_20' ) start [2025-04-22 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965466', 'tblTempVendorCDR_20' ) end [2025-04-22 14:11:22] Production.INFO: ProcessCDR(1,14965466,1,1,2) [2025-04-22 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965466', 'tblTempUsageDetail_20' ) start [2025-04-22 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965466', 'tblTempUsageDetail_20' ) end [2025-04-22 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:11:28] Production.INFO: ==4830== Releasing lock... [2025-04-22 14:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:11:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:12:06 [end_date_ymd] => 2025-04-22 14:12:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:12:06' and `end` < '2025-04-22 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-04-22 14:12:19] Production.INFO: count ==6054 [2025-04-22 14:12:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:12:06 - End Time 2025-04-22 14:12:06 [2025-04-22 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965471', 'tblTempUsageDetail_20' ) start [2025-04-22 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965471', 'tblTempUsageDetail_20' ) end [2025-04-22 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965471', 'tblTempVendorCDR_20' ) start [2025-04-22 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965471', 'tblTempVendorCDR_20' ) end [2025-04-22 14:12:22] Production.INFO: ProcessCDR(1,14965471,1,1,2) [2025-04-22 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965471', 'tblTempUsageDetail_20' ) start [2025-04-22 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965471', 'tblTempUsageDetail_20' ) end [2025-04-22 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:12:27] Production.INFO: ==4904== Releasing lock... [2025-04-22 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:12:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:13:06 [end_date_ymd] => 2025-04-22 14:13:06 [RateCDR] => 1 ) [2025-04-22 14: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-04-22 11:13:06' and `end` < '2025-04-22 14: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-04-22 14:13:19] Production.INFO: count ==6060 [2025-04-22 14:13:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:13:06 - End Time 2025-04-22 14:13:06 [2025-04-22 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965476', 'tblTempUsageDetail_20' ) start [2025-04-22 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965476', 'tblTempUsageDetail_20' ) end [2025-04-22 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965476', 'tblTempVendorCDR_20' ) start [2025-04-22 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965476', 'tblTempVendorCDR_20' ) end [2025-04-22 14:13:23] Production.INFO: ProcessCDR(1,14965476,1,1,2) [2025-04-22 14:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965476', 'tblTempUsageDetail_20' ) start [2025-04-22 14:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965476', 'tblTempUsageDetail_20' ) end [2025-04-22 14:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:13:28] Production.INFO: ==4974== Releasing lock... [2025-04-22 14:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:13:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:14:05 [end_date_ymd] => 2025-04-22 14:14:05 [RateCDR] => 1 ) [2025-04-22 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:14:05' and `end` < '2025-04-22 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:14:19] Production.INFO: count ==6049 [2025-04-22 14:14:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:14:05 - End Time 2025-04-22 14:14:05 [2025-04-22 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965481', 'tblTempUsageDetail_20' ) start [2025-04-22 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965481', 'tblTempUsageDetail_20' ) end [2025-04-22 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965481', 'tblTempVendorCDR_20' ) start [2025-04-22 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965481', 'tblTempVendorCDR_20' ) end [2025-04-22 14:14:22] Production.INFO: ProcessCDR(1,14965481,1,1,2) [2025-04-22 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965481', 'tblTempUsageDetail_20' ) start [2025-04-22 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965481', 'tblTempUsageDetail_20' ) end [2025-04-22 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:14:27] Production.INFO: ==5084== Releasing lock... [2025-04-22 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:14:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:15:06 [end_date_ymd] => 2025-04-22 14:15:06 [RateCDR] => 1 ) [2025-04-22 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:15:06' and `end` < '2025-04-22 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:15:20] Production.INFO: count ==6058 [2025-04-22 14:15:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:15:06 - End Time 2025-04-22 14:15:06 [2025-04-22 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965486', 'tblTempUsageDetail_20' ) start [2025-04-22 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965486', 'tblTempUsageDetail_20' ) end [2025-04-22 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965486', 'tblTempVendorCDR_20' ) start [2025-04-22 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965486', 'tblTempVendorCDR_20' ) end [2025-04-22 14:15:23] Production.INFO: ProcessCDR(1,14965486,1,1,2) [2025-04-22 14:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965486', 'tblTempUsageDetail_20' ) start [2025-04-22 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965486', 'tblTempUsageDetail_20' ) end [2025-04-22 14:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:15:28] Production.INFO: ==5159== Releasing lock... [2025-04-22 14:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:15:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:16:05 [end_date_ymd] => 2025-04-22 14:16:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:16:05' and `end` < '2025-04-22 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-04-22 14:16:19] Production.INFO: count ==6066 [2025-04-22 14:16:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:16:05 - End Time 2025-04-22 14:16:05 [2025-04-22 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965491', 'tblTempUsageDetail_20' ) start [2025-04-22 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965491', 'tblTempUsageDetail_20' ) end [2025-04-22 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965491', 'tblTempVendorCDR_20' ) start [2025-04-22 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965491', 'tblTempVendorCDR_20' ) end [2025-04-22 14:16:22] Production.INFO: ProcessCDR(1,14965491,1,1,2) [2025-04-22 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965491', 'tblTempUsageDetail_20' ) start [2025-04-22 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965491', 'tblTempUsageDetail_20' ) end [2025-04-22 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:16:27] Production.INFO: ==5239== Releasing lock... [2025-04-22 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:16:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:17:05 [end_date_ymd] => 2025-04-22 14:17:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:17:05' and `end` < '2025-04-22 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-04-22 14:17:19] Production.INFO: count ==6057 [2025-04-22 14:17:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:17:05 - End Time 2025-04-22 14:17:05 [2025-04-22 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965496', 'tblTempUsageDetail_20' ) start [2025-04-22 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965496', 'tblTempUsageDetail_20' ) end [2025-04-22 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965496', 'tblTempVendorCDR_20' ) start [2025-04-22 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965496', 'tblTempVendorCDR_20' ) end [2025-04-22 14:17:22] Production.INFO: ProcessCDR(1,14965496,1,1,2) [2025-04-22 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965496', 'tblTempUsageDetail_20' ) start [2025-04-22 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965496', 'tblTempUsageDetail_20' ) end [2025-04-22 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:17:27] Production.INFO: ==5328== Releasing lock... [2025-04-22 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:17:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:18:04 [end_date_ymd] => 2025-04-22 14:18:04 [RateCDR] => 1 ) [2025-04-22 14:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:18:04' and `end` < '2025-04-22 14:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:18:18] Production.INFO: count ==6066 [2025-04-22 14:18:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:18:04 - End Time 2025-04-22 14:18:04 [2025-04-22 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965501', 'tblTempUsageDetail_20' ) start [2025-04-22 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965501', 'tblTempUsageDetail_20' ) end [2025-04-22 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965501', 'tblTempVendorCDR_20' ) start [2025-04-22 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965501', 'tblTempVendorCDR_20' ) end [2025-04-22 14:18:21] Production.INFO: ProcessCDR(1,14965501,1,1,2) [2025-04-22 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965501', 'tblTempUsageDetail_20' ) start [2025-04-22 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965501', 'tblTempUsageDetail_20' ) end [2025-04-22 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:18:26] Production.INFO: ==5404== Releasing lock... [2025-04-22 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:18:26] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:19:05 [end_date_ymd] => 2025-04-22 14:19:05 [RateCDR] => 1 ) [2025-04-22 14: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-04-22 11:19:05' and `end` < '2025-04-22 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-04-22 14:19:20] Production.INFO: count ==6072 [2025-04-22 14:19:23] Production.ERROR: pbx CDR StartTime 2025-04-22 11:19:05 - End Time 2025-04-22 14:19:05 [2025-04-22 14:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965506', 'tblTempUsageDetail_20' ) start [2025-04-22 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965506', 'tblTempUsageDetail_20' ) end [2025-04-22 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965506', 'tblTempVendorCDR_20' ) start [2025-04-22 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965506', 'tblTempVendorCDR_20' ) end [2025-04-22 14:19:23] Production.INFO: ProcessCDR(1,14965506,1,1,2) [2025-04-22 14:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965506', 'tblTempUsageDetail_20' ) start [2025-04-22 14:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965506', 'tblTempUsageDetail_20' ) end [2025-04-22 14:19:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:19:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:19:29] Production.INFO: ==5484== Releasing lock... [2025-04-22 14:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:19:29] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:20:06 [end_date_ymd] => 2025-04-22 14:20:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:20:06' and `end` < '2025-04-22 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-04-22 14:20:20] Production.INFO: count ==6054 [2025-04-22 14:20:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:20:06 - End Time 2025-04-22 14:20:06 [2025-04-22 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965512', 'tblTempUsageDetail_20' ) start [2025-04-22 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965512', 'tblTempUsageDetail_20' ) end [2025-04-22 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965512', 'tblTempVendorCDR_20' ) start [2025-04-22 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965512', 'tblTempVendorCDR_20' ) end [2025-04-22 14:20:23] Production.INFO: ProcessCDR(1,14965512,1,1,2) [2025-04-22 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965512', 'tblTempUsageDetail_20' ) start [2025-04-22 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965512', 'tblTempUsageDetail_20' ) end [2025-04-22 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:20:28] Production.INFO: ==5563== Releasing lock... [2025-04-22 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:20:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:21:05 [end_date_ymd] => 2025-04-22 14:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:21:05' and `end` < '2025-04-22 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-04-22 14:21:19] Production.INFO: count ==6052 [2025-04-22 14:21:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:21:05 - End Time 2025-04-22 14:21:05 [2025-04-22 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965517', 'tblTempUsageDetail_20' ) start [2025-04-22 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965517', 'tblTempUsageDetail_20' ) end [2025-04-22 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965517', 'tblTempVendorCDR_20' ) start [2025-04-22 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965517', 'tblTempVendorCDR_20' ) end [2025-04-22 14:21:22] Production.INFO: ProcessCDR(1,14965517,1,1,2) [2025-04-22 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965517', 'tblTempUsageDetail_20' ) start [2025-04-22 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965517', 'tblTempUsageDetail_20' ) end [2025-04-22 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:21:27] Production.INFO: ==5643== Releasing lock... [2025-04-22 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:21:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:22:05 [end_date_ymd] => 2025-04-22 14:22:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:22:05' and `end` < '2025-04-22 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-04-22 14:22:19] Production.INFO: count ==6053 [2025-04-22 14:22:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:22:05 - End Time 2025-04-22 14:22:05 [2025-04-22 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965522', 'tblTempUsageDetail_20' ) start [2025-04-22 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965522', 'tblTempUsageDetail_20' ) end [2025-04-22 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965522', 'tblTempVendorCDR_20' ) start [2025-04-22 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965522', 'tblTempVendorCDR_20' ) end [2025-04-22 14:22:22] Production.INFO: ProcessCDR(1,14965522,1,1,2) [2025-04-22 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965522', 'tblTempUsageDetail_20' ) start [2025-04-22 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965522', 'tblTempUsageDetail_20' ) end [2025-04-22 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:22:27] Production.INFO: ==5715== Releasing lock... [2025-04-22 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:22:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:23:05 [end_date_ymd] => 2025-04-22 14:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:23:05' and `end` < '2025-04-22 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-04-22 14:23:19] Production.INFO: count ==6047 [2025-04-22 14:23:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:23:05 - End Time 2025-04-22 14:23:05 [2025-04-22 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965527', 'tblTempUsageDetail_20' ) start [2025-04-22 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965527', 'tblTempUsageDetail_20' ) end [2025-04-22 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965527', 'tblTempVendorCDR_20' ) start [2025-04-22 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965527', 'tblTempVendorCDR_20' ) end [2025-04-22 14:23:22] Production.INFO: ProcessCDR(1,14965527,1,1,2) [2025-04-22 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965527', 'tblTempUsageDetail_20' ) start [2025-04-22 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965527', 'tblTempUsageDetail_20' ) end [2025-04-22 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:23:27] Production.INFO: ==5787== Releasing lock... [2025-04-22 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:23:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:24:06 [end_date_ymd] => 2025-04-22 14:24:06 [RateCDR] => 1 ) [2025-04-22 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:24:06' and `end` < '2025-04-22 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:24:20] Production.INFO: count ==6033 [2025-04-22 14:24:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:24:06 - End Time 2025-04-22 14:24:06 [2025-04-22 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965532', 'tblTempUsageDetail_20' ) start [2025-04-22 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965532', 'tblTempUsageDetail_20' ) end [2025-04-22 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965532', 'tblTempVendorCDR_20' ) start [2025-04-22 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965532', 'tblTempVendorCDR_20' ) end [2025-04-22 14:24:23] Production.INFO: ProcessCDR(1,14965532,1,1,2) [2025-04-22 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965532', 'tblTempUsageDetail_20' ) start [2025-04-22 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965532', 'tblTempUsageDetail_20' ) end [2025-04-22 14:24:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:24:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:24:29] Production.INFO: ==5862== Releasing lock... [2025-04-22 14:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:24:29] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:25:05 [end_date_ymd] => 2025-04-22 14:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:25:05' and `end` < '2025-04-22 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-04-22 14:25:19] Production.INFO: count ==6043 [2025-04-22 14:25:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:25:05 - End Time 2025-04-22 14:25:05 [2025-04-22 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965537', 'tblTempUsageDetail_20' ) start [2025-04-22 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965537', 'tblTempUsageDetail_20' ) end [2025-04-22 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965537', 'tblTempVendorCDR_20' ) start [2025-04-22 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965537', 'tblTempVendorCDR_20' ) end [2025-04-22 14:25:22] Production.INFO: ProcessCDR(1,14965537,1,1,2) [2025-04-22 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965537', 'tblTempUsageDetail_20' ) start [2025-04-22 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965537', 'tblTempUsageDetail_20' ) end [2025-04-22 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:25:28] Production.INFO: ==5935== Releasing lock... [2025-04-22 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:25:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:26:06 [end_date_ymd] => 2025-04-22 14:26:06 [RateCDR] => 1 ) [2025-04-22 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:26:06' and `end` < '2025-04-22 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:26:20] Production.INFO: count ==6055 [2025-04-22 14:26:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:26:06 - End Time 2025-04-22 14:26:06 [2025-04-22 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965542', 'tblTempUsageDetail_20' ) start [2025-04-22 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965542', 'tblTempUsageDetail_20' ) end [2025-04-22 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965542', 'tblTempVendorCDR_20' ) start [2025-04-22 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965542', 'tblTempVendorCDR_20' ) end [2025-04-22 14:26:23] Production.INFO: ProcessCDR(1,14965542,1,1,2) [2025-04-22 14:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965542', 'tblTempUsageDetail_20' ) start [2025-04-22 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965542', 'tblTempUsageDetail_20' ) end [2025-04-22 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:26:28] Production.INFO: ==6010== Releasing lock... [2025-04-22 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:26:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-22 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:27:05 [end_date_ymd] => 2025-04-22 14:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:27:05' and `end` < '2025-04-22 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-04-22 14:27:19] Production.INFO: count ==6030 [2025-04-22 14:27:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:27:05 - End Time 2025-04-22 14:27:05 [2025-04-22 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965547', 'tblTempUsageDetail_20' ) start [2025-04-22 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965547', 'tblTempUsageDetail_20' ) end [2025-04-22 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965547', 'tblTempVendorCDR_20' ) start [2025-04-22 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965547', 'tblTempVendorCDR_20' ) end [2025-04-22 14:27:22] Production.INFO: ProcessCDR(1,14965547,1,1,2) [2025-04-22 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965547', 'tblTempUsageDetail_20' ) start [2025-04-22 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965547', 'tblTempUsageDetail_20' ) end [2025-04-22 14:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:27:28] Production.INFO: ==6082== Releasing lock... [2025-04-22 14:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:27:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:28:05 [end_date_ymd] => 2025-04-22 14:28:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:28:05' and `end` < '2025-04-22 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-04-22 14:28:20] Production.INFO: count ==6032 [2025-04-22 14:28:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:28:05 - End Time 2025-04-22 14:28:05 [2025-04-22 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965552', 'tblTempUsageDetail_20' ) start [2025-04-22 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965552', 'tblTempUsageDetail_20' ) end [2025-04-22 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965552', 'tblTempVendorCDR_20' ) start [2025-04-22 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965552', 'tblTempVendorCDR_20' ) end [2025-04-22 14:28:23] Production.INFO: ProcessCDR(1,14965552,1,1,2) [2025-04-22 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965552', 'tblTempUsageDetail_20' ) start [2025-04-22 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965552', 'tblTempUsageDetail_20' ) end [2025-04-22 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:28:29] Production.INFO: ==6155== Releasing lock... [2025-04-22 14:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:28:29] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:29:05 [end_date_ymd] => 2025-04-22 14:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:29:05' and `end` < '2025-04-22 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-04-22 14:29:20] Production.INFO: count ==6026 [2025-04-22 14:29:23] Production.ERROR: pbx CDR StartTime 2025-04-22 11:29:05 - End Time 2025-04-22 14:29:05 [2025-04-22 14:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965557', 'tblTempUsageDetail_20' ) start [2025-04-22 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965557', 'tblTempUsageDetail_20' ) end [2025-04-22 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965557', 'tblTempVendorCDR_20' ) start [2025-04-22 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965557', 'tblTempVendorCDR_20' ) end [2025-04-22 14:29:23] Production.INFO: ProcessCDR(1,14965557,1,1,2) [2025-04-22 14:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965557', 'tblTempUsageDetail_20' ) start [2025-04-22 14:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965557', 'tblTempUsageDetail_20' ) end [2025-04-22 14:29:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:29:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:29:29] Production.INFO: ==6263== Releasing lock... [2025-04-22 14:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:29:29] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:30:06 [end_date_ymd] => 2025-04-22 14:30:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:30:06' and `end` < '2025-04-22 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-04-22 14:30:20] Production.INFO: count ==6014 [2025-04-22 14:30:23] Production.ERROR: pbx CDR StartTime 2025-04-22 11:30:06 - End Time 2025-04-22 14:30:06 [2025-04-22 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965563', 'tblTempUsageDetail_20' ) start [2025-04-22 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965563', 'tblTempUsageDetail_20' ) end [2025-04-22 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965563', 'tblTempVendorCDR_20' ) start [2025-04-22 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965563', 'tblTempVendorCDR_20' ) end [2025-04-22 14:30:23] Production.INFO: ProcessCDR(1,14965563,1,1,2) [2025-04-22 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965563', 'tblTempUsageDetail_20' ) start [2025-04-22 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965563', 'tblTempUsageDetail_20' ) end [2025-04-22 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:30:29] Production.INFO: ==6343== Releasing lock... [2025-04-22 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:30:29] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:31:05 [end_date_ymd] => 2025-04-22 14:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:31:05' and `end` < '2025-04-22 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-04-22 14:31:19] Production.INFO: count ==6014 [2025-04-22 14:31:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:31:05 - End Time 2025-04-22 14:31:05 [2025-04-22 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965568', 'tblTempUsageDetail_20' ) start [2025-04-22 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965568', 'tblTempUsageDetail_20' ) end [2025-04-22 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965568', 'tblTempVendorCDR_20' ) start [2025-04-22 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965568', 'tblTempVendorCDR_20' ) end [2025-04-22 14:31:22] Production.INFO: ProcessCDR(1,14965568,1,1,2) [2025-04-22 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965568', 'tblTempUsageDetail_20' ) start [2025-04-22 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965568', 'tblTempUsageDetail_20' ) end [2025-04-22 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:31:27] Production.INFO: ==6428== Releasing lock... [2025-04-22 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:31:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:32:05 [end_date_ymd] => 2025-04-22 14:32:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:32:05' and `end` < '2025-04-22 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-04-22 14:32:20] Production.INFO: count ==6011 [2025-04-22 14:32:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:32:05 - End Time 2025-04-22 14:32:05 [2025-04-22 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965573', 'tblTempUsageDetail_20' ) start [2025-04-22 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965573', 'tblTempUsageDetail_20' ) end [2025-04-22 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965573', 'tblTempVendorCDR_20' ) start [2025-04-22 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965573', 'tblTempVendorCDR_20' ) end [2025-04-22 14:32:23] Production.INFO: ProcessCDR(1,14965573,1,1,2) [2025-04-22 14:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965573', 'tblTempUsageDetail_20' ) start [2025-04-22 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965573', 'tblTempUsageDetail_20' ) end [2025-04-22 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:32:28] Production.INFO: ==6503== Releasing lock... [2025-04-22 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:32:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-22 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:33:05 [end_date_ymd] => 2025-04-22 14:33:05 [RateCDR] => 1 ) [2025-04-22 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:33:05' and `end` < '2025-04-22 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:33:19] Production.INFO: count ==5997 [2025-04-22 14:33:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:33:05 - End Time 2025-04-22 14:33:05 [2025-04-22 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965578', 'tblTempUsageDetail_20' ) start [2025-04-22 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965578', 'tblTempUsageDetail_20' ) end [2025-04-22 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965578', 'tblTempVendorCDR_20' ) start [2025-04-22 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965578', 'tblTempVendorCDR_20' ) end [2025-04-22 14:33:23] Production.INFO: ProcessCDR(1,14965578,1,1,2) [2025-04-22 14:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965578', 'tblTempUsageDetail_20' ) start [2025-04-22 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965578', 'tblTempUsageDetail_20' ) end [2025-04-22 14:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:33:28] Production.INFO: ==6579== Releasing lock... [2025-04-22 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:33:28] Production.INFO: 73 MB #Memory Used# [2025-04-22 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:34:05 [end_date_ymd] => 2025-04-22 14:34:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:34:05' and `end` < '2025-04-22 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-04-22 14:34:19] Production.INFO: count ==5982 [2025-04-22 14:34:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:34:05 - End Time 2025-04-22 14:34:05 [2025-04-22 14:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965583', 'tblTempUsageDetail_20' ) start [2025-04-22 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965583', 'tblTempUsageDetail_20' ) end [2025-04-22 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965583', 'tblTempVendorCDR_20' ) start [2025-04-22 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965583', 'tblTempVendorCDR_20' ) end [2025-04-22 14:34:22] Production.INFO: ProcessCDR(1,14965583,1,1,2) [2025-04-22 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965583', 'tblTempUsageDetail_20' ) start [2025-04-22 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965583', 'tblTempUsageDetail_20' ) end [2025-04-22 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:34:27] Production.INFO: ==6652== Releasing lock... [2025-04-22 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:34:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:35:05 [end_date_ymd] => 2025-04-22 14:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:35:05' and `end` < '2025-04-22 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-04-22 14:35:19] Production.INFO: count ==5979 [2025-04-22 14:35:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:35:05 - End Time 2025-04-22 14:35:05 [2025-04-22 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965588', 'tblTempUsageDetail_20' ) start [2025-04-22 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965588', 'tblTempUsageDetail_20' ) end [2025-04-22 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965588', 'tblTempVendorCDR_20' ) start [2025-04-22 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965588', 'tblTempVendorCDR_20' ) end [2025-04-22 14:35:22] Production.INFO: ProcessCDR(1,14965588,1,1,2) [2025-04-22 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965588', 'tblTempUsageDetail_20' ) start [2025-04-22 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965588', 'tblTempUsageDetail_20' ) end [2025-04-22 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:35:27] Production.INFO: ==6724== Releasing lock... [2025-04-22 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:35:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:36:05 [end_date_ymd] => 2025-04-22 14:36:05 [RateCDR] => 1 ) [2025-04-22 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:36:05' and `end` < '2025-04-22 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:36:19] Production.INFO: count ==5986 [2025-04-22 14:36:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:36:05 - End Time 2025-04-22 14:36:05 [2025-04-22 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965593', 'tblTempUsageDetail_20' ) start [2025-04-22 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965593', 'tblTempUsageDetail_20' ) end [2025-04-22 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965593', 'tblTempVendorCDR_20' ) start [2025-04-22 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965593', 'tblTempVendorCDR_20' ) end [2025-04-22 14:36:22] Production.INFO: ProcessCDR(1,14965593,1,1,2) [2025-04-22 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965593', 'tblTempUsageDetail_20' ) start [2025-04-22 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965593', 'tblTempUsageDetail_20' ) end [2025-04-22 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:36:27] Production.INFO: ==6803== Releasing lock... [2025-04-22 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:36:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:37:05 [end_date_ymd] => 2025-04-22 14:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:37:05' and `end` < '2025-04-22 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-04-22 14:37:19] Production.INFO: count ==5995 [2025-04-22 14:37:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:37:05 - End Time 2025-04-22 14:37:05 [2025-04-22 14:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965598', 'tblTempUsageDetail_20' ) start [2025-04-22 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965598', 'tblTempUsageDetail_20' ) end [2025-04-22 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965598', 'tblTempVendorCDR_20' ) start [2025-04-22 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965598', 'tblTempVendorCDR_20' ) end [2025-04-22 14:37:22] Production.INFO: ProcessCDR(1,14965598,1,1,2) [2025-04-22 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965598', 'tblTempUsageDetail_20' ) start [2025-04-22 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965598', 'tblTempUsageDetail_20' ) end [2025-04-22 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:37:26] Production.INFO: ==6876== Releasing lock... [2025-04-22 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:37:26] Production.INFO: 73 MB #Memory Used# [2025-04-22 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:38:05 [end_date_ymd] => 2025-04-22 14:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:38:05' and `end` < '2025-04-22 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-04-22 14:38:19] Production.INFO: count ==5980 [2025-04-22 14:38:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:38:05 - End Time 2025-04-22 14:38:05 [2025-04-22 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965603', 'tblTempUsageDetail_20' ) start [2025-04-22 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965603', 'tblTempUsageDetail_20' ) end [2025-04-22 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965603', 'tblTempVendorCDR_20' ) start [2025-04-22 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965603', 'tblTempVendorCDR_20' ) end [2025-04-22 14:38:22] Production.INFO: ProcessCDR(1,14965603,1,1,2) [2025-04-22 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965603', 'tblTempUsageDetail_20' ) start [2025-04-22 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965603', 'tblTempUsageDetail_20' ) end [2025-04-22 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:38:27] Production.INFO: ==6950== Releasing lock... [2025-04-22 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:38:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:39:05 [end_date_ymd] => 2025-04-22 14:39:05 [RateCDR] => 1 ) [2025-04-22 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:39:05' and `end` < '2025-04-22 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:39:19] Production.INFO: count ==5982 [2025-04-22 14:39:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:39:05 - End Time 2025-04-22 14:39:05 [2025-04-22 14:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965608', 'tblTempUsageDetail_20' ) start [2025-04-22 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965608', 'tblTempUsageDetail_20' ) end [2025-04-22 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965608', 'tblTempVendorCDR_20' ) start [2025-04-22 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965608', 'tblTempVendorCDR_20' ) end [2025-04-22 14:39:22] Production.INFO: ProcessCDR(1,14965608,1,1,2) [2025-04-22 14:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965608', 'tblTempUsageDetail_20' ) start [2025-04-22 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965608', 'tblTempUsageDetail_20' ) end [2025-04-22 14:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:39:27] Production.INFO: ==7021== Releasing lock... [2025-04-22 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:39:27] Production.INFO: 73 MB #Memory Used# [2025-04-22 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:40:06 [end_date_ymd] => 2025-04-22 14:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:40:06' and `end` < '2025-04-22 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-04-22 14:40:20] Production.INFO: count ==5990 [2025-04-22 14:40:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:40:06 - End Time 2025-04-22 14:40:06 [2025-04-22 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965614', 'tblTempUsageDetail_20' ) start [2025-04-22 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965614', 'tblTempUsageDetail_20' ) end [2025-04-22 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965614', 'tblTempVendorCDR_20' ) start [2025-04-22 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965614', 'tblTempVendorCDR_20' ) end [2025-04-22 14:40:23] Production.INFO: ProcessCDR(1,14965614,1,1,2) [2025-04-22 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965614', 'tblTempUsageDetail_20' ) start [2025-04-22 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965614', 'tblTempUsageDetail_20' ) end [2025-04-22 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:40:28] Production.INFO: ==7095== Releasing lock... [2025-04-22 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:40:28] Production.INFO: 73 MB #Memory Used# [2025-04-22 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:41:05 [end_date_ymd] => 2025-04-22 14:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:41:05' and `end` < '2025-04-22 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-04-22 14:41:19] Production.INFO: count ==5950 [2025-04-22 14:41:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:41:05 - End Time 2025-04-22 14:41:05 [2025-04-22 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965619', 'tblTempUsageDetail_20' ) start [2025-04-22 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965619', 'tblTempUsageDetail_20' ) end [2025-04-22 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965619', 'tblTempVendorCDR_20' ) start [2025-04-22 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965619', 'tblTempVendorCDR_20' ) end [2025-04-22 14:41:22] Production.INFO: ProcessCDR(1,14965619,1,1,2) [2025-04-22 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965619', 'tblTempUsageDetail_20' ) start [2025-04-22 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965619', 'tblTempUsageDetail_20' ) end [2025-04-22 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:41:27] Production.INFO: ==7169== Releasing lock... [2025-04-22 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:41:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:42:05 [end_date_ymd] => 2025-04-22 14:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:42:05' and `end` < '2025-04-22 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-04-22 14:42:19] Production.INFO: count ==5938 [2025-04-22 14:42:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:42:05 - End Time 2025-04-22 14:42:05 [2025-04-22 14:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965624', 'tblTempUsageDetail_20' ) start [2025-04-22 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965624', 'tblTempUsageDetail_20' ) end [2025-04-22 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965624', 'tblTempVendorCDR_20' ) start [2025-04-22 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965624', 'tblTempVendorCDR_20' ) end [2025-04-22 14:42:22] Production.INFO: ProcessCDR(1,14965624,1,1,2) [2025-04-22 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965624', 'tblTempUsageDetail_20' ) start [2025-04-22 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965624', 'tblTempUsageDetail_20' ) end [2025-04-22 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:42:28] Production.INFO: ==7241== Releasing lock... [2025-04-22 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:42:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:43:06 [end_date_ymd] => 2025-04-22 14:43:06 [RateCDR] => 1 ) [2025-04-22 14: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-04-22 11:43:06' and `end` < '2025-04-22 14: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-04-22 14:43:20] Production.INFO: count ==5910 [2025-04-22 14:43:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:43:06 - End Time 2025-04-22 14:43:06 [2025-04-22 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965629', 'tblTempUsageDetail_20' ) start [2025-04-22 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965629', 'tblTempUsageDetail_20' ) end [2025-04-22 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965629', 'tblTempVendorCDR_20' ) start [2025-04-22 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965629', 'tblTempVendorCDR_20' ) end [2025-04-22 14:43:23] Production.INFO: ProcessCDR(1,14965629,1,1,2) [2025-04-22 14:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965629', 'tblTempUsageDetail_20' ) start [2025-04-22 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965629', 'tblTempUsageDetail_20' ) end [2025-04-22 14:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:43:28] Production.INFO: ==7312== Releasing lock... [2025-04-22 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:43:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:44:05 [end_date_ymd] => 2025-04-22 14:44:05 [RateCDR] => 1 ) [2025-04-22 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:44:05' and `end` < '2025-04-22 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:44:20] Production.INFO: count ==5912 [2025-04-22 14:44:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:44:05 - End Time 2025-04-22 14:44:05 [2025-04-22 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965634', 'tblTempUsageDetail_20' ) start [2025-04-22 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965634', 'tblTempUsageDetail_20' ) end [2025-04-22 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965634', 'tblTempVendorCDR_20' ) start [2025-04-22 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965634', 'tblTempVendorCDR_20' ) end [2025-04-22 14:44:23] Production.INFO: ProcessCDR(1,14965634,1,1,2) [2025-04-22 14:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965634', 'tblTempUsageDetail_20' ) start [2025-04-22 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965634', 'tblTempUsageDetail_20' ) end [2025-04-22 14:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:44:28] Production.INFO: ==7387== Releasing lock... [2025-04-22 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:44:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:45:06 [end_date_ymd] => 2025-04-22 14:45:06 [RateCDR] => 1 ) [2025-04-22 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:45:06' and `end` < '2025-04-22 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:45:20] Production.INFO: count ==5916 [2025-04-22 14:45:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:45:06 - End Time 2025-04-22 14:45:06 [2025-04-22 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965639', 'tblTempUsageDetail_20' ) start [2025-04-22 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965639', 'tblTempUsageDetail_20' ) end [2025-04-22 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965639', 'tblTempVendorCDR_20' ) start [2025-04-22 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965639', 'tblTempVendorCDR_20' ) end [2025-04-22 14:45:23] Production.INFO: ProcessCDR(1,14965639,1,1,2) [2025-04-22 14:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965639', 'tblTempUsageDetail_20' ) start [2025-04-22 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965639', 'tblTempUsageDetail_20' ) end [2025-04-22 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:45:28] Production.INFO: ==7507== Releasing lock... [2025-04-22 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:45:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:46:05 [end_date_ymd] => 2025-04-22 14:46:05 [RateCDR] => 1 ) [2025-04-22 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:46:05' and `end` < '2025-04-22 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:46:19] Production.INFO: count ==5922 [2025-04-22 14:46:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:46:05 - End Time 2025-04-22 14:46:05 [2025-04-22 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965644', 'tblTempUsageDetail_20' ) start [2025-04-22 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965644', 'tblTempUsageDetail_20' ) end [2025-04-22 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965644', 'tblTempVendorCDR_20' ) start [2025-04-22 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965644', 'tblTempVendorCDR_20' ) end [2025-04-22 14:46:22] Production.INFO: ProcessCDR(1,14965644,1,1,2) [2025-04-22 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965644', 'tblTempUsageDetail_20' ) start [2025-04-22 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965644', 'tblTempUsageDetail_20' ) end [2025-04-22 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:46:27] Production.INFO: ==7592== Releasing lock... [2025-04-22 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:46:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:47:06 [end_date_ymd] => 2025-04-22 14:47:06 [RateCDR] => 1 ) [2025-04-22 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:47:06' and `end` < '2025-04-22 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:47:20] Production.INFO: count ==5927 [2025-04-22 14:47:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:47:06 - End Time 2025-04-22 14:47:06 [2025-04-22 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965649', 'tblTempUsageDetail_20' ) start [2025-04-22 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965649', 'tblTempUsageDetail_20' ) end [2025-04-22 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965649', 'tblTempVendorCDR_20' ) start [2025-04-22 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965649', 'tblTempVendorCDR_20' ) end [2025-04-22 14:47:23] Production.INFO: ProcessCDR(1,14965649,1,1,2) [2025-04-22 14:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965649', 'tblTempUsageDetail_20' ) start [2025-04-22 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965649', 'tblTempUsageDetail_20' ) end [2025-04-22 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:47:28] Production.INFO: ==7667== Releasing lock... [2025-04-22 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:47:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:48:06 [end_date_ymd] => 2025-04-22 14:48:06 [RateCDR] => 1 ) [2025-04-22 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:48:06' and `end` < '2025-04-22 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:48:20] Production.INFO: count ==5939 [2025-04-22 14:48:23] Production.ERROR: pbx CDR StartTime 2025-04-22 11:48:06 - End Time 2025-04-22 14:48:06 [2025-04-22 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965654', 'tblTempUsageDetail_20' ) start [2025-04-22 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965654', 'tblTempUsageDetail_20' ) end [2025-04-22 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965654', 'tblTempVendorCDR_20' ) start [2025-04-22 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965654', 'tblTempVendorCDR_20' ) end [2025-04-22 14:48:23] Production.INFO: ProcessCDR(1,14965654,1,1,2) [2025-04-22 14:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965654', 'tblTempUsageDetail_20' ) start [2025-04-22 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965654', 'tblTempUsageDetail_20' ) end [2025-04-22 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:48:26] Production.INFO: ==7742== Releasing lock... [2025-04-22 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:48:26] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:49:05 [end_date_ymd] => 2025-04-22 14:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:49:05' and `end` < '2025-04-22 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-04-22 14:49:19] Production.INFO: count ==5953 [2025-04-22 14:49:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:49:05 - End Time 2025-04-22 14:49:05 [2025-04-22 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965659', 'tblTempUsageDetail_20' ) start [2025-04-22 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965659', 'tblTempUsageDetail_20' ) end [2025-04-22 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965659', 'tblTempVendorCDR_20' ) start [2025-04-22 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965659', 'tblTempVendorCDR_20' ) end [2025-04-22 14:49:22] Production.INFO: ProcessCDR(1,14965659,1,1,2) [2025-04-22 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965659', 'tblTempUsageDetail_20' ) start [2025-04-22 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965659', 'tblTempUsageDetail_20' ) end [2025-04-22 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:49:27] Production.INFO: ==7829== Releasing lock... [2025-04-22 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:49:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-22 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:50:06 [end_date_ymd] => 2025-04-22 14:50:06 [RateCDR] => 1 ) [2025-04-22 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:50:06' and `end` < '2025-04-22 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:50:20] Production.INFO: count ==5940 [2025-04-22 14:50:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:50:06 - End Time 2025-04-22 14:50:06 [2025-04-22 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965665', 'tblTempUsageDetail_20' ) start [2025-04-22 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965665', 'tblTempUsageDetail_20' ) end [2025-04-22 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965665', 'tblTempVendorCDR_20' ) start [2025-04-22 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965665', 'tblTempVendorCDR_20' ) end [2025-04-22 14:50:23] Production.INFO: ProcessCDR(1,14965665,1,1,2) [2025-04-22 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965665', 'tblTempUsageDetail_20' ) start [2025-04-22 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965665', 'tblTempUsageDetail_20' ) end [2025-04-22 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:50:28] Production.INFO: ==7903== Releasing lock... [2025-04-22 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:50:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-22 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:51:06 [end_date_ymd] => 2025-04-22 14:51:06 [RateCDR] => 1 ) [2025-04-22 14:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:51:06' and `end` < '2025-04-22 14:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:51:20] Production.INFO: count ==5909 [2025-04-22 14:51:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:51:06 - End Time 2025-04-22 14:51:06 [2025-04-22 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965670', 'tblTempUsageDetail_20' ) start [2025-04-22 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965670', 'tblTempUsageDetail_20' ) end [2025-04-22 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965670', 'tblTempVendorCDR_20' ) start [2025-04-22 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965670', 'tblTempVendorCDR_20' ) end [2025-04-22 14:51:23] Production.INFO: ProcessCDR(1,14965670,1,1,2) [2025-04-22 14:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965670', 'tblTempUsageDetail_20' ) start [2025-04-22 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965670', 'tblTempUsageDetail_20' ) end [2025-04-22 14:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:51:28] Production.INFO: ==7984== Releasing lock... [2025-04-22 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:51:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:52:05 [end_date_ymd] => 2025-04-22 14:52:05 [RateCDR] => 1 ) [2025-04-22 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:52:05' and `end` < '2025-04-22 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:52:19] Production.INFO: count ==5899 [2025-04-22 14:52:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:52:05 - End Time 2025-04-22 14:52:05 [2025-04-22 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965675', 'tblTempUsageDetail_20' ) start [2025-04-22 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965675', 'tblTempUsageDetail_20' ) end [2025-04-22 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965675', 'tblTempVendorCDR_20' ) start [2025-04-22 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965675', 'tblTempVendorCDR_20' ) end [2025-04-22 14:52:22] Production.INFO: ProcessCDR(1,14965675,1,1,2) [2025-04-22 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965675', 'tblTempUsageDetail_20' ) start [2025-04-22 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965675', 'tblTempUsageDetail_20' ) end [2025-04-22 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:52:27] Production.INFO: ==8057== Releasing lock... [2025-04-22 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:52:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:53:05 [end_date_ymd] => 2025-04-22 14:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:53:05' and `end` < '2025-04-22 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-04-22 14:53:19] Production.INFO: count ==5903 [2025-04-22 14:53:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:53:05 - End Time 2025-04-22 14:53:05 [2025-04-22 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965680', 'tblTempUsageDetail_20' ) start [2025-04-22 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965680', 'tblTempUsageDetail_20' ) end [2025-04-22 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965680', 'tblTempVendorCDR_20' ) start [2025-04-22 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965680', 'tblTempVendorCDR_20' ) end [2025-04-22 14:53:22] Production.INFO: ProcessCDR(1,14965680,1,1,2) [2025-04-22 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965680', 'tblTempUsageDetail_20' ) start [2025-04-22 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965680', 'tblTempUsageDetail_20' ) end [2025-04-22 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:53:27] Production.INFO: ==8130== Releasing lock... [2025-04-22 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:53:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:54:05 [end_date_ymd] => 2025-04-22 14:54:05 [RateCDR] => 1 ) [2025-04-22 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:54:05' and `end` < '2025-04-22 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:54:19] Production.INFO: count ==5877 [2025-04-22 14:54:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:54:05 - End Time 2025-04-22 14:54:05 [2025-04-22 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965685', 'tblTempUsageDetail_20' ) start [2025-04-22 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965685', 'tblTempUsageDetail_20' ) end [2025-04-22 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965685', 'tblTempVendorCDR_20' ) start [2025-04-22 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965685', 'tblTempVendorCDR_20' ) end [2025-04-22 14:54:22] Production.INFO: ProcessCDR(1,14965685,1,1,2) [2025-04-22 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965685', 'tblTempUsageDetail_20' ) start [2025-04-22 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965685', 'tblTempUsageDetail_20' ) end [2025-04-22 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:54:27] Production.INFO: ==8210== Releasing lock... [2025-04-22 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:54:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:55:05 [end_date_ymd] => 2025-04-22 14:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:55:05' and `end` < '2025-04-22 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-04-22 14:55:19] Production.INFO: count ==5871 [2025-04-22 14:55:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:55:05 - End Time 2025-04-22 14:55:05 [2025-04-22 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965690', 'tblTempUsageDetail_20' ) start [2025-04-22 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965690', 'tblTempUsageDetail_20' ) end [2025-04-22 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965690', 'tblTempVendorCDR_20' ) start [2025-04-22 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965690', 'tblTempVendorCDR_20' ) end [2025-04-22 14:55:22] Production.INFO: ProcessCDR(1,14965690,1,1,2) [2025-04-22 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965690', 'tblTempUsageDetail_20' ) start [2025-04-22 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965690', 'tblTempUsageDetail_20' ) end [2025-04-22 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:55:28] Production.INFO: ==8286== Releasing lock... [2025-04-22 14:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:55:28] Production.INFO: 72 MB #Memory Used# [2025-04-22 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:56:05 [end_date_ymd] => 2025-04-22 14:56:05 [RateCDR] => 1 ) [2025-04-22 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:56:05' and `end` < '2025-04-22 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:56:19] Production.INFO: count ==5859 [2025-04-22 14:56:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:56:05 - End Time 2025-04-22 14:56:05 [2025-04-22 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965694', 'tblTempUsageDetail_20' ) start [2025-04-22 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965694', 'tblTempUsageDetail_20' ) end [2025-04-22 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965694', 'tblTempVendorCDR_20' ) start [2025-04-22 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965694', 'tblTempVendorCDR_20' ) end [2025-04-22 14:56:22] Production.INFO: ProcessCDR(1,14965694,1,1,2) [2025-04-22 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965694', 'tblTempUsageDetail_20' ) start [2025-04-22 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965694', 'tblTempUsageDetail_20' ) end [2025-04-22 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:56:27] Production.INFO: ==8357== Releasing lock... [2025-04-22 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:56:27] Production.INFO: 72 MB #Memory Used# [2025-04-22 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:57:05 [end_date_ymd] => 2025-04-22 14:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:57:05' and `end` < '2025-04-22 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-04-22 14:57:19] Production.INFO: count ==5871 [2025-04-22 14:57:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:57:05 - End Time 2025-04-22 14:57:05 [2025-04-22 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965700', 'tblTempUsageDetail_20' ) start [2025-04-22 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965700', 'tblTempUsageDetail_20' ) end [2025-04-22 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965700', 'tblTempVendorCDR_20' ) start [2025-04-22 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965700', 'tblTempVendorCDR_20' ) end [2025-04-22 14:57:22] Production.INFO: ProcessCDR(1,14965700,1,1,2) [2025-04-22 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965700', 'tblTempUsageDetail_20' ) start [2025-04-22 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965700', 'tblTempUsageDetail_20' ) end [2025-04-22 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:57:27] Production.INFO: ==8433== Releasing lock... [2025-04-22 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:57:27] Production.INFO: 72 MB #Memory Used# [2025-04-22 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:58:05 [end_date_ymd] => 2025-04-22 14:58:05 [RateCDR] => 1 ) [2025-04-22 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 11:58:05' and `end` < '2025-04-22 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 14:58:19] Production.INFO: count ==5831 [2025-04-22 14:58:22] Production.ERROR: pbx CDR StartTime 2025-04-22 11:58:05 - End Time 2025-04-22 14:58:05 [2025-04-22 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965705', 'tblTempUsageDetail_20' ) start [2025-04-22 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965705', 'tblTempUsageDetail_20' ) end [2025-04-22 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965705', 'tblTempVendorCDR_20' ) start [2025-04-22 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965705', 'tblTempVendorCDR_20' ) end [2025-04-22 14:58:22] Production.INFO: ProcessCDR(1,14965705,1,1,2) [2025-04-22 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965705', 'tblTempUsageDetail_20' ) start [2025-04-22 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965705', 'tblTempUsageDetail_20' ) end [2025-04-22 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:58:27] Production.INFO: ==8510== Releasing lock... [2025-04-22 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:58:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 11:59:05 [end_date_ymd] => 2025-04-22 14:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 11:59:05' and `end` < '2025-04-22 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-04-22 14:59:19] Production.INFO: count ==5817 [2025-04-22 14:59:21] Production.ERROR: pbx CDR StartTime 2025-04-22 11:59:05 - End Time 2025-04-22 14:59:05 [2025-04-22 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965710', 'tblTempUsageDetail_20' ) start [2025-04-22 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965710', 'tblTempUsageDetail_20' ) end [2025-04-22 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965710', 'tblTempVendorCDR_20' ) start [2025-04-22 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965710', 'tblTempVendorCDR_20' ) end [2025-04-22 14:59:22] Production.INFO: ProcessCDR(1,14965710,1,1,2) [2025-04-22 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965710', 'tblTempUsageDetail_20' ) start [2025-04-22 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965710', 'tblTempUsageDetail_20' ) end [2025-04-22 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 14:59:27] Production.INFO: ==8585== Releasing lock... [2025-04-22 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 14:59:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:00:06 [end_date_ymd] => 2025-04-22 15:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:00:06' and `end` < '2025-04-22 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-04-22 15:00:20] Production.INFO: count ==5797 [2025-04-22 15:00:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:00:06 - End Time 2025-04-22 15:00:06 [2025-04-22 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965715', 'tblTempUsageDetail_20' ) start [2025-04-22 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965715', 'tblTempUsageDetail_20' ) end [2025-04-22 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965715', 'tblTempVendorCDR_20' ) start [2025-04-22 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965715', 'tblTempVendorCDR_20' ) end [2025-04-22 15:00:23] Production.INFO: ProcessCDR(1,14965715,1,1,2) [2025-04-22 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965715', 'tblTempUsageDetail_20' ) start [2025-04-22 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965715', 'tblTempUsageDetail_20' ) end [2025-04-22 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:00:28] Production.INFO: ==8701== Releasing lock... [2025-04-22 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:00:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-22 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:01:05 [end_date_ymd] => 2025-04-22 15:01:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:01:05' and `end` < '2025-04-22 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-04-22 15:01:19] Production.INFO: count ==5788 [2025-04-22 15:01:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:01:05 - End Time 2025-04-22 15:01:05 [2025-04-22 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965721', 'tblTempUsageDetail_20' ) start [2025-04-22 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965721', 'tblTempUsageDetail_20' ) end [2025-04-22 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965721', 'tblTempVendorCDR_20' ) start [2025-04-22 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965721', 'tblTempVendorCDR_20' ) end [2025-04-22 15:01:22] Production.INFO: ProcessCDR(1,14965721,1,1,2) [2025-04-22 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965721', 'tblTempUsageDetail_20' ) start [2025-04-22 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965721', 'tblTempUsageDetail_20' ) end [2025-04-22 15:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:01:28] Production.INFO: ==8799== Releasing lock... [2025-04-22 15:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:01:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-22 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:02:06 [end_date_ymd] => 2025-04-22 15:02:06 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:02:06' and `end` < '2025-04-22 15: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-04-22 15:02:20] Production.INFO: count ==5783 [2025-04-22 15:02:23] Production.ERROR: pbx CDR StartTime 2025-04-22 12:02:06 - End Time 2025-04-22 15:02:06 [2025-04-22 15:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965726', 'tblTempUsageDetail_20' ) start [2025-04-22 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965726', 'tblTempUsageDetail_20' ) end [2025-04-22 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965726', 'tblTempVendorCDR_20' ) start [2025-04-22 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965726', 'tblTempVendorCDR_20' ) end [2025-04-22 15:02:23] Production.INFO: ProcessCDR(1,14965726,1,1,2) [2025-04-22 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965726', 'tblTempUsageDetail_20' ) start [2025-04-22 15:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965726', 'tblTempUsageDetail_20' ) end [2025-04-22 15:02:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:02:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:02:29] Production.INFO: ==8950== Releasing lock... [2025-04-22 15:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:02:29] Production.INFO: 71.5 MB #Memory Used# [2025-04-22 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:03:05 [end_date_ymd] => 2025-04-22 15:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:03:05' and `end` < '2025-04-22 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-04-22 15:03:19] Production.INFO: count ==5796 [2025-04-22 15:03:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:03:05 - End Time 2025-04-22 15:03:05 [2025-04-22 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965731', 'tblTempUsageDetail_20' ) start [2025-04-22 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965731', 'tblTempUsageDetail_20' ) end [2025-04-22 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965731', 'tblTempVendorCDR_20' ) start [2025-04-22 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965731', 'tblTempVendorCDR_20' ) end [2025-04-22 15:03:22] Production.INFO: ProcessCDR(1,14965731,1,1,2) [2025-04-22 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965731', 'tblTempUsageDetail_20' ) start [2025-04-22 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965731', 'tblTempUsageDetail_20' ) end [2025-04-22 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:03:27] Production.INFO: ==9022== Releasing lock... [2025-04-22 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:03:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-22 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:04:05 [end_date_ymd] => 2025-04-22 15:04:05 [RateCDR] => 1 ) [2025-04-22 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:04:05' and `end` < '2025-04-22 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:04:19] Production.INFO: count ==5796 [2025-04-22 15:04:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:04:05 - End Time 2025-04-22 15:04:05 [2025-04-22 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965736', 'tblTempUsageDetail_20' ) start [2025-04-22 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965736', 'tblTempUsageDetail_20' ) end [2025-04-22 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965736', 'tblTempVendorCDR_20' ) start [2025-04-22 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965736', 'tblTempVendorCDR_20' ) end [2025-04-22 15:04:22] Production.INFO: ProcessCDR(1,14965736,1,1,2) [2025-04-22 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965736', 'tblTempUsageDetail_20' ) start [2025-04-22 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965736', 'tblTempUsageDetail_20' ) end [2025-04-22 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:04:27] Production.INFO: ==9102== Releasing lock... [2025-04-22 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:04:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-22 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:05:05 [end_date_ymd] => 2025-04-22 15:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:05:05' and `end` < '2025-04-22 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-04-22 15:05:19] Production.INFO: count ==5751 [2025-04-22 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:05:05 - End Time 2025-04-22 15:05:05 [2025-04-22 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965741', 'tblTempUsageDetail_20' ) start [2025-04-22 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965741', 'tblTempUsageDetail_20' ) end [2025-04-22 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965741', 'tblTempVendorCDR_20' ) start [2025-04-22 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965741', 'tblTempVendorCDR_20' ) end [2025-04-22 15:05:22] Production.INFO: ProcessCDR(1,14965741,1,1,2) [2025-04-22 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965741', 'tblTempUsageDetail_20' ) start [2025-04-22 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965741', 'tblTempUsageDetail_20' ) end [2025-04-22 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:05:27] Production.INFO: ==9251== Releasing lock... [2025-04-22 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:05:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:06:05 [end_date_ymd] => 2025-04-22 15:06:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:06:05' and `end` < '2025-04-22 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-04-22 15:06:19] Production.INFO: count ==5726 [2025-04-22 15:06:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:06:05 - End Time 2025-04-22 15:06:05 [2025-04-22 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965746', 'tblTempUsageDetail_20' ) start [2025-04-22 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965746', 'tblTempUsageDetail_20' ) end [2025-04-22 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965746', 'tblTempVendorCDR_20' ) start [2025-04-22 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965746', 'tblTempVendorCDR_20' ) end [2025-04-22 15:06:22] Production.INFO: ProcessCDR(1,14965746,1,1,2) [2025-04-22 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965746', 'tblTempUsageDetail_20' ) start [2025-04-22 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965746', 'tblTempUsageDetail_20' ) end [2025-04-22 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:06:27] Production.INFO: ==9329== Releasing lock... [2025-04-22 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:06:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:07:05 [end_date_ymd] => 2025-04-22 15:07:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:07:05' and `end` < '2025-04-22 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-04-22 15:07:19] Production.INFO: count ==5740 [2025-04-22 15:07:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:07:05 - End Time 2025-04-22 15:07:05 [2025-04-22 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965751', 'tblTempUsageDetail_20' ) start [2025-04-22 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965751', 'tblTempUsageDetail_20' ) end [2025-04-22 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965751', 'tblTempVendorCDR_20' ) start [2025-04-22 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965751', 'tblTempVendorCDR_20' ) end [2025-04-22 15:07:22] Production.INFO: ProcessCDR(1,14965751,1,1,2) [2025-04-22 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965751', 'tblTempUsageDetail_20' ) start [2025-04-22 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965751', 'tblTempUsageDetail_20' ) end [2025-04-22 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:07:27] Production.INFO: ==9411== Releasing lock... [2025-04-22 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:07:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:08:06 [end_date_ymd] => 2025-04-22 15:08:06 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:08:06' and `end` < '2025-04-22 15: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-04-22 15:08:20] Production.INFO: count ==5736 [2025-04-22 15:08:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:08:06 - End Time 2025-04-22 15:08:06 [2025-04-22 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965756', 'tblTempUsageDetail_20' ) start [2025-04-22 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965756', 'tblTempUsageDetail_20' ) end [2025-04-22 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965756', 'tblTempVendorCDR_20' ) start [2025-04-22 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965756', 'tblTempVendorCDR_20' ) end [2025-04-22 15:08:23] Production.INFO: ProcessCDR(1,14965756,1,1,2) [2025-04-22 15:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965756', 'tblTempUsageDetail_20' ) start [2025-04-22 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965756', 'tblTempUsageDetail_20' ) end [2025-04-22 15:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:08:28] Production.INFO: ==9550== Releasing lock... [2025-04-22 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:08:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:09:05 [end_date_ymd] => 2025-04-22 15:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:09:05' and `end` < '2025-04-22 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-04-22 15:09:19] Production.INFO: count ==5729 [2025-04-22 15:09:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:09:05 - End Time 2025-04-22 15:09:05 [2025-04-22 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965761', 'tblTempUsageDetail_20' ) start [2025-04-22 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965761', 'tblTempUsageDetail_20' ) end [2025-04-22 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965761', 'tblTempVendorCDR_20' ) start [2025-04-22 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965761', 'tblTempVendorCDR_20' ) end [2025-04-22 15:09:22] Production.INFO: ProcessCDR(1,14965761,1,1,2) [2025-04-22 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965761', 'tblTempUsageDetail_20' ) start [2025-04-22 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965761', 'tblTempUsageDetail_20' ) end [2025-04-22 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:09:27] Production.INFO: ==9662== Releasing lock... [2025-04-22 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:09:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:10:06 [end_date_ymd] => 2025-04-22 15:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:10:06' and `end` < '2025-04-22 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-04-22 15:10:20] Production.INFO: count ==5703 [2025-04-22 15:10:23] Production.ERROR: pbx CDR StartTime 2025-04-22 12:10:06 - End Time 2025-04-22 15:10:06 [2025-04-22 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965767', 'tblTempUsageDetail_20' ) start [2025-04-22 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965767', 'tblTempUsageDetail_20' ) end [2025-04-22 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965767', 'tblTempVendorCDR_20' ) start [2025-04-22 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965767', 'tblTempVendorCDR_20' ) end [2025-04-22 15:10:23] Production.INFO: ProcessCDR(1,14965767,1,1,2) [2025-04-22 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965767', 'tblTempUsageDetail_20' ) start [2025-04-22 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965767', 'tblTempUsageDetail_20' ) end [2025-04-22 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:10:28] Production.INFO: ==9746== Releasing lock... [2025-04-22 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:10:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:11:04 [end_date_ymd] => 2025-04-22 15:11:04 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:11:04' and `end` < '2025-04-22 15: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-04-22 15:11:18] Production.INFO: count ==5687 [2025-04-22 15:11:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:11:04 - End Time 2025-04-22 15:11:04 [2025-04-22 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965772', 'tblTempUsageDetail_20' ) start [2025-04-22 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965772', 'tblTempUsageDetail_20' ) end [2025-04-22 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965772', 'tblTempVendorCDR_20' ) start [2025-04-22 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965772', 'tblTempVendorCDR_20' ) end [2025-04-22 15:11:21] Production.INFO: ProcessCDR(1,14965772,1,1,2) [2025-04-22 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965772', 'tblTempUsageDetail_20' ) start [2025-04-22 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965772', 'tblTempUsageDetail_20' ) end [2025-04-22 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:11:26] Production.INFO: ==9821== Releasing lock... [2025-04-22 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:11:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:12:05 [end_date_ymd] => 2025-04-22 15:12:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:12:05' and `end` < '2025-04-22 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-04-22 15:12:19] Production.INFO: count ==5648 [2025-04-22 15:12:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:12:05 - End Time 2025-04-22 15:12:05 [2025-04-22 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965777', 'tblTempUsageDetail_20' ) start [2025-04-22 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965777', 'tblTempUsageDetail_20' ) end [2025-04-22 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965777', 'tblTempVendorCDR_20' ) start [2025-04-22 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965777', 'tblTempVendorCDR_20' ) end [2025-04-22 15:12:22] Production.INFO: ProcessCDR(1,14965777,1,1,2) [2025-04-22 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965777', 'tblTempUsageDetail_20' ) start [2025-04-22 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965777', 'tblTempUsageDetail_20' ) end [2025-04-22 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:12:27] Production.INFO: ==9979== Releasing lock... [2025-04-22 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:12:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:13:06 [end_date_ymd] => 2025-04-22 15:13:06 [RateCDR] => 1 ) [2025-04-22 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:13:06' and `end` < '2025-04-22 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:13:20] Production.INFO: count ==5644 [2025-04-22 15:13:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:13:06 - End Time 2025-04-22 15:13:06 [2025-04-22 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965782', 'tblTempUsageDetail_20' ) start [2025-04-22 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965782', 'tblTempUsageDetail_20' ) end [2025-04-22 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965782', 'tblTempVendorCDR_20' ) start [2025-04-22 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965782', 'tblTempVendorCDR_20' ) end [2025-04-22 15:13:23] Production.INFO: ProcessCDR(1,14965782,1,1,2) [2025-04-22 15:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965782', 'tblTempUsageDetail_20' ) start [2025-04-22 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965782', 'tblTempUsageDetail_20' ) end [2025-04-22 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:13:28] Production.INFO: ==10054== Releasing lock... [2025-04-22 15:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:13:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:14:05 [end_date_ymd] => 2025-04-22 15:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:14:05' and `end` < '2025-04-22 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-04-22 15:14:19] Production.INFO: count ==5646 [2025-04-22 15:14:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:14:05 - End Time 2025-04-22 15:14:05 [2025-04-22 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965787', 'tblTempUsageDetail_20' ) start [2025-04-22 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965787', 'tblTempUsageDetail_20' ) end [2025-04-22 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965787', 'tblTempVendorCDR_20' ) start [2025-04-22 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965787', 'tblTempVendorCDR_20' ) end [2025-04-22 15:14:22] Production.INFO: ProcessCDR(1,14965787,1,1,2) [2025-04-22 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965787', 'tblTempUsageDetail_20' ) start [2025-04-22 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965787', 'tblTempUsageDetail_20' ) end [2025-04-22 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:14:27] Production.INFO: ==10126== Releasing lock... [2025-04-22 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:14:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:15:05 [end_date_ymd] => 2025-04-22 15:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:15:05' and `end` < '2025-04-22 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-04-22 15:15:20] Production.INFO: count ==5669 [2025-04-22 15:15:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:15:05 - End Time 2025-04-22 15:15:05 [2025-04-22 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965792', 'tblTempUsageDetail_20' ) start [2025-04-22 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965792', 'tblTempUsageDetail_20' ) end [2025-04-22 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965792', 'tblTempVendorCDR_20' ) start [2025-04-22 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965792', 'tblTempVendorCDR_20' ) end [2025-04-22 15:15:23] Production.INFO: ProcessCDR(1,14965792,1,1,2) [2025-04-22 15:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965792', 'tblTempUsageDetail_20' ) start [2025-04-22 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965792', 'tblTempUsageDetail_20' ) end [2025-04-22 15:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:15:28] Production.INFO: ==10316== Releasing lock... [2025-04-22 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:15:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:16:05 [end_date_ymd] => 2025-04-22 15:16:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:16:05' and `end` < '2025-04-22 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-04-22 15:16:20] Production.INFO: count ==5659 [2025-04-22 15:16:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:16:05 - End Time 2025-04-22 15:16:05 [2025-04-22 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965797', 'tblTempUsageDetail_20' ) start [2025-04-22 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965797', 'tblTempUsageDetail_20' ) end [2025-04-22 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965797', 'tblTempVendorCDR_20' ) start [2025-04-22 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965797', 'tblTempVendorCDR_20' ) end [2025-04-22 15:16:23] Production.INFO: ProcessCDR(1,14965797,1,1,2) [2025-04-22 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965797', 'tblTempUsageDetail_20' ) start [2025-04-22 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965797', 'tblTempUsageDetail_20' ) end [2025-04-22 15:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:16:28] Production.INFO: ==10394== Releasing lock... [2025-04-22 15:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:16:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:17:06 [end_date_ymd] => 2025-04-22 15:17:06 [RateCDR] => 1 ) [2025-04-22 15:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:17:06' and `end` < '2025-04-22 15:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:17:20] Production.INFO: count ==5640 [2025-04-22 15:17:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:17:06 - End Time 2025-04-22 15:17:06 [2025-04-22 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965802', 'tblTempUsageDetail_20' ) start [2025-04-22 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965802', 'tblTempUsageDetail_20' ) end [2025-04-22 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965802', 'tblTempVendorCDR_20' ) start [2025-04-22 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965802', 'tblTempVendorCDR_20' ) end [2025-04-22 15:17:23] Production.INFO: ProcessCDR(1,14965802,1,1,2) [2025-04-22 15:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965802', 'tblTempUsageDetail_20' ) start [2025-04-22 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965802', 'tblTempUsageDetail_20' ) end [2025-04-22 15:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:17:28] Production.INFO: ==10466== Releasing lock... [2025-04-22 15:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:17:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-22 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:18:05 [end_date_ymd] => 2025-04-22 15:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:18:05' and `end` < '2025-04-22 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-04-22 15:18:19] Production.INFO: count ==5647 [2025-04-22 15:18:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:18:05 - End Time 2025-04-22 15:18:05 [2025-04-22 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965807', 'tblTempUsageDetail_20' ) start [2025-04-22 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965807', 'tblTempUsageDetail_20' ) end [2025-04-22 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965807', 'tblTempVendorCDR_20' ) start [2025-04-22 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965807', 'tblTempVendorCDR_20' ) end [2025-04-22 15:18:22] Production.INFO: ProcessCDR(1,14965807,1,1,2) [2025-04-22 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965807', 'tblTempUsageDetail_20' ) start [2025-04-22 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965807', 'tblTempUsageDetail_20' ) end [2025-04-22 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:18:27] Production.INFO: ==10551== Releasing lock... [2025-04-22 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:18:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:19:05 [end_date_ymd] => 2025-04-22 15:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:19:05' and `end` < '2025-04-22 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-04-22 15:19:19] Production.INFO: count ==5637 [2025-04-22 15:19:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:19:05 - End Time 2025-04-22 15:19:05 [2025-04-22 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965812', 'tblTempUsageDetail_20' ) start [2025-04-22 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965812', 'tblTempUsageDetail_20' ) end [2025-04-22 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965812', 'tblTempVendorCDR_20' ) start [2025-04-22 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965812', 'tblTempVendorCDR_20' ) end [2025-04-22 15:19:22] Production.INFO: ProcessCDR(1,14965812,1,1,2) [2025-04-22 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965812', 'tblTempUsageDetail_20' ) start [2025-04-22 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965812', 'tblTempUsageDetail_20' ) end [2025-04-22 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:19:27] Production.INFO: ==10624== Releasing lock... [2025-04-22 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:19:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-22 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:20:06 [end_date_ymd] => 2025-04-22 15:20:06 [RateCDR] => 1 ) [2025-04-22 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:20:06' and `end` < '2025-04-22 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:20:20] Production.INFO: count ==5627 [2025-04-22 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:20:06 - End Time 2025-04-22 15:20:06 [2025-04-22 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965818', 'tblTempUsageDetail_20' ) start [2025-04-22 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965818', 'tblTempUsageDetail_20' ) end [2025-04-22 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965818', 'tblTempVendorCDR_20' ) start [2025-04-22 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965818', 'tblTempVendorCDR_20' ) end [2025-04-22 15:20:23] Production.INFO: ProcessCDR(1,14965818,1,1,2) [2025-04-22 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965818', 'tblTempUsageDetail_20' ) start [2025-04-22 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965818', 'tblTempUsageDetail_20' ) end [2025-04-22 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:20:28] Production.INFO: ==10703== Releasing lock... [2025-04-22 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:20:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-22 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:21:05 [end_date_ymd] => 2025-04-22 15:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:21:05' and `end` < '2025-04-22 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-04-22 15:21:20] Production.INFO: count ==5653 [2025-04-22 15:21:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:21:05 - End Time 2025-04-22 15:21:05 [2025-04-22 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965823', 'tblTempUsageDetail_20' ) start [2025-04-22 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965823', 'tblTempUsageDetail_20' ) end [2025-04-22 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965823', 'tblTempVendorCDR_20' ) start [2025-04-22 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965823', 'tblTempVendorCDR_20' ) end [2025-04-22 15:21:23] Production.INFO: ProcessCDR(1,14965823,1,1,2) [2025-04-22 15:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965823', 'tblTempUsageDetail_20' ) start [2025-04-22 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965823', 'tblTempUsageDetail_20' ) end [2025-04-22 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:21:27] Production.INFO: ==10777== Releasing lock... [2025-04-22 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:21:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:22:05 [end_date_ymd] => 2025-04-22 15:22:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:22:05' and `end` < '2025-04-22 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-04-22 15:22:19] Production.INFO: count ==5647 [2025-04-22 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:22:05 - End Time 2025-04-22 15:22:05 [2025-04-22 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965828', 'tblTempUsageDetail_20' ) start [2025-04-22 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965828', 'tblTempUsageDetail_20' ) end [2025-04-22 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965828', 'tblTempVendorCDR_20' ) start [2025-04-22 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965828', 'tblTempVendorCDR_20' ) end [2025-04-22 15:22:22] Production.INFO: ProcessCDR(1,14965828,1,1,2) [2025-04-22 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965828', 'tblTempUsageDetail_20' ) start [2025-04-22 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965828', 'tblTempUsageDetail_20' ) end [2025-04-22 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:22:27] Production.INFO: ==10849== Releasing lock... [2025-04-22 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:22:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:23:05 [end_date_ymd] => 2025-04-22 15:23:05 [RateCDR] => 1 ) [2025-04-22 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:23:05' and `end` < '2025-04-22 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:23:19] Production.INFO: count ==5654 [2025-04-22 15:23:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:23:05 - End Time 2025-04-22 15:23:05 [2025-04-22 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965833', 'tblTempUsageDetail_20' ) start [2025-04-22 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965833', 'tblTempUsageDetail_20' ) end [2025-04-22 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965833', 'tblTempVendorCDR_20' ) start [2025-04-22 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965833', 'tblTempVendorCDR_20' ) end [2025-04-22 15:23:22] Production.INFO: ProcessCDR(1,14965833,1,1,2) [2025-04-22 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965833', 'tblTempUsageDetail_20' ) start [2025-04-22 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965833', 'tblTempUsageDetail_20' ) end [2025-04-22 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:23:27] Production.INFO: ==10925== Releasing lock... [2025-04-22 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:23:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:24:05 [end_date_ymd] => 2025-04-22 15:24:05 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:24:05' and `end` < '2025-04-22 15: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-04-22 15:24:19] Production.INFO: count ==5668 [2025-04-22 15:24:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:24:05 - End Time 2025-04-22 15:24:05 [2025-04-22 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965838', 'tblTempUsageDetail_20' ) start [2025-04-22 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965838', 'tblTempUsageDetail_20' ) end [2025-04-22 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965838', 'tblTempVendorCDR_20' ) start [2025-04-22 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965838', 'tblTempVendorCDR_20' ) end [2025-04-22 15:24:22] Production.INFO: ProcessCDR(1,14965838,1,1,2) [2025-04-22 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965838', 'tblTempUsageDetail_20' ) start [2025-04-22 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965838', 'tblTempUsageDetail_20' ) end [2025-04-22 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:24:27] Production.INFO: ==11000== Releasing lock... [2025-04-22 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:24:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:25:05 [end_date_ymd] => 2025-04-22 15:25:05 [RateCDR] => 1 ) [2025-04-22 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:25:05' and `end` < '2025-04-22 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:25:19] Production.INFO: count ==5677 [2025-04-22 15:25:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:25:05 - End Time 2025-04-22 15:25:05 [2025-04-22 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965843', 'tblTempUsageDetail_20' ) start [2025-04-22 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965843', 'tblTempUsageDetail_20' ) end [2025-04-22 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965843', 'tblTempVendorCDR_20' ) start [2025-04-22 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965843', 'tblTempVendorCDR_20' ) end [2025-04-22 15:25:22] Production.INFO: ProcessCDR(1,14965843,1,1,2) [2025-04-22 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965843', 'tblTempUsageDetail_20' ) start [2025-04-22 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965843', 'tblTempUsageDetail_20' ) end [2025-04-22 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:25:27] Production.INFO: ==11073== Releasing lock... [2025-04-22 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:25:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:26:06 [end_date_ymd] => 2025-04-22 15:26:06 [RateCDR] => 1 ) [2025-04-22 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:26:06' and `end` < '2025-04-22 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:26:20] Production.INFO: count ==5665 [2025-04-22 15:26:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:26:06 - End Time 2025-04-22 15:26:06 [2025-04-22 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965848', 'tblTempUsageDetail_20' ) start [2025-04-22 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965848', 'tblTempUsageDetail_20' ) end [2025-04-22 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965848', 'tblTempVendorCDR_20' ) start [2025-04-22 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965848', 'tblTempVendorCDR_20' ) end [2025-04-22 15:26:23] Production.INFO: ProcessCDR(1,14965848,1,1,2) [2025-04-22 15:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965848', 'tblTempUsageDetail_20' ) start [2025-04-22 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965848', 'tblTempUsageDetail_20' ) end [2025-04-22 15:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:26:28] Production.INFO: ==11149== Releasing lock... [2025-04-22 15:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:26:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:27:05 [end_date_ymd] => 2025-04-22 15:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:27:05' and `end` < '2025-04-22 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-04-22 15:27:19] Production.INFO: count ==5688 [2025-04-22 15:27:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:27:05 - End Time 2025-04-22 15:27:05 [2025-04-22 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965853', 'tblTempUsageDetail_20' ) start [2025-04-22 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965853', 'tblTempUsageDetail_20' ) end [2025-04-22 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965853', 'tblTempVendorCDR_20' ) start [2025-04-22 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965853', 'tblTempVendorCDR_20' ) end [2025-04-22 15:27:22] Production.INFO: ProcessCDR(1,14965853,1,1,2) [2025-04-22 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965853', 'tblTempUsageDetail_20' ) start [2025-04-22 15:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965853', 'tblTempUsageDetail_20' ) end [2025-04-22 15:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:27:28] Production.INFO: ==11227== Releasing lock... [2025-04-22 15:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:27:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:28:06 [end_date_ymd] => 2025-04-22 15:28:06 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:28:06' and `end` < '2025-04-22 15: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-04-22 15:28:19] Production.INFO: count ==5689 [2025-04-22 15:28:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:28:06 - End Time 2025-04-22 15:28:06 [2025-04-22 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965858', 'tblTempUsageDetail_20' ) start [2025-04-22 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965858', 'tblTempUsageDetail_20' ) end [2025-04-22 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965858', 'tblTempVendorCDR_20' ) start [2025-04-22 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965858', 'tblTempVendorCDR_20' ) end [2025-04-22 15:28:22] Production.INFO: ProcessCDR(1,14965858,1,1,2) [2025-04-22 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965858', 'tblTempUsageDetail_20' ) start [2025-04-22 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965858', 'tblTempUsageDetail_20' ) end [2025-04-22 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:28:27] Production.INFO: ==11299== Releasing lock... [2025-04-22 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:28:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:29:06 [end_date_ymd] => 2025-04-22 15:29:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:29:06' and `end` < '2025-04-22 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-04-22 15:29:19] Production.INFO: count ==5682 [2025-04-22 15:29:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:29:06 - End Time 2025-04-22 15:29:06 [2025-04-22 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965863', 'tblTempUsageDetail_20' ) start [2025-04-22 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965863', 'tblTempUsageDetail_20' ) end [2025-04-22 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965863', 'tblTempVendorCDR_20' ) start [2025-04-22 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965863', 'tblTempVendorCDR_20' ) end [2025-04-22 15:29:22] Production.INFO: ProcessCDR(1,14965863,1,1,2) [2025-04-22 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965863', 'tblTempUsageDetail_20' ) start [2025-04-22 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965863', 'tblTempUsageDetail_20' ) end [2025-04-22 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:29:27] Production.INFO: ==11375== Releasing lock... [2025-04-22 15:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:29:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:30:07 [end_date_ymd] => 2025-04-22 15:30:07 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:30:07' and `end` < '2025-04-22 15: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-04-22 15:30:21] Production.INFO: count ==5699 [2025-04-22 15:30:23] Production.ERROR: pbx CDR StartTime 2025-04-22 12:30:07 - End Time 2025-04-22 15:30:07 [2025-04-22 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965869', 'tblTempUsageDetail_20' ) start [2025-04-22 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965869', 'tblTempUsageDetail_20' ) end [2025-04-22 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965869', 'tblTempVendorCDR_20' ) start [2025-04-22 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965869', 'tblTempVendorCDR_20' ) end [2025-04-22 15:30:24] Production.INFO: ProcessCDR(1,14965869,1,1,2) [2025-04-22 15:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965869', 'tblTempUsageDetail_20' ) start [2025-04-22 15:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965869', 'tblTempUsageDetail_20' ) end [2025-04-22 15:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:30:29] Production.INFO: ==11448== Releasing lock... [2025-04-22 15:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:30:29] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:31:04 [end_date_ymd] => 2025-04-22 15:31:04 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:31:04' and `end` < '2025-04-22 15: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-04-22 15:31:18] Production.INFO: count ==5719 [2025-04-22 15:31:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:31:04 - End Time 2025-04-22 15:31:04 [2025-04-22 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965874', 'tblTempUsageDetail_20' ) start [2025-04-22 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965874', 'tblTempUsageDetail_20' ) end [2025-04-22 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965874', 'tblTempVendorCDR_20' ) start [2025-04-22 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965874', 'tblTempVendorCDR_20' ) end [2025-04-22 15:31:21] Production.INFO: ProcessCDR(1,14965874,1,1,2) [2025-04-22 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965874', 'tblTempUsageDetail_20' ) start [2025-04-22 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965874', 'tblTempUsageDetail_20' ) end [2025-04-22 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:31:27] Production.INFO: ==11567== Releasing lock... [2025-04-22 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:31:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:32:06 [end_date_ymd] => 2025-04-22 15:32:06 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:32:06' and `end` < '2025-04-22 15: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-04-22 15:32:20] Production.INFO: count ==5712 [2025-04-22 15:32:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:32:06 - End Time 2025-04-22 15:32:06 [2025-04-22 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965879', 'tblTempUsageDetail_20' ) start [2025-04-22 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965879', 'tblTempUsageDetail_20' ) end [2025-04-22 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965879', 'tblTempVendorCDR_20' ) start [2025-04-22 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965879', 'tblTempVendorCDR_20' ) end [2025-04-22 15:32:23] Production.INFO: ProcessCDR(1,14965879,1,1,2) [2025-04-22 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965879', 'tblTempUsageDetail_20' ) start [2025-04-22 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965879', 'tblTempUsageDetail_20' ) end [2025-04-22 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:32:28] Production.INFO: ==11647== Releasing lock... [2025-04-22 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:32:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:33:05 [end_date_ymd] => 2025-04-22 15:33:05 [RateCDR] => 1 ) [2025-04-22 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:33:05' and `end` < '2025-04-22 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:33:19] Production.INFO: count ==5716 [2025-04-22 15:33:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:33:05 - End Time 2025-04-22 15:33:05 [2025-04-22 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965884', 'tblTempUsageDetail_20' ) start [2025-04-22 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965884', 'tblTempUsageDetail_20' ) end [2025-04-22 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965884', 'tblTempVendorCDR_20' ) start [2025-04-22 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965884', 'tblTempVendorCDR_20' ) end [2025-04-22 15:33:22] Production.INFO: ProcessCDR(1,14965884,1,1,2) [2025-04-22 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965884', 'tblTempUsageDetail_20' ) start [2025-04-22 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965884', 'tblTempUsageDetail_20' ) end [2025-04-22 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:33:27] Production.INFO: ==11717== Releasing lock... [2025-04-22 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:33:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:34:05 [end_date_ymd] => 2025-04-22 15:34:05 [RateCDR] => 1 ) [2025-04-22 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:34:05' and `end` < '2025-04-22 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:34:19] Production.INFO: count ==5727 [2025-04-22 15:34:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:34:05 - End Time 2025-04-22 15:34:05 [2025-04-22 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965889', 'tblTempUsageDetail_20' ) start [2025-04-22 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965889', 'tblTempUsageDetail_20' ) end [2025-04-22 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965889', 'tblTempVendorCDR_20' ) start [2025-04-22 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965889', 'tblTempVendorCDR_20' ) end [2025-04-22 15:34:22] Production.INFO: ProcessCDR(1,14965889,1,1,2) [2025-04-22 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965889', 'tblTempUsageDetail_20' ) start [2025-04-22 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965889', 'tblTempUsageDetail_20' ) end [2025-04-22 15:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:34:28] Production.INFO: ==11791== Releasing lock... [2025-04-22 15:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:34:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:35:05 [end_date_ymd] => 2025-04-22 15:35:05 [RateCDR] => 1 ) [2025-04-22 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:35:05' and `end` < '2025-04-22 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:35:19] Production.INFO: count ==5730 [2025-04-22 15:35:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:35:05 - End Time 2025-04-22 15:35:05 [2025-04-22 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965894', 'tblTempUsageDetail_20' ) start [2025-04-22 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965894', 'tblTempUsageDetail_20' ) end [2025-04-22 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965894', 'tblTempVendorCDR_20' ) start [2025-04-22 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965894', 'tblTempVendorCDR_20' ) end [2025-04-22 15:35:22] Production.INFO: ProcessCDR(1,14965894,1,1,2) [2025-04-22 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965894', 'tblTempUsageDetail_20' ) start [2025-04-22 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965894', 'tblTempUsageDetail_20' ) end [2025-04-22 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:35:27] Production.INFO: ==11880== Releasing lock... [2025-04-22 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:35:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:36:05 [end_date_ymd] => 2025-04-22 15:36:05 [RateCDR] => 1 ) [2025-04-22 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:36:05' and `end` < '2025-04-22 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:36:19] Production.INFO: count ==5738 [2025-04-22 15:36:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:36:05 - End Time 2025-04-22 15:36:05 [2025-04-22 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965899', 'tblTempUsageDetail_20' ) start [2025-04-22 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965899', 'tblTempUsageDetail_20' ) end [2025-04-22 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965899', 'tblTempVendorCDR_20' ) start [2025-04-22 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965899', 'tblTempVendorCDR_20' ) end [2025-04-22 15:36:22] Production.INFO: ProcessCDR(1,14965899,1,1,2) [2025-04-22 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965899', 'tblTempUsageDetail_20' ) start [2025-04-22 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965899', 'tblTempUsageDetail_20' ) end [2025-04-22 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:36:27] Production.INFO: ==11950== Releasing lock... [2025-04-22 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:36:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:37:05 [end_date_ymd] => 2025-04-22 15:37:05 [RateCDR] => 1 ) [2025-04-22 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:37:05' and `end` < '2025-04-22 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:37:19] Production.INFO: count ==5741 [2025-04-22 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:37:05 - End Time 2025-04-22 15:37:05 [2025-04-22 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965904', 'tblTempUsageDetail_20' ) start [2025-04-22 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965904', 'tblTempUsageDetail_20' ) end [2025-04-22 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965904', 'tblTempVendorCDR_20' ) start [2025-04-22 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965904', 'tblTempVendorCDR_20' ) end [2025-04-22 15:37:22] Production.INFO: ProcessCDR(1,14965904,1,1,2) [2025-04-22 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965904', 'tblTempUsageDetail_20' ) start [2025-04-22 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965904', 'tblTempUsageDetail_20' ) end [2025-04-22 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:37:27] Production.INFO: ==12020== Releasing lock... [2025-04-22 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:37:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:38:06 [end_date_ymd] => 2025-04-22 15:38:06 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:38:06' and `end` < '2025-04-22 15: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-04-22 15:38:19] Production.INFO: count ==5736 [2025-04-22 15:38:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:38:06 - End Time 2025-04-22 15:38:06 [2025-04-22 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965909', 'tblTempUsageDetail_20' ) start [2025-04-22 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965909', 'tblTempUsageDetail_20' ) end [2025-04-22 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965909', 'tblTempVendorCDR_20' ) start [2025-04-22 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965909', 'tblTempVendorCDR_20' ) end [2025-04-22 15:38:22] Production.INFO: ProcessCDR(1,14965909,1,1,2) [2025-04-22 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965909', 'tblTempUsageDetail_20' ) start [2025-04-22 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965909', 'tblTempUsageDetail_20' ) end [2025-04-22 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:38:28] Production.INFO: ==12090== Releasing lock... [2025-04-22 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:38:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:39:05 [end_date_ymd] => 2025-04-22 15:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:39:05' and `end` < '2025-04-22 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-04-22 15:39:19] Production.INFO: count ==5715 [2025-04-22 15:39:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:39:05 - End Time 2025-04-22 15:39:05 [2025-04-22 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965914', 'tblTempUsageDetail_20' ) start [2025-04-22 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965914', 'tblTempUsageDetail_20' ) end [2025-04-22 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965914', 'tblTempVendorCDR_20' ) start [2025-04-22 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965914', 'tblTempVendorCDR_20' ) end [2025-04-22 15:39:22] Production.INFO: ProcessCDR(1,14965914,1,1,2) [2025-04-22 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965914', 'tblTempUsageDetail_20' ) start [2025-04-22 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965914', 'tblTempUsageDetail_20' ) end [2025-04-22 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:39:27] Production.INFO: ==12167== Releasing lock... [2025-04-22 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:39:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:40:06 [end_date_ymd] => 2025-04-22 15:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:40:06' and `end` < '2025-04-22 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-04-22 15:40:20] Production.INFO: count ==5701 [2025-04-22 15:40:23] Production.ERROR: pbx CDR StartTime 2025-04-22 12:40:06 - End Time 2025-04-22 15:40:06 [2025-04-22 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965920', 'tblTempUsageDetail_20' ) start [2025-04-22 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965920', 'tblTempUsageDetail_20' ) end [2025-04-22 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965920', 'tblTempVendorCDR_20' ) start [2025-04-22 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965920', 'tblTempVendorCDR_20' ) end [2025-04-22 15:40:23] Production.INFO: ProcessCDR(1,14965920,1,1,2) [2025-04-22 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965920', 'tblTempUsageDetail_20' ) start [2025-04-22 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965920', 'tblTempUsageDetail_20' ) end [2025-04-22 15:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:40:29] Production.INFO: ==12243== Releasing lock... [2025-04-22 15:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:40:29] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:41:05 [end_date_ymd] => 2025-04-22 15:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:41:05' and `end` < '2025-04-22 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-04-22 15:41:19] Production.INFO: count ==5714 [2025-04-22 15:41:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:41:05 - End Time 2025-04-22 15:41:05 [2025-04-22 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965925', 'tblTempUsageDetail_20' ) start [2025-04-22 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965925', 'tblTempUsageDetail_20' ) end [2025-04-22 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965925', 'tblTempVendorCDR_20' ) start [2025-04-22 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965925', 'tblTempVendorCDR_20' ) end [2025-04-22 15:41:22] Production.INFO: ProcessCDR(1,14965925,1,1,2) [2025-04-22 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965925', 'tblTempUsageDetail_20' ) start [2025-04-22 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965925', 'tblTempUsageDetail_20' ) end [2025-04-22 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:41:27] Production.INFO: ==12320== Releasing lock... [2025-04-22 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:41:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:42:06 [end_date_ymd] => 2025-04-22 15:42:06 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:42:06' and `end` < '2025-04-22 15: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-04-22 15:42:20] Production.INFO: count ==5711 [2025-04-22 15:42:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:42:06 - End Time 2025-04-22 15:42:06 [2025-04-22 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965930', 'tblTempUsageDetail_20' ) start [2025-04-22 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965930', 'tblTempUsageDetail_20' ) end [2025-04-22 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965930', 'tblTempVendorCDR_20' ) start [2025-04-22 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965930', 'tblTempVendorCDR_20' ) end [2025-04-22 15:42:23] Production.INFO: ProcessCDR(1,14965930,1,1,2) [2025-04-22 15:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965930', 'tblTempUsageDetail_20' ) start [2025-04-22 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965930', 'tblTempUsageDetail_20' ) end [2025-04-22 15:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:42:28] Production.INFO: ==12398== Releasing lock... [2025-04-22 15:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:42:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:43:05 [end_date_ymd] => 2025-04-22 15:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:43:05' and `end` < '2025-04-22 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-04-22 15:43:18] Production.INFO: count ==5703 [2025-04-22 15:43:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:43:05 - End Time 2025-04-22 15:43:05 [2025-04-22 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965935', 'tblTempUsageDetail_20' ) start [2025-04-22 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965935', 'tblTempUsageDetail_20' ) end [2025-04-22 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965935', 'tblTempVendorCDR_20' ) start [2025-04-22 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965935', 'tblTempVendorCDR_20' ) end [2025-04-22 15:43:21] Production.INFO: ProcessCDR(1,14965935,1,1,2) [2025-04-22 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965935', 'tblTempUsageDetail_20' ) start [2025-04-22 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965935', 'tblTempUsageDetail_20' ) end [2025-04-22 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:43:26] Production.INFO: ==12476== Releasing lock... [2025-04-22 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:43:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:44:05 [end_date_ymd] => 2025-04-22 15:44:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:44:05' and `end` < '2025-04-22 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-04-22 15:44:19] Production.INFO: count ==5696 [2025-04-22 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:44:05 - End Time 2025-04-22 15:44:05 [2025-04-22 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965940', 'tblTempUsageDetail_20' ) start [2025-04-22 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965940', 'tblTempUsageDetail_20' ) end [2025-04-22 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965940', 'tblTempVendorCDR_20' ) start [2025-04-22 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965940', 'tblTempVendorCDR_20' ) end [2025-04-22 15:44:22] Production.INFO: ProcessCDR(1,14965940,1,1,2) [2025-04-22 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965940', 'tblTempUsageDetail_20' ) start [2025-04-22 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965940', 'tblTempUsageDetail_20' ) end [2025-04-22 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:44:27] Production.INFO: ==12555== Releasing lock... [2025-04-22 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:44:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:45:06 [end_date_ymd] => 2025-04-22 15:45:06 [RateCDR] => 1 ) [2025-04-22 15: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-04-22 12:45:06' and `end` < '2025-04-22 15: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-04-22 15:45:20] Production.INFO: count ==5697 [2025-04-22 15:45:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:45:06 - End Time 2025-04-22 15:45:06 [2025-04-22 15:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965945', 'tblTempUsageDetail_20' ) start [2025-04-22 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965945', 'tblTempUsageDetail_20' ) end [2025-04-22 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965945', 'tblTempVendorCDR_20' ) start [2025-04-22 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965945', 'tblTempVendorCDR_20' ) end [2025-04-22 15:45:23] Production.INFO: ProcessCDR(1,14965945,1,1,2) [2025-04-22 15:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965945', 'tblTempUsageDetail_20' ) start [2025-04-22 15:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965945', 'tblTempUsageDetail_20' ) end [2025-04-22 15:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:45:28] Production.INFO: ==12638== Releasing lock... [2025-04-22 15:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:45:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:46:05 [end_date_ymd] => 2025-04-22 15:46:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:46:05' and `end` < '2025-04-22 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-04-22 15:46:19] Production.INFO: count ==5730 [2025-04-22 15:46:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:46:05 - End Time 2025-04-22 15:46:05 [2025-04-22 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965950', 'tblTempUsageDetail_20' ) start [2025-04-22 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965950', 'tblTempUsageDetail_20' ) end [2025-04-22 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965950', 'tblTempVendorCDR_20' ) start [2025-04-22 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965950', 'tblTempVendorCDR_20' ) end [2025-04-22 15:46:22] Production.INFO: ProcessCDR(1,14965950,1,1,2) [2025-04-22 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965950', 'tblTempUsageDetail_20' ) start [2025-04-22 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965950', 'tblTempUsageDetail_20' ) end [2025-04-22 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:46:28] Production.INFO: ==12768== Releasing lock... [2025-04-22 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:46:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:47:05 [end_date_ymd] => 2025-04-22 15:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:47:05' and `end` < '2025-04-22 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-04-22 15:47:19] Production.INFO: count ==5739 [2025-04-22 15:47:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:47:05 - End Time 2025-04-22 15:47:05 [2025-04-22 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965955', 'tblTempUsageDetail_20' ) start [2025-04-22 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965955', 'tblTempUsageDetail_20' ) end [2025-04-22 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965955', 'tblTempVendorCDR_20' ) start [2025-04-22 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965955', 'tblTempVendorCDR_20' ) end [2025-04-22 15:47:22] Production.INFO: ProcessCDR(1,14965955,1,1,2) [2025-04-22 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965955', 'tblTempUsageDetail_20' ) start [2025-04-22 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965955', 'tblTempUsageDetail_20' ) end [2025-04-22 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:47:27] Production.INFO: ==12857== Releasing lock... [2025-04-22 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:47:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:48:05 [end_date_ymd] => 2025-04-22 15:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:48:05' and `end` < '2025-04-22 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-04-22 15:48:19] Production.INFO: count ==5748 [2025-04-22 15:48:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:48:05 - End Time 2025-04-22 15:48:05 [2025-04-22 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965960', 'tblTempUsageDetail_20' ) start [2025-04-22 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965960', 'tblTempUsageDetail_20' ) end [2025-04-22 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965960', 'tblTempVendorCDR_20' ) start [2025-04-22 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965960', 'tblTempVendorCDR_20' ) end [2025-04-22 15:48:22] Production.INFO: ProcessCDR(1,14965960,1,1,2) [2025-04-22 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965960', 'tblTempUsageDetail_20' ) start [2025-04-22 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965960', 'tblTempUsageDetail_20' ) end [2025-04-22 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:48:28] Production.INFO: ==12940== Releasing lock... [2025-04-22 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:48:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:49:06 [end_date_ymd] => 2025-04-22 15:49:06 [RateCDR] => 1 ) [2025-04-22 15:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:49:06' and `end` < '2025-04-22 15:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:49:20] Production.INFO: count ==5740 [2025-04-22 15:49:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:49:06 - End Time 2025-04-22 15:49:06 [2025-04-22 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965965', 'tblTempUsageDetail_20' ) start [2025-04-22 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965965', 'tblTempUsageDetail_20' ) end [2025-04-22 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965965', 'tblTempVendorCDR_20' ) start [2025-04-22 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965965', 'tblTempVendorCDR_20' ) end [2025-04-22 15:49:23] Production.INFO: ProcessCDR(1,14965965,1,1,2) [2025-04-22 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965965', 'tblTempUsageDetail_20' ) start [2025-04-22 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965965', 'tblTempUsageDetail_20' ) end [2025-04-22 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:49:27] Production.INFO: ==13019== Releasing lock... [2025-04-22 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:49:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:50:06 [end_date_ymd] => 2025-04-22 15:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:50:06' and `end` < '2025-04-22 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-04-22 15:50:20] Production.INFO: count ==5719 [2025-04-22 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:50:06 - End Time 2025-04-22 15:50:06 [2025-04-22 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965970', 'tblTempUsageDetail_20' ) start [2025-04-22 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965970', 'tblTempUsageDetail_20' ) end [2025-04-22 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965970', 'tblTempVendorCDR_20' ) start [2025-04-22 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965970', 'tblTempVendorCDR_20' ) end [2025-04-22 15:50:23] Production.INFO: ProcessCDR(1,14965970,1,1,2) [2025-04-22 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965970', 'tblTempUsageDetail_20' ) start [2025-04-22 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965970', 'tblTempUsageDetail_20' ) end [2025-04-22 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:50:28] Production.INFO: ==13101== Releasing lock... [2025-04-22 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:50:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:51:05 [end_date_ymd] => 2025-04-22 15:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:51:05' and `end` < '2025-04-22 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-04-22 15:51:19] Production.INFO: count ==5685 [2025-04-22 15:51:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:51:05 - End Time 2025-04-22 15:51:05 [2025-04-22 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965976', 'tblTempUsageDetail_20' ) start [2025-04-22 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965976', 'tblTempUsageDetail_20' ) end [2025-04-22 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965976', 'tblTempVendorCDR_20' ) start [2025-04-22 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965976', 'tblTempVendorCDR_20' ) end [2025-04-22 15:51:22] Production.INFO: ProcessCDR(1,14965976,1,1,2) [2025-04-22 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965976', 'tblTempUsageDetail_20' ) start [2025-04-22 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965976', 'tblTempUsageDetail_20' ) end [2025-04-22 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:51:27] Production.INFO: ==13177== Releasing lock... [2025-04-22 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:51:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:52:05 [end_date_ymd] => 2025-04-22 15:52:05 [RateCDR] => 1 ) [2025-04-22 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:52:05' and `end` < '2025-04-22 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:52:19] Production.INFO: count ==5680 [2025-04-22 15:52:22] Production.ERROR: pbx CDR StartTime 2025-04-22 12:52:05 - End Time 2025-04-22 15:52:05 [2025-04-22 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965981', 'tblTempUsageDetail_20' ) start [2025-04-22 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965981', 'tblTempUsageDetail_20' ) end [2025-04-22 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965981', 'tblTempVendorCDR_20' ) start [2025-04-22 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965981', 'tblTempVendorCDR_20' ) end [2025-04-22 15:52:22] Production.INFO: ProcessCDR(1,14965981,1,1,2) [2025-04-22 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965981', 'tblTempUsageDetail_20' ) start [2025-04-22 15:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965981', 'tblTempUsageDetail_20' ) end [2025-04-22 15:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:52:28] Production.INFO: ==13250== Releasing lock... [2025-04-22 15:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:52:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:53:05 [end_date_ymd] => 2025-04-22 15:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:53:05' and `end` < '2025-04-22 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-04-22 15:53:19] Production.INFO: count ==5692 [2025-04-22 15:53:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:53:05 - End Time 2025-04-22 15:53:05 [2025-04-22 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965986', 'tblTempUsageDetail_20' ) start [2025-04-22 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965986', 'tblTempUsageDetail_20' ) end [2025-04-22 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965986', 'tblTempVendorCDR_20' ) start [2025-04-22 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965986', 'tblTempVendorCDR_20' ) end [2025-04-22 15:53:22] Production.INFO: ProcessCDR(1,14965986,1,1,2) [2025-04-22 15:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965986', 'tblTempUsageDetail_20' ) start [2025-04-22 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965986', 'tblTempUsageDetail_20' ) end [2025-04-22 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:53:27] Production.INFO: ==13326== Releasing lock... [2025-04-22 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:53:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:54:05 [end_date_ymd] => 2025-04-22 15:54:05 [RateCDR] => 1 ) [2025-04-22 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:54:05' and `end` < '2025-04-22 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:54:19] Production.INFO: count ==5682 [2025-04-22 15:54:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:54:05 - End Time 2025-04-22 15:54:05 [2025-04-22 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965991', 'tblTempUsageDetail_20' ) start [2025-04-22 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965991', 'tblTempUsageDetail_20' ) end [2025-04-22 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965991', 'tblTempVendorCDR_20' ) start [2025-04-22 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965991', 'tblTempVendorCDR_20' ) end [2025-04-22 15:54:22] Production.INFO: ProcessCDR(1,14965991,1,1,2) [2025-04-22 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965991', 'tblTempUsageDetail_20' ) start [2025-04-22 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965991', 'tblTempUsageDetail_20' ) end [2025-04-22 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:54:27] Production.INFO: ==13397== Releasing lock... [2025-04-22 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:54:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:55:05 [end_date_ymd] => 2025-04-22 15:55:05 [RateCDR] => 1 ) [2025-04-22 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:55:05' and `end` < '2025-04-22 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:55:19] Production.INFO: count ==5685 [2025-04-22 15:55:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:55:05 - End Time 2025-04-22 15:55:05 [2025-04-22 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965996', 'tblTempUsageDetail_20' ) start [2025-04-22 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14965996', 'tblTempUsageDetail_20' ) end [2025-04-22 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965996', 'tblTempVendorCDR_20' ) start [2025-04-22 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14965996', 'tblTempVendorCDR_20' ) end [2025-04-22 15:55:22] Production.INFO: ProcessCDR(1,14965996,1,1,2) [2025-04-22 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14965996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14965996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14965996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14965996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965996', 'tblTempUsageDetail_20' ) start [2025-04-22 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14965996', 'tblTempUsageDetail_20' ) end [2025-04-22 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:55:27] Production.INFO: ==13477== Releasing lock... [2025-04-22 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:55:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:56:05 [end_date_ymd] => 2025-04-22 15:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:56:05' and `end` < '2025-04-22 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-04-22 15:56:18] Production.INFO: count ==5686 [2025-04-22 15:56:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:56:05 - End Time 2025-04-22 15:56:05 [2025-04-22 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966001', 'tblTempUsageDetail_20' ) start [2025-04-22 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966001', 'tblTempUsageDetail_20' ) end [2025-04-22 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966001', 'tblTempVendorCDR_20' ) start [2025-04-22 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966001', 'tblTempVendorCDR_20' ) end [2025-04-22 15:56:21] Production.INFO: ProcessCDR(1,14966001,1,1,2) [2025-04-22 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966001', 'tblTempUsageDetail_20' ) start [2025-04-22 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966001', 'tblTempUsageDetail_20' ) end [2025-04-22 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:56:26] Production.INFO: ==13546== Releasing lock... [2025-04-22 15:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:56:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:57:05 [end_date_ymd] => 2025-04-22 15:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:57:05' and `end` < '2025-04-22 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-04-22 15:57:19] Production.INFO: count ==5680 [2025-04-22 15:57:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:57:05 - End Time 2025-04-22 15:57:05 [2025-04-22 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966006', 'tblTempUsageDetail_20' ) start [2025-04-22 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966006', 'tblTempUsageDetail_20' ) end [2025-04-22 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966006', 'tblTempVendorCDR_20' ) start [2025-04-22 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966006', 'tblTempVendorCDR_20' ) end [2025-04-22 15:57:22] Production.INFO: ProcessCDR(1,14966006,1,1,2) [2025-04-22 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966006', 'tblTempUsageDetail_20' ) start [2025-04-22 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966006', 'tblTempUsageDetail_20' ) end [2025-04-22 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:57:27] Production.INFO: ==13619== Releasing lock... [2025-04-22 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:57:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:58:05 [end_date_ymd] => 2025-04-22 15:58:05 [RateCDR] => 1 ) [2025-04-22 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 12:58:05' and `end` < '2025-04-22 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 15:58:19] Production.INFO: count ==5689 [2025-04-22 15:58:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:58:05 - End Time 2025-04-22 15:58:05 [2025-04-22 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966011', 'tblTempUsageDetail_20' ) start [2025-04-22 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966011', 'tblTempUsageDetail_20' ) end [2025-04-22 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966011', 'tblTempVendorCDR_20' ) start [2025-04-22 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966011', 'tblTempVendorCDR_20' ) end [2025-04-22 15:58:22] Production.INFO: ProcessCDR(1,14966011,1,1,2) [2025-04-22 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966011', 'tblTempUsageDetail_20' ) start [2025-04-22 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966011', 'tblTempUsageDetail_20' ) end [2025-04-22 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:58:27] Production.INFO: ==13691== Releasing lock... [2025-04-22 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:58:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 12:59:05 [end_date_ymd] => 2025-04-22 15:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 12:59:05' and `end` < '2025-04-22 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-04-22 15:59:19] Production.INFO: count ==5682 [2025-04-22 15:59:21] Production.ERROR: pbx CDR StartTime 2025-04-22 12:59:05 - End Time 2025-04-22 15:59:05 [2025-04-22 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966016', 'tblTempUsageDetail_20' ) start [2025-04-22 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966016', 'tblTempUsageDetail_20' ) end [2025-04-22 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966016', 'tblTempVendorCDR_20' ) start [2025-04-22 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966016', 'tblTempVendorCDR_20' ) end [2025-04-22 15:59:22] Production.INFO: ProcessCDR(1,14966016,1,1,2) [2025-04-22 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966016', 'tblTempUsageDetail_20' ) start [2025-04-22 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966016', 'tblTempUsageDetail_20' ) end [2025-04-22 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 15:59:27] Production.INFO: ==13761== Releasing lock... [2025-04-22 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 15:59:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:00:06 [end_date_ymd] => 2025-04-22 16:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:00:06' and `end` < '2025-04-22 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-04-22 16:00:20] Production.INFO: count ==5668 [2025-04-22 16:00:23] Production.ERROR: pbx CDR StartTime 2025-04-22 13:00:06 - End Time 2025-04-22 16:00:06 [2025-04-22 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966022', 'tblTempUsageDetail_20' ) start [2025-04-22 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966022', 'tblTempUsageDetail_20' ) end [2025-04-22 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966022', 'tblTempVendorCDR_20' ) start [2025-04-22 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966022', 'tblTempVendorCDR_20' ) end [2025-04-22 16:00:23] Production.INFO: ProcessCDR(1,14966022,1,1,2) [2025-04-22 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966022', 'tblTempUsageDetail_20' ) start [2025-04-22 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966022', 'tblTempUsageDetail_20' ) end [2025-04-22 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:00:29] Production.INFO: ==13852== Releasing lock... [2025-04-22 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:00:29] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:01:05 [end_date_ymd] => 2025-04-22 16:01:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:01:05' and `end` < '2025-04-22 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-04-22 16:01:19] Production.INFO: count ==5690 [2025-04-22 16:01:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:01:05 - End Time 2025-04-22 16:01:05 [2025-04-22 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966027', 'tblTempUsageDetail_20' ) start [2025-04-22 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966027', 'tblTempUsageDetail_20' ) end [2025-04-22 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966027', 'tblTempVendorCDR_20' ) start [2025-04-22 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966027', 'tblTempVendorCDR_20' ) end [2025-04-22 16:01:22] Production.INFO: ProcessCDR(1,14966027,1,1,2) [2025-04-22 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966027', 'tblTempUsageDetail_20' ) start [2025-04-22 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966027', 'tblTempUsageDetail_20' ) end [2025-04-22 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:01:27] Production.INFO: ==13964== Releasing lock... [2025-04-22 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:01:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:02:05 [end_date_ymd] => 2025-04-22 16:02:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:02:05' and `end` < '2025-04-22 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-04-22 16:02:20] Production.INFO: count ==5687 [2025-04-22 16:02:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:02:05 - End Time 2025-04-22 16:02:05 [2025-04-22 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966032', 'tblTempUsageDetail_20' ) start [2025-04-22 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966032', 'tblTempUsageDetail_20' ) end [2025-04-22 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966032', 'tblTempVendorCDR_20' ) start [2025-04-22 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966032', 'tblTempVendorCDR_20' ) end [2025-04-22 16:02:22] Production.INFO: ProcessCDR(1,14966032,1,1,2) [2025-04-22 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966032', 'tblTempUsageDetail_20' ) start [2025-04-22 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966032', 'tblTempUsageDetail_20' ) end [2025-04-22 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:02:27] Production.INFO: ==14114== Releasing lock... [2025-04-22 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:02:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:03:05 [end_date_ymd] => 2025-04-22 16:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:03:05' and `end` < '2025-04-22 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-04-22 16:03:19] Production.INFO: count ==5698 [2025-04-22 16:03:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:03:05 - End Time 2025-04-22 16:03:05 [2025-04-22 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966037', 'tblTempUsageDetail_20' ) start [2025-04-22 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966037', 'tblTempUsageDetail_20' ) end [2025-04-22 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966037', 'tblTempVendorCDR_20' ) start [2025-04-22 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966037', 'tblTempVendorCDR_20' ) end [2025-04-22 16:03:22] Production.INFO: ProcessCDR(1,14966037,1,1,2) [2025-04-22 16:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966037', 'tblTempUsageDetail_20' ) start [2025-04-22 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966037', 'tblTempUsageDetail_20' ) end [2025-04-22 16:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:03:28] Production.INFO: ==14212== Releasing lock... [2025-04-22 16:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:03:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:04:05 [end_date_ymd] => 2025-04-22 16:04:05 [RateCDR] => 1 ) [2025-04-22 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:04:05' and `end` < '2025-04-22 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:04:20] Production.INFO: count ==5689 [2025-04-22 16:04:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:04:05 - End Time 2025-04-22 16:04:05 [2025-04-22 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966042', 'tblTempUsageDetail_20' ) start [2025-04-22 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966042', 'tblTempUsageDetail_20' ) end [2025-04-22 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966042', 'tblTempVendorCDR_20' ) start [2025-04-22 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966042', 'tblTempVendorCDR_20' ) end [2025-04-22 16:04:22] Production.INFO: ProcessCDR(1,14966042,1,1,2) [2025-04-22 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966042', 'tblTempUsageDetail_20' ) start [2025-04-22 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966042', 'tblTempUsageDetail_20' ) end [2025-04-22 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:04:28] Production.INFO: ==14321== Releasing lock... [2025-04-22 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:04:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:05:05 [end_date_ymd] => 2025-04-22 16:05:05 [RateCDR] => 1 ) [2025-04-22 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:05:05' and `end` < '2025-04-22 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:05:19] Production.INFO: count ==5710 [2025-04-22 16:05:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:05:05 - End Time 2025-04-22 16:05:05 [2025-04-22 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966047', 'tblTempUsageDetail_20' ) start [2025-04-22 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966047', 'tblTempUsageDetail_20' ) end [2025-04-22 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966047', 'tblTempVendorCDR_20' ) start [2025-04-22 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966047', 'tblTempVendorCDR_20' ) end [2025-04-22 16:05:22] Production.INFO: ProcessCDR(1,14966047,1,1,2) [2025-04-22 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966047', 'tblTempUsageDetail_20' ) start [2025-04-22 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966047', 'tblTempUsageDetail_20' ) end [2025-04-22 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:05:27] Production.INFO: ==14418== Releasing lock... [2025-04-22 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:05:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:06:05 [end_date_ymd] => 2025-04-22 16:06:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:06:05' and `end` < '2025-04-22 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-04-22 16:06:19] Production.INFO: count ==5718 [2025-04-22 16:06:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:06:05 - End Time 2025-04-22 16:06:05 [2025-04-22 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966052', 'tblTempUsageDetail_20' ) start [2025-04-22 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966052', 'tblTempUsageDetail_20' ) end [2025-04-22 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966052', 'tblTempVendorCDR_20' ) start [2025-04-22 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966052', 'tblTempVendorCDR_20' ) end [2025-04-22 16:06:23] Production.INFO: ProcessCDR(1,14966052,1,1,2) [2025-04-22 16:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966052', 'tblTempUsageDetail_20' ) start [2025-04-22 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966052', 'tblTempUsageDetail_20' ) end [2025-04-22 16:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:06:28] Production.INFO: ==14525== Releasing lock... [2025-04-22 16:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:06:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:07:05 [end_date_ymd] => 2025-04-22 16:07:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:07:05' and `end` < '2025-04-22 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-04-22 16:07:19] Production.INFO: count ==5704 [2025-04-22 16:07:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:07:05 - End Time 2025-04-22 16:07:05 [2025-04-22 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966057', 'tblTempUsageDetail_20' ) start [2025-04-22 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966057', 'tblTempUsageDetail_20' ) end [2025-04-22 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966057', 'tblTempVendorCDR_20' ) start [2025-04-22 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966057', 'tblTempVendorCDR_20' ) end [2025-04-22 16:07:22] Production.INFO: ProcessCDR(1,14966057,1,1,2) [2025-04-22 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966057', 'tblTempUsageDetail_20' ) start [2025-04-22 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966057', 'tblTempUsageDetail_20' ) end [2025-04-22 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:07:27] Production.INFO: ==14625== Releasing lock... [2025-04-22 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:07:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:08:05 [end_date_ymd] => 2025-04-22 16:08:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:08:05' and `end` < '2025-04-22 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-04-22 16:08:19] Production.INFO: count ==5694 [2025-04-22 16:08:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:08:05 - End Time 2025-04-22 16:08:05 [2025-04-22 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966062', 'tblTempUsageDetail_20' ) start [2025-04-22 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966062', 'tblTempUsageDetail_20' ) end [2025-04-22 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966062', 'tblTempVendorCDR_20' ) start [2025-04-22 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966062', 'tblTempVendorCDR_20' ) end [2025-04-22 16:08:22] Production.INFO: ProcessCDR(1,14966062,1,1,2) [2025-04-22 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966062', 'tblTempUsageDetail_20' ) start [2025-04-22 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966062', 'tblTempUsageDetail_20' ) end [2025-04-22 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:08:27] Production.INFO: ==14723== Releasing lock... [2025-04-22 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:08:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:09:06 [end_date_ymd] => 2025-04-22 16:09:06 [RateCDR] => 1 ) [2025-04-22 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:09:06' and `end` < '2025-04-22 16:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:09:19] Production.INFO: count ==5696 [2025-04-22 16:09:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:09:06 - End Time 2025-04-22 16:09:06 [2025-04-22 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966067', 'tblTempUsageDetail_20' ) start [2025-04-22 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966067', 'tblTempUsageDetail_20' ) end [2025-04-22 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966067', 'tblTempVendorCDR_20' ) start [2025-04-22 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966067', 'tblTempVendorCDR_20' ) end [2025-04-22 16:09:22] Production.INFO: ProcessCDR(1,14966067,1,1,2) [2025-04-22 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966067', 'tblTempUsageDetail_20' ) start [2025-04-22 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966067', 'tblTempUsageDetail_20' ) end [2025-04-22 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:09:27] Production.INFO: ==14820== Releasing lock... [2025-04-22 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:09:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:10:06 [end_date_ymd] => 2025-04-22 16:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:10:06' and `end` < '2025-04-22 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-04-22 16:10:20] Production.INFO: count ==5694 [2025-04-22 16:10:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:10:06 - End Time 2025-04-22 16:10:06 [2025-04-22 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966073', 'tblTempUsageDetail_20' ) start [2025-04-22 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966073', 'tblTempUsageDetail_20' ) end [2025-04-22 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966073', 'tblTempVendorCDR_20' ) start [2025-04-22 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966073', 'tblTempVendorCDR_20' ) end [2025-04-22 16:10:23] Production.INFO: ProcessCDR(1,14966073,1,1,2) [2025-04-22 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966073', 'tblTempUsageDetail_20' ) start [2025-04-22 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966073', 'tblTempUsageDetail_20' ) end [2025-04-22 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:10:28] Production.INFO: ==14924== Releasing lock... [2025-04-22 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:10:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:11:06 [end_date_ymd] => 2025-04-22 16:11:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:11:06' and `end` < '2025-04-22 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-04-22 16:11:20] Production.INFO: count ==5713 [2025-04-22 16:11:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:11:06 - End Time 2025-04-22 16:11:06 [2025-04-22 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966078', 'tblTempUsageDetail_20' ) start [2025-04-22 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966078', 'tblTempUsageDetail_20' ) end [2025-04-22 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966078', 'tblTempVendorCDR_20' ) start [2025-04-22 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966078', 'tblTempVendorCDR_20' ) end [2025-04-22 16:11:22] Production.INFO: ProcessCDR(1,14966078,1,1,2) [2025-04-22 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966078', 'tblTempUsageDetail_20' ) start [2025-04-22 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966078', 'tblTempUsageDetail_20' ) end [2025-04-22 16:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:11:28] Production.INFO: ==15023== Releasing lock... [2025-04-22 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:11:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:12:06 [end_date_ymd] => 2025-04-22 16:12:06 [RateCDR] => 1 ) [2025-04-22 16: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-04-22 13:12:06' and `end` < '2025-04-22 16: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-04-22 16:12:19] Production.INFO: count ==5709 [2025-04-22 16:12:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:12:06 - End Time 2025-04-22 16:12:06 [2025-04-22 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966083', 'tblTempUsageDetail_20' ) start [2025-04-22 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966083', 'tblTempUsageDetail_20' ) end [2025-04-22 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966083', 'tblTempVendorCDR_20' ) start [2025-04-22 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966083', 'tblTempVendorCDR_20' ) end [2025-04-22 16:12:22] Production.INFO: ProcessCDR(1,14966083,1,1,2) [2025-04-22 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966083', 'tblTempUsageDetail_20' ) start [2025-04-22 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966083', 'tblTempUsageDetail_20' ) end [2025-04-22 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:12:28] Production.INFO: ==15123== Releasing lock... [2025-04-22 16:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:12:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:13:05 [end_date_ymd] => 2025-04-22 16:13:05 [RateCDR] => 1 ) [2025-04-22 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:13:05' and `end` < '2025-04-22 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:13:19] Production.INFO: count ==5713 [2025-04-22 16:13:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:13:05 - End Time 2025-04-22 16:13:05 [2025-04-22 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966088', 'tblTempUsageDetail_20' ) start [2025-04-22 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966088', 'tblTempUsageDetail_20' ) end [2025-04-22 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966088', 'tblTempVendorCDR_20' ) start [2025-04-22 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966088', 'tblTempVendorCDR_20' ) end [2025-04-22 16:13:22] Production.INFO: ProcessCDR(1,14966088,1,1,2) [2025-04-22 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966088', 'tblTempUsageDetail_20' ) start [2025-04-22 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966088', 'tblTempUsageDetail_20' ) end [2025-04-22 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:13:27] Production.INFO: ==15222== Releasing lock... [2025-04-22 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:13:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:14:05 [end_date_ymd] => 2025-04-22 16:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:14:05' and `end` < '2025-04-22 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-04-22 16:14:19] Production.INFO: count ==5720 [2025-04-22 16:14:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:14:05 - End Time 2025-04-22 16:14:05 [2025-04-22 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966093', 'tblTempUsageDetail_20' ) start [2025-04-22 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966093', 'tblTempUsageDetail_20' ) end [2025-04-22 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966093', 'tblTempVendorCDR_20' ) start [2025-04-22 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966093', 'tblTempVendorCDR_20' ) end [2025-04-22 16:14:22] Production.INFO: ProcessCDR(1,14966093,1,1,2) [2025-04-22 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966093', 'tblTempUsageDetail_20' ) start [2025-04-22 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966093', 'tblTempUsageDetail_20' ) end [2025-04-22 16:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:14:28] Production.INFO: ==15326== Releasing lock... [2025-04-22 16:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:14:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:15:06 [end_date_ymd] => 2025-04-22 16:15:06 [RateCDR] => 1 ) [2025-04-22 16: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-04-22 13:15:06' and `end` < '2025-04-22 16: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-04-22 16:15:20] Production.INFO: count ==5718 [2025-04-22 16:15:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:15:06 - End Time 2025-04-22 16:15:06 [2025-04-22 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966098', 'tblTempUsageDetail_20' ) start [2025-04-22 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966098', 'tblTempUsageDetail_20' ) end [2025-04-22 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966098', 'tblTempVendorCDR_20' ) start [2025-04-22 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966098', 'tblTempVendorCDR_20' ) end [2025-04-22 16:15:23] Production.INFO: ProcessCDR(1,14966098,1,1,2) [2025-04-22 16:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966098', 'tblTempUsageDetail_20' ) start [2025-04-22 16:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966098', 'tblTempUsageDetail_20' ) end [2025-04-22 16:15:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:15:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:15:29] Production.INFO: ==15441== Releasing lock... [2025-04-22 16:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:15:29] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:16:05 [end_date_ymd] => 2025-04-22 16:16:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:16:05' and `end` < '2025-04-22 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-04-22 16:16:19] Production.INFO: count ==5721 [2025-04-22 16:16:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:16:05 - End Time 2025-04-22 16:16:05 [2025-04-22 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966103', 'tblTempUsageDetail_20' ) start [2025-04-22 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966103', 'tblTempUsageDetail_20' ) end [2025-04-22 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966103', 'tblTempVendorCDR_20' ) start [2025-04-22 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966103', 'tblTempVendorCDR_20' ) end [2025-04-22 16:16:22] Production.INFO: ProcessCDR(1,14966103,1,1,2) [2025-04-22 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966103', 'tblTempUsageDetail_20' ) start [2025-04-22 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966103', 'tblTempUsageDetail_20' ) end [2025-04-22 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:16:27] Production.INFO: ==15544== Releasing lock... [2025-04-22 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:16:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:17:06 [end_date_ymd] => 2025-04-22 16:17:06 [RateCDR] => 1 ) [2025-04-22 16: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-04-22 13:17:06' and `end` < '2025-04-22 16: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-04-22 16:17:19] Production.INFO: count ==5716 [2025-04-22 16:17:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:17:06 - End Time 2025-04-22 16:17:06 [2025-04-22 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966108', 'tblTempUsageDetail_20' ) start [2025-04-22 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966108', 'tblTempUsageDetail_20' ) end [2025-04-22 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966108', 'tblTempVendorCDR_20' ) start [2025-04-22 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966108', 'tblTempVendorCDR_20' ) end [2025-04-22 16:17:22] Production.INFO: ProcessCDR(1,14966108,1,1,2) [2025-04-22 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966108', 'tblTempUsageDetail_20' ) start [2025-04-22 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966108', 'tblTempUsageDetail_20' ) end [2025-04-22 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:17:27] Production.INFO: ==15683== Releasing lock... [2025-04-22 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:17:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:18:05 [end_date_ymd] => 2025-04-22 16:18:05 [RateCDR] => 1 ) [2025-04-22 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:18:05' and `end` < '2025-04-22 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:18:19] Production.INFO: count ==5715 [2025-04-22 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:18:05 - End Time 2025-04-22 16:18:05 [2025-04-22 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966113', 'tblTempUsageDetail_20' ) start [2025-04-22 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966113', 'tblTempUsageDetail_20' ) end [2025-04-22 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966113', 'tblTempVendorCDR_20' ) start [2025-04-22 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966113', 'tblTempVendorCDR_20' ) end [2025-04-22 16:18:22] Production.INFO: ProcessCDR(1,14966113,1,1,2) [2025-04-22 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966113', 'tblTempUsageDetail_20' ) start [2025-04-22 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966113', 'tblTempUsageDetail_20' ) end [2025-04-22 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:18:27] Production.INFO: ==15774== Releasing lock... [2025-04-22 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:18:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:19:05 [end_date_ymd] => 2025-04-22 16:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:19:05' and `end` < '2025-04-22 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-04-22 16:19:19] Production.INFO: count ==5723 [2025-04-22 16:19:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:19:05 - End Time 2025-04-22 16:19:05 [2025-04-22 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966118', 'tblTempUsageDetail_20' ) start [2025-04-22 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966118', 'tblTempUsageDetail_20' ) end [2025-04-22 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966118', 'tblTempVendorCDR_20' ) start [2025-04-22 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966118', 'tblTempVendorCDR_20' ) end [2025-04-22 16:19:22] Production.INFO: ProcessCDR(1,14966118,1,1,2) [2025-04-22 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966118', 'tblTempUsageDetail_20' ) start [2025-04-22 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966118', 'tblTempUsageDetail_20' ) end [2025-04-22 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:19:27] Production.INFO: ==15850== Releasing lock... [2025-04-22 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:19:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:20:06 [end_date_ymd] => 2025-04-22 16:20:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:20:06' and `end` < '2025-04-22 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-04-22 16:20:20] Production.INFO: count ==5713 [2025-04-22 16:20:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:20:06 - End Time 2025-04-22 16:20:06 [2025-04-22 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966123', 'tblTempUsageDetail_20' ) start [2025-04-22 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966123', 'tblTempUsageDetail_20' ) end [2025-04-22 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966123', 'tblTempVendorCDR_20' ) start [2025-04-22 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966123', 'tblTempVendorCDR_20' ) end [2025-04-22 16:20:23] Production.INFO: ProcessCDR(1,14966123,1,1,2) [2025-04-22 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966123', 'tblTempUsageDetail_20' ) start [2025-04-22 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966123', 'tblTempUsageDetail_20' ) end [2025-04-22 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:20:28] Production.INFO: ==15930== Releasing lock... [2025-04-22 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:20:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:21:06 [end_date_ymd] => 2025-04-22 16:21:06 [RateCDR] => 1 ) [2025-04-22 16: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-04-22 13:21:06' and `end` < '2025-04-22 16: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-04-22 16:21:20] Production.INFO: count ==5718 [2025-04-22 16:21:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:21:06 - End Time 2025-04-22 16:21:06 [2025-04-22 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966129', 'tblTempUsageDetail_20' ) start [2025-04-22 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966129', 'tblTempUsageDetail_20' ) end [2025-04-22 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966129', 'tblTempVendorCDR_20' ) start [2025-04-22 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966129', 'tblTempVendorCDR_20' ) end [2025-04-22 16:21:22] Production.INFO: ProcessCDR(1,14966129,1,1,2) [2025-04-22 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966129', 'tblTempUsageDetail_20' ) start [2025-04-22 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966129', 'tblTempUsageDetail_20' ) end [2025-04-22 16:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:21:28] Production.INFO: ==16010== Releasing lock... [2025-04-22 16:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:21:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:22:05 [end_date_ymd] => 2025-04-22 16:22:05 [RateCDR] => 1 ) [2025-04-22 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:22:05' and `end` < '2025-04-22 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:22:21] Production.INFO: count ==5723 [2025-04-22 16:22:23] Production.ERROR: pbx CDR StartTime 2025-04-22 13:22:05 - End Time 2025-04-22 16:22:05 [2025-04-22 16:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966134', 'tblTempUsageDetail_20' ) start [2025-04-22 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966134', 'tblTempUsageDetail_20' ) end [2025-04-22 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966134', 'tblTempVendorCDR_20' ) start [2025-04-22 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966134', 'tblTempVendorCDR_20' ) end [2025-04-22 16:22:24] Production.INFO: ProcessCDR(1,14966134,1,1,2) [2025-04-22 16:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966134', 'tblTempUsageDetail_20' ) start [2025-04-22 16:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966134', 'tblTempUsageDetail_20' ) end [2025-04-22 16:22:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:22:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:22:29] Production.INFO: ==16090== Releasing lock... [2025-04-22 16:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:22:29] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:23:05 [end_date_ymd] => 2025-04-22 16:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:23:05' and `end` < '2025-04-22 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-04-22 16:23:19] Production.INFO: count ==5724 [2025-04-22 16:23:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:23:05 - End Time 2025-04-22 16:23:05 [2025-04-22 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966139', 'tblTempUsageDetail_20' ) start [2025-04-22 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966139', 'tblTempUsageDetail_20' ) end [2025-04-22 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966139', 'tblTempVendorCDR_20' ) start [2025-04-22 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966139', 'tblTempVendorCDR_20' ) end [2025-04-22 16:23:22] Production.INFO: ProcessCDR(1,14966139,1,1,2) [2025-04-22 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966139', 'tblTempUsageDetail_20' ) start [2025-04-22 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966139', 'tblTempUsageDetail_20' ) end [2025-04-22 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:23:26] Production.INFO: ==16161== Releasing lock... [2025-04-22 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:23:26] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:24:05 [end_date_ymd] => 2025-04-22 16:24:05 [RateCDR] => 1 ) [2025-04-22 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:24:05' and `end` < '2025-04-22 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:24:19] Production.INFO: count ==5721 [2025-04-22 16:24:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:24:05 - End Time 2025-04-22 16:24:05 [2025-04-22 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966144', 'tblTempUsageDetail_20' ) start [2025-04-22 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966144', 'tblTempUsageDetail_20' ) end [2025-04-22 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966144', 'tblTempVendorCDR_20' ) start [2025-04-22 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966144', 'tblTempVendorCDR_20' ) end [2025-04-22 16:24:22] Production.INFO: ProcessCDR(1,14966144,1,1,2) [2025-04-22 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966144', 'tblTempUsageDetail_20' ) start [2025-04-22 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966144', 'tblTempUsageDetail_20' ) end [2025-04-22 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:24:27] Production.INFO: ==16230== Releasing lock... [2025-04-22 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:24:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:25:05 [end_date_ymd] => 2025-04-22 16:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:25:05' and `end` < '2025-04-22 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-04-22 16:25:19] Production.INFO: count ==5735 [2025-04-22 16:25:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:25:05 - End Time 2025-04-22 16:25:05 [2025-04-22 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966149', 'tblTempUsageDetail_20' ) start [2025-04-22 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966149', 'tblTempUsageDetail_20' ) end [2025-04-22 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966149', 'tblTempVendorCDR_20' ) start [2025-04-22 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966149', 'tblTempVendorCDR_20' ) end [2025-04-22 16:25:23] Production.INFO: ProcessCDR(1,14966149,1,1,2) [2025-04-22 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966149', 'tblTempUsageDetail_20' ) start [2025-04-22 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966149', 'tblTempUsageDetail_20' ) end [2025-04-22 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:25:28] Production.INFO: ==16301== Releasing lock... [2025-04-22 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:25:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:26:05 [end_date_ymd] => 2025-04-22 16:26:05 [RateCDR] => 1 ) [2025-04-22 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:26:05' and `end` < '2025-04-22 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:26:19] Production.INFO: count ==5740 [2025-04-22 16:26:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:26:05 - End Time 2025-04-22 16:26:05 [2025-04-22 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966154', 'tblTempUsageDetail_20' ) start [2025-04-22 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966154', 'tblTempUsageDetail_20' ) end [2025-04-22 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966154', 'tblTempVendorCDR_20' ) start [2025-04-22 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966154', 'tblTempVendorCDR_20' ) end [2025-04-22 16:26:22] Production.INFO: ProcessCDR(1,14966154,1,1,2) [2025-04-22 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966154', 'tblTempUsageDetail_20' ) start [2025-04-22 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966154', 'tblTempUsageDetail_20' ) end [2025-04-22 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:26:27] Production.INFO: ==16378== Releasing lock... [2025-04-22 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:26:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:27:05 [end_date_ymd] => 2025-04-22 16:27:05 [RateCDR] => 1 ) [2025-04-22 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:27:05' and `end` < '2025-04-22 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:27:19] Production.INFO: count ==5749 [2025-04-22 16:27:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:27:05 - End Time 2025-04-22 16:27:05 [2025-04-22 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966159', 'tblTempUsageDetail_20' ) start [2025-04-22 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966159', 'tblTempUsageDetail_20' ) end [2025-04-22 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966159', 'tblTempVendorCDR_20' ) start [2025-04-22 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966159', 'tblTempVendorCDR_20' ) end [2025-04-22 16:27:22] Production.INFO: ProcessCDR(1,14966159,1,1,2) [2025-04-22 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966159', 'tblTempUsageDetail_20' ) start [2025-04-22 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966159', 'tblTempUsageDetail_20' ) end [2025-04-22 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:27:27] Production.INFO: ==16450== Releasing lock... [2025-04-22 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:27:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 16:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:28:04 [end_date_ymd] => 2025-04-22 16:28:04 [RateCDR] => 1 ) [2025-04-22 16: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-04-22 13:28:04' and `end` < '2025-04-22 16:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:28:19] Production.INFO: count ==5750 [2025-04-22 16:28:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:28:04 - End Time 2025-04-22 16:28:04 [2025-04-22 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966164', 'tblTempUsageDetail_20' ) start [2025-04-22 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966164', 'tblTempUsageDetail_20' ) end [2025-04-22 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966164', 'tblTempVendorCDR_20' ) start [2025-04-22 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966164', 'tblTempVendorCDR_20' ) end [2025-04-22 16:28:22] Production.INFO: ProcessCDR(1,14966164,1,1,2) [2025-04-22 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966164', 'tblTempUsageDetail_20' ) start [2025-04-22 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966164', 'tblTempUsageDetail_20' ) end [2025-04-22 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:28:27] Production.INFO: ==16529== Releasing lock... [2025-04-22 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:28:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:29:06 [end_date_ymd] => 2025-04-22 16:29:06 [RateCDR] => 1 ) [2025-04-22 16: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-04-22 13:29:06' and `end` < '2025-04-22 16: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-04-22 16:29:20] Production.INFO: count ==5751 [2025-04-22 16:29:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:29:06 - End Time 2025-04-22 16:29:06 [2025-04-22 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966169', 'tblTempUsageDetail_20' ) start [2025-04-22 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966169', 'tblTempUsageDetail_20' ) end [2025-04-22 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966169', 'tblTempVendorCDR_20' ) start [2025-04-22 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966169', 'tblTempVendorCDR_20' ) end [2025-04-22 16:29:23] Production.INFO: ProcessCDR(1,14966169,1,1,2) [2025-04-22 16:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966169', 'tblTempUsageDetail_20' ) start [2025-04-22 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966169', 'tblTempUsageDetail_20' ) end [2025-04-22 16:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:29:28] Production.INFO: ==16604== Releasing lock... [2025-04-22 16:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:29:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:30:06 [end_date_ymd] => 2025-04-22 16:30:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:30:06' and `end` < '2025-04-22 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-04-22 16:30:20] Production.INFO: count ==5748 [2025-04-22 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:30:06 - End Time 2025-04-22 16:30:06 [2025-04-22 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966174', 'tblTempUsageDetail_20' ) start [2025-04-22 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966174', 'tblTempUsageDetail_20' ) end [2025-04-22 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966174', 'tblTempVendorCDR_20' ) start [2025-04-22 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966174', 'tblTempVendorCDR_20' ) end [2025-04-22 16:30:23] Production.INFO: ProcessCDR(1,14966174,1,1,2) [2025-04-22 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966174', 'tblTempUsageDetail_20' ) start [2025-04-22 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966174', 'tblTempUsageDetail_20' ) end [2025-04-22 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:30:28] Production.INFO: ==16675== Releasing lock... [2025-04-22 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:30:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:31:05 [end_date_ymd] => 2025-04-22 16:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:31:05' and `end` < '2025-04-22 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-04-22 16:31:19] Production.INFO: count ==5803 [2025-04-22 16:31:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:31:05 - End Time 2025-04-22 16:31:05 [2025-04-22 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966180', 'tblTempUsageDetail_20' ) start [2025-04-22 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966180', 'tblTempUsageDetail_20' ) end [2025-04-22 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966180', 'tblTempVendorCDR_20' ) start [2025-04-22 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966180', 'tblTempVendorCDR_20' ) end [2025-04-22 16:31:22] Production.INFO: ProcessCDR(1,14966180,1,1,2) [2025-04-22 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966180', 'tblTempUsageDetail_20' ) start [2025-04-22 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966180', 'tblTempUsageDetail_20' ) end [2025-04-22 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:31:28] Production.INFO: ==16752== Releasing lock... [2025-04-22 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:31:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-22 16:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:32:04 [end_date_ymd] => 2025-04-22 16:32:04 [RateCDR] => 1 ) [2025-04-22 16:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:32:04' and `end` < '2025-04-22 16:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:32:18] Production.INFO: count ==5819 [2025-04-22 16:32:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:32:04 - End Time 2025-04-22 16:32:04 [2025-04-22 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966185', 'tblTempUsageDetail_20' ) start [2025-04-22 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966185', 'tblTempUsageDetail_20' ) end [2025-04-22 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966185', 'tblTempVendorCDR_20' ) start [2025-04-22 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966185', 'tblTempVendorCDR_20' ) end [2025-04-22 16:32:22] Production.INFO: ProcessCDR(1,14966185,1,1,2) [2025-04-22 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966185', 'tblTempUsageDetail_20' ) start [2025-04-22 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966185', 'tblTempUsageDetail_20' ) end [2025-04-22 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:32:27] Production.INFO: ==16822== Releasing lock... [2025-04-22 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:32:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:33:04 [end_date_ymd] => 2025-04-22 16:33:04 [RateCDR] => 1 ) [2025-04-22 16:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:33:04' and `end` < '2025-04-22 16:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:33:18] Production.INFO: count ==5823 [2025-04-22 16:33:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:33:04 - End Time 2025-04-22 16:33:04 [2025-04-22 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966190', 'tblTempUsageDetail_20' ) start [2025-04-22 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966190', 'tblTempUsageDetail_20' ) end [2025-04-22 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966190', 'tblTempVendorCDR_20' ) start [2025-04-22 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966190', 'tblTempVendorCDR_20' ) end [2025-04-22 16:33:22] Production.INFO: ProcessCDR(1,14966190,1,1,2) [2025-04-22 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966190', 'tblTempUsageDetail_20' ) start [2025-04-22 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966190', 'tblTempUsageDetail_20' ) end [2025-04-22 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:33:27] Production.INFO: ==16940== Releasing lock... [2025-04-22 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:33:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:34:06 [end_date_ymd] => 2025-04-22 16:34:06 [RateCDR] => 1 ) [2025-04-22 16: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-04-22 13:34:06' and `end` < '2025-04-22 16: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-04-22 16:34:20] Production.INFO: count ==5826 [2025-04-22 16:34:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:34:06 - End Time 2025-04-22 16:34:06 [2025-04-22 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966195', 'tblTempUsageDetail_20' ) start [2025-04-22 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966195', 'tblTempUsageDetail_20' ) end [2025-04-22 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966195', 'tblTempVendorCDR_20' ) start [2025-04-22 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966195', 'tblTempVendorCDR_20' ) end [2025-04-22 16:34:23] Production.INFO: ProcessCDR(1,14966195,1,1,2) [2025-04-22 16:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966195', 'tblTempUsageDetail_20' ) start [2025-04-22 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966195', 'tblTempUsageDetail_20' ) end [2025-04-22 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:34:28] Production.INFO: ==17018== Releasing lock... [2025-04-22 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:34:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:35:05 [end_date_ymd] => 2025-04-22 16:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:35:05' and `end` < '2025-04-22 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-04-22 16:35:19] Production.INFO: count ==5838 [2025-04-22 16:35:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:35:05 - End Time 2025-04-22 16:35:05 [2025-04-22 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966200', 'tblTempUsageDetail_20' ) start [2025-04-22 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966200', 'tblTempUsageDetail_20' ) end [2025-04-22 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966200', 'tblTempVendorCDR_20' ) start [2025-04-22 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966200', 'tblTempVendorCDR_20' ) end [2025-04-22 16:35:22] Production.INFO: ProcessCDR(1,14966200,1,1,2) [2025-04-22 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966200', 'tblTempUsageDetail_20' ) start [2025-04-22 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966200', 'tblTempUsageDetail_20' ) end [2025-04-22 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:35:28] Production.INFO: ==17090== Releasing lock... [2025-04-22 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:35:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:36:06 [end_date_ymd] => 2025-04-22 16:36:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:36:06' and `end` < '2025-04-22 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-04-22 16:36:20] Production.INFO: count ==5835 [2025-04-22 16:36:23] Production.ERROR: pbx CDR StartTime 2025-04-22 13:36:06 - End Time 2025-04-22 16:36:06 [2025-04-22 16:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966205', 'tblTempUsageDetail_20' ) start [2025-04-22 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966205', 'tblTempUsageDetail_20' ) end [2025-04-22 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966205', 'tblTempVendorCDR_20' ) start [2025-04-22 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966205', 'tblTempVendorCDR_20' ) end [2025-04-22 16:36:23] Production.INFO: ProcessCDR(1,14966205,1,1,2) [2025-04-22 16:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966205', 'tblTempUsageDetail_20' ) start [2025-04-22 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966205', 'tblTempUsageDetail_20' ) end [2025-04-22 16:36:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:36:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:36:29] Production.INFO: ==17160== Releasing lock... [2025-04-22 16:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:36:29] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:37:05 [end_date_ymd] => 2025-04-22 16:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:37:05' and `end` < '2025-04-22 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-04-22 16:37:19] Production.INFO: count ==5823 [2025-04-22 16:37:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:37:05 - End Time 2025-04-22 16:37:05 [2025-04-22 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966210', 'tblTempUsageDetail_20' ) start [2025-04-22 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966210', 'tblTempUsageDetail_20' ) end [2025-04-22 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966210', 'tblTempVendorCDR_20' ) start [2025-04-22 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966210', 'tblTempVendorCDR_20' ) end [2025-04-22 16:37:22] Production.INFO: ProcessCDR(1,14966210,1,1,2) [2025-04-22 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966210', 'tblTempUsageDetail_20' ) start [2025-04-22 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966210', 'tblTempUsageDetail_20' ) end [2025-04-22 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:37:27] Production.INFO: ==17231== Releasing lock... [2025-04-22 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:37:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:38:05 [end_date_ymd] => 2025-04-22 16:38:05 [RateCDR] => 1 ) [2025-04-22 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:38:05' and `end` < '2025-04-22 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:38:20] Production.INFO: count ==5848 [2025-04-22 16:38:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:38:05 - End Time 2025-04-22 16:38:05 [2025-04-22 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966215', 'tblTempUsageDetail_20' ) start [2025-04-22 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966215', 'tblTempUsageDetail_20' ) end [2025-04-22 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966215', 'tblTempVendorCDR_20' ) start [2025-04-22 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966215', 'tblTempVendorCDR_20' ) end [2025-04-22 16:38:23] Production.INFO: ProcessCDR(1,14966215,1,1,2) [2025-04-22 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966215', 'tblTempUsageDetail_20' ) start [2025-04-22 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966215', 'tblTempUsageDetail_20' ) end [2025-04-22 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:38:28] Production.INFO: ==17302== Releasing lock... [2025-04-22 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:38:28] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:39:05 [end_date_ymd] => 2025-04-22 16:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:39:05' and `end` < '2025-04-22 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-04-22 16:39:19] Production.INFO: count ==5857 [2025-04-22 16:39:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:39:05 - End Time 2025-04-22 16:39:05 [2025-04-22 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966220', 'tblTempUsageDetail_20' ) start [2025-04-22 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966220', 'tblTempUsageDetail_20' ) end [2025-04-22 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966220', 'tblTempVendorCDR_20' ) start [2025-04-22 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966220', 'tblTempVendorCDR_20' ) end [2025-04-22 16:39:22] Production.INFO: ProcessCDR(1,14966220,1,1,2) [2025-04-22 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966220', 'tblTempUsageDetail_20' ) start [2025-04-22 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966220', 'tblTempUsageDetail_20' ) end [2025-04-22 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:39:27] Production.INFO: ==17378== Releasing lock... [2025-04-22 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:39:27] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:40:06 [end_date_ymd] => 2025-04-22 16:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:40:06' and `end` < '2025-04-22 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-04-22 16:40:20] Production.INFO: count ==5864 [2025-04-22 16:40:23] Production.ERROR: pbx CDR StartTime 2025-04-22 13:40:06 - End Time 2025-04-22 16:40:06 [2025-04-22 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966226', 'tblTempUsageDetail_20' ) start [2025-04-22 16:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966226', 'tblTempUsageDetail_20' ) end [2025-04-22 16:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966226', 'tblTempVendorCDR_20' ) start [2025-04-22 16:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966226', 'tblTempVendorCDR_20' ) end [2025-04-22 16:40:24] Production.INFO: ProcessCDR(1,14966226,1,1,2) [2025-04-22 16:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966226', 'tblTempUsageDetail_20' ) start [2025-04-22 16:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966226', 'tblTempUsageDetail_20' ) end [2025-04-22 16:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:40:29] Production.INFO: ==17451== Releasing lock... [2025-04-22 16:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:40:29] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:41:04 [end_date_ymd] => 2025-04-22 16:41:04 [RateCDR] => 1 ) [2025-04-22 16: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-04-22 13:41:04' and `end` < '2025-04-22 16: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-04-22 16:41:18] Production.INFO: count ==5892 [2025-04-22 16:41:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:41:04 - End Time 2025-04-22 16:41:04 [2025-04-22 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966231', 'tblTempUsageDetail_20' ) start [2025-04-22 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966231', 'tblTempUsageDetail_20' ) end [2025-04-22 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966231', 'tblTempVendorCDR_20' ) start [2025-04-22 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966231', 'tblTempVendorCDR_20' ) end [2025-04-22 16:41:22] Production.INFO: ProcessCDR(1,14966231,1,1,2) [2025-04-22 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966231', 'tblTempUsageDetail_20' ) start [2025-04-22 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966231', 'tblTempUsageDetail_20' ) end [2025-04-22 16:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:41:27] Production.INFO: ==17532== Releasing lock... [2025-04-22 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:41:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:42:05 [end_date_ymd] => 2025-04-22 16:42:05 [RateCDR] => 1 ) [2025-04-22 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:42:05' and `end` < '2025-04-22 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:42:20] Production.INFO: count ==5889 [2025-04-22 16:42:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:42:05 - End Time 2025-04-22 16:42:05 [2025-04-22 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966236', 'tblTempUsageDetail_20' ) start [2025-04-22 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966236', 'tblTempUsageDetail_20' ) end [2025-04-22 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966236', 'tblTempVendorCDR_20' ) start [2025-04-22 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966236', 'tblTempVendorCDR_20' ) end [2025-04-22 16:42:23] Production.INFO: ProcessCDR(1,14966236,1,1,2) [2025-04-22 16:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966236', 'tblTempUsageDetail_20' ) start [2025-04-22 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966236', 'tblTempUsageDetail_20' ) end [2025-04-22 16:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:42:28] Production.INFO: ==17611== Releasing lock... [2025-04-22 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:42:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-22 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:43:05 [end_date_ymd] => 2025-04-22 16:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:43:05' and `end` < '2025-04-22 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-04-22 16:43:19] Production.INFO: count ==5871 [2025-04-22 16:43:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:43:05 - End Time 2025-04-22 16:43:05 [2025-04-22 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966241', 'tblTempUsageDetail_20' ) start [2025-04-22 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966241', 'tblTempUsageDetail_20' ) end [2025-04-22 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966241', 'tblTempVendorCDR_20' ) start [2025-04-22 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966241', 'tblTempVendorCDR_20' ) end [2025-04-22 16:43:22] Production.INFO: ProcessCDR(1,14966241,1,1,2) [2025-04-22 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966241', 'tblTempUsageDetail_20' ) start [2025-04-22 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966241', 'tblTempUsageDetail_20' ) end [2025-04-22 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:43:27] Production.INFO: ==17689== Releasing lock... [2025-04-22 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:43:27] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:44:06 [end_date_ymd] => 2025-04-22 16:44:06 [RateCDR] => 1 ) [2025-04-22 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:44:06' and `end` < '2025-04-22 16:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:44:20] Production.INFO: count ==5862 [2025-04-22 16:44:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:44:06 - End Time 2025-04-22 16:44:06 [2025-04-22 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966246', 'tblTempUsageDetail_20' ) start [2025-04-22 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966246', 'tblTempUsageDetail_20' ) end [2025-04-22 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966246', 'tblTempVendorCDR_20' ) start [2025-04-22 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966246', 'tblTempVendorCDR_20' ) end [2025-04-22 16:44:23] Production.INFO: ProcessCDR(1,14966246,1,1,2) [2025-04-22 16:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966246', 'tblTempUsageDetail_20' ) start [2025-04-22 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966246', 'tblTempUsageDetail_20' ) end [2025-04-22 16:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:44:28] Production.INFO: ==17760== Releasing lock... [2025-04-22 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:44:28] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:45:05 [end_date_ymd] => 2025-04-22 16:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:45:05' and `end` < '2025-04-22 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-04-22 16:45:20] Production.INFO: count ==5865 [2025-04-22 16:45:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:45:05 - End Time 2025-04-22 16:45:05 [2025-04-22 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966251', 'tblTempUsageDetail_20' ) start [2025-04-22 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966251', 'tblTempUsageDetail_20' ) end [2025-04-22 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966251', 'tblTempVendorCDR_20' ) start [2025-04-22 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966251', 'tblTempVendorCDR_20' ) end [2025-04-22 16:45:23] Production.INFO: ProcessCDR(1,14966251,1,1,2) [2025-04-22 16:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966251', 'tblTempUsageDetail_20' ) start [2025-04-22 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966251', 'tblTempUsageDetail_20' ) end [2025-04-22 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:45:28] Production.INFO: ==17829== Releasing lock... [2025-04-22 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:45:28] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:46:05 [end_date_ymd] => 2025-04-22 16:46:05 [RateCDR] => 1 ) [2025-04-22 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:46:05' and `end` < '2025-04-22 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:46:19] Production.INFO: count ==5863 [2025-04-22 16:46:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:46:05 - End Time 2025-04-22 16:46:05 [2025-04-22 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966256', 'tblTempUsageDetail_20' ) start [2025-04-22 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966256', 'tblTempUsageDetail_20' ) end [2025-04-22 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966256', 'tblTempVendorCDR_20' ) start [2025-04-22 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966256', 'tblTempVendorCDR_20' ) end [2025-04-22 16:46:22] Production.INFO: ProcessCDR(1,14966256,1,1,2) [2025-04-22 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966256', 'tblTempUsageDetail_20' ) start [2025-04-22 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966256', 'tblTempUsageDetail_20' ) end [2025-04-22 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:46:27] Production.INFO: ==17908== Releasing lock... [2025-04-22 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:46:27] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:47:05 [end_date_ymd] => 2025-04-22 16:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:47:05' and `end` < '2025-04-22 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-04-22 16:47:19] Production.INFO: count ==5872 [2025-04-22 16:47:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:47:05 - End Time 2025-04-22 16:47:05 [2025-04-22 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966261', 'tblTempUsageDetail_20' ) start [2025-04-22 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966261', 'tblTempUsageDetail_20' ) end [2025-04-22 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966261', 'tblTempVendorCDR_20' ) start [2025-04-22 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966261', 'tblTempVendorCDR_20' ) end [2025-04-22 16:47:22] Production.INFO: ProcessCDR(1,14966261,1,1,2) [2025-04-22 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966261', 'tblTempUsageDetail_20' ) start [2025-04-22 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966261', 'tblTempUsageDetail_20' ) end [2025-04-22 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:47:27] Production.INFO: ==17989== Releasing lock... [2025-04-22 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:47:27] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:48:05 [end_date_ymd] => 2025-04-22 16:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:48:05' and `end` < '2025-04-22 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-04-22 16:48:19] Production.INFO: count ==5868 [2025-04-22 16:48:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:48:05 - End Time 2025-04-22 16:48:05 [2025-04-22 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966266', 'tblTempUsageDetail_20' ) start [2025-04-22 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966266', 'tblTempUsageDetail_20' ) end [2025-04-22 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966266', 'tblTempVendorCDR_20' ) start [2025-04-22 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966266', 'tblTempVendorCDR_20' ) end [2025-04-22 16:48:22] Production.INFO: ProcessCDR(1,14966266,1,1,2) [2025-04-22 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966266', 'tblTempUsageDetail_20' ) start [2025-04-22 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966266', 'tblTempUsageDetail_20' ) end [2025-04-22 16:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:48:28] Production.INFO: ==18109== Releasing lock... [2025-04-22 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:48:28] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:49:05 [end_date_ymd] => 2025-04-22 16:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:49:05' and `end` < '2025-04-22 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-04-22 16:49:19] Production.INFO: count ==5872 [2025-04-22 16:49:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:49:05 - End Time 2025-04-22 16:49:05 [2025-04-22 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966271', 'tblTempUsageDetail_20' ) start [2025-04-22 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966271', 'tblTempUsageDetail_20' ) end [2025-04-22 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966271', 'tblTempVendorCDR_20' ) start [2025-04-22 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966271', 'tblTempVendorCDR_20' ) end [2025-04-22 16:49:22] Production.INFO: ProcessCDR(1,14966271,1,1,2) [2025-04-22 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966271', 'tblTempUsageDetail_20' ) start [2025-04-22 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966271', 'tblTempUsageDetail_20' ) end [2025-04-22 16:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:49:28] Production.INFO: ==18182== Releasing lock... [2025-04-22 16:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:49:28] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:50:05 [end_date_ymd] => 2025-04-22 16:50:05 [RateCDR] => 1 ) [2025-04-22 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:50:05' and `end` < '2025-04-22 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:50:19] Production.INFO: count ==5869 [2025-04-22 16:50:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:50:05 - End Time 2025-04-22 16:50:05 [2025-04-22 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966277', 'tblTempUsageDetail_20' ) start [2025-04-22 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966277', 'tblTempUsageDetail_20' ) end [2025-04-22 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966277', 'tblTempVendorCDR_20' ) start [2025-04-22 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966277', 'tblTempVendorCDR_20' ) end [2025-04-22 16:50:22] Production.INFO: ProcessCDR(1,14966277,1,1,2) [2025-04-22 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966277', 'tblTempUsageDetail_20' ) start [2025-04-22 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966277', 'tblTempUsageDetail_20' ) end [2025-04-22 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:50:27] Production.INFO: ==18266== Releasing lock... [2025-04-22 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:50:27] Production.INFO: 72 MB #Memory Used# [2025-04-22 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:51:05 [end_date_ymd] => 2025-04-22 16:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:51:05' and `end` < '2025-04-22 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-04-22 16:51:19] Production.INFO: count ==5824 [2025-04-22 16:51:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:51:05 - End Time 2025-04-22 16:51:05 [2025-04-22 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966282', 'tblTempUsageDetail_20' ) start [2025-04-22 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966282', 'tblTempUsageDetail_20' ) end [2025-04-22 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966282', 'tblTempVendorCDR_20' ) start [2025-04-22 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966282', 'tblTempVendorCDR_20' ) end [2025-04-22 16:51:22] Production.INFO: ProcessCDR(1,14966282,1,1,2) [2025-04-22 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966282', 'tblTempUsageDetail_20' ) start [2025-04-22 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966282', 'tblTempUsageDetail_20' ) end [2025-04-22 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:51:28] Production.INFO: ==18342== Releasing lock... [2025-04-22 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:51:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:52:05 [end_date_ymd] => 2025-04-22 16:52:05 [RateCDR] => 1 ) [2025-04-22 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:52:05' and `end` < '2025-04-22 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:52:19] Production.INFO: count ==5818 [2025-04-22 16:52:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:52:05 - End Time 2025-04-22 16:52:05 [2025-04-22 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966287', 'tblTempUsageDetail_20' ) start [2025-04-22 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966287', 'tblTempUsageDetail_20' ) end [2025-04-22 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966287', 'tblTempVendorCDR_20' ) start [2025-04-22 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966287', 'tblTempVendorCDR_20' ) end [2025-04-22 16:52:22] Production.INFO: ProcessCDR(1,14966287,1,1,2) [2025-04-22 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966287', 'tblTempUsageDetail_20' ) start [2025-04-22 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966287', 'tblTempUsageDetail_20' ) end [2025-04-22 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:52:27] Production.INFO: ==18416== Releasing lock... [2025-04-22 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:52:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:53:05 [end_date_ymd] => 2025-04-22 16:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:53:05' and `end` < '2025-04-22 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-04-22 16:53:19] Production.INFO: count ==5817 [2025-04-22 16:53:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:53:05 - End Time 2025-04-22 16:53:05 [2025-04-22 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966292', 'tblTempUsageDetail_20' ) start [2025-04-22 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966292', 'tblTempUsageDetail_20' ) end [2025-04-22 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966292', 'tblTempVendorCDR_20' ) start [2025-04-22 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966292', 'tblTempVendorCDR_20' ) end [2025-04-22 16:53:22] Production.INFO: ProcessCDR(1,14966292,1,1,2) [2025-04-22 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966292', 'tblTempUsageDetail_20' ) start [2025-04-22 16:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966292', 'tblTempUsageDetail_20' ) end [2025-04-22 16:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:53:28] Production.INFO: ==18501== Releasing lock... [2025-04-22 16:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:53:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-22 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:54:06 [end_date_ymd] => 2025-04-22 16:54:06 [RateCDR] => 1 ) [2025-04-22 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:54:06' and `end` < '2025-04-22 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:54:20] Production.INFO: count ==5785 [2025-04-22 16:54:23] Production.ERROR: pbx CDR StartTime 2025-04-22 13:54:06 - End Time 2025-04-22 16:54:06 [2025-04-22 16:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966297', 'tblTempUsageDetail_20' ) start [2025-04-22 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966297', 'tblTempUsageDetail_20' ) end [2025-04-22 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966297', 'tblTempVendorCDR_20' ) start [2025-04-22 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966297', 'tblTempVendorCDR_20' ) end [2025-04-22 16:54:23] Production.INFO: ProcessCDR(1,14966297,1,1,2) [2025-04-22 16:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966297', 'tblTempUsageDetail_20' ) start [2025-04-22 16:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966297', 'tblTempUsageDetail_20' ) end [2025-04-22 16:54:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:54:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:54:29] Production.INFO: ==18572== Releasing lock... [2025-04-22 16:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:54:29] Production.INFO: 71.5 MB #Memory Used# [2025-04-22 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:55:05 [end_date_ymd] => 2025-04-22 16:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:55:05' and `end` < '2025-04-22 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-04-22 16:55:19] Production.INFO: count ==5733 [2025-04-22 16:55:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:55:05 - End Time 2025-04-22 16:55:05 [2025-04-22 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966302', 'tblTempUsageDetail_20' ) start [2025-04-22 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966302', 'tblTempUsageDetail_20' ) end [2025-04-22 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966302', 'tblTempVendorCDR_20' ) start [2025-04-22 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966302', 'tblTempVendorCDR_20' ) end [2025-04-22 16:55:23] Production.INFO: ProcessCDR(1,14966302,1,1,2) [2025-04-22 16:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966302', 'tblTempUsageDetail_20' ) start [2025-04-22 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966302', 'tblTempUsageDetail_20' ) end [2025-04-22 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:55:28] Production.INFO: ==18648== Releasing lock... [2025-04-22 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:55:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:56:05 [end_date_ymd] => 2025-04-22 16:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:56:05' and `end` < '2025-04-22 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-04-22 16:56:19] Production.INFO: count ==5698 [2025-04-22 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:56:05 - End Time 2025-04-22 16:56:05 [2025-04-22 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966307', 'tblTempUsageDetail_20' ) start [2025-04-22 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966307', 'tblTempUsageDetail_20' ) end [2025-04-22 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966307', 'tblTempVendorCDR_20' ) start [2025-04-22 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966307', 'tblTempVendorCDR_20' ) end [2025-04-22 16:56:22] Production.INFO: ProcessCDR(1,14966307,1,1,2) [2025-04-22 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966307', 'tblTempUsageDetail_20' ) start [2025-04-22 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966307', 'tblTempUsageDetail_20' ) end [2025-04-22 16:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:56:28] Production.INFO: ==18726== Releasing lock... [2025-04-22 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:56:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:57:05 [end_date_ymd] => 2025-04-22 16:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:57:05' and `end` < '2025-04-22 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-04-22 16:57:19] Production.INFO: count ==5725 [2025-04-22 16:57:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:57:05 - End Time 2025-04-22 16:57:05 [2025-04-22 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966312', 'tblTempUsageDetail_20' ) start [2025-04-22 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966312', 'tblTempUsageDetail_20' ) end [2025-04-22 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966312', 'tblTempVendorCDR_20' ) start [2025-04-22 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966312', 'tblTempVendorCDR_20' ) end [2025-04-22 16:57:22] Production.INFO: ProcessCDR(1,14966312,1,1,2) [2025-04-22 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966312', 'tblTempUsageDetail_20' ) start [2025-04-22 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966312', 'tblTempUsageDetail_20' ) end [2025-04-22 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:57:27] Production.INFO: ==18809== Releasing lock... [2025-04-22 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:57:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:58:06 [end_date_ymd] => 2025-04-22 16:58:06 [RateCDR] => 1 ) [2025-04-22 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 13:58:06' and `end` < '2025-04-22 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 16:58:19] Production.INFO: count ==5724 [2025-04-22 16:58:22] Production.ERROR: pbx CDR StartTime 2025-04-22 13:58:06 - End Time 2025-04-22 16:58:06 [2025-04-22 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966317', 'tblTempUsageDetail_20' ) start [2025-04-22 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966317', 'tblTempUsageDetail_20' ) end [2025-04-22 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966317', 'tblTempVendorCDR_20' ) start [2025-04-22 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966317', 'tblTempVendorCDR_20' ) end [2025-04-22 16:58:23] Production.INFO: ProcessCDR(1,14966317,1,1,2) [2025-04-22 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966317', 'tblTempUsageDetail_20' ) start [2025-04-22 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966317', 'tblTempUsageDetail_20' ) end [2025-04-22 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:58:26] Production.INFO: ==18881== Releasing lock... [2025-04-22 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:58:26] Production.INFO: 71 MB #Memory Used# [2025-04-22 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 13:59:05 [end_date_ymd] => 2025-04-22 16:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 13:59:05' and `end` < '2025-04-22 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-04-22 16:59:19] Production.INFO: count ==5721 [2025-04-22 16:59:21] Production.ERROR: pbx CDR StartTime 2025-04-22 13:59:05 - End Time 2025-04-22 16:59:05 [2025-04-22 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966322', 'tblTempUsageDetail_20' ) start [2025-04-22 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966322', 'tblTempUsageDetail_20' ) end [2025-04-22 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966322', 'tblTempVendorCDR_20' ) start [2025-04-22 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966322', 'tblTempVendorCDR_20' ) end [2025-04-22 16:59:22] Production.INFO: ProcessCDR(1,14966322,1,1,2) [2025-04-22 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966322', 'tblTempUsageDetail_20' ) start [2025-04-22 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966322', 'tblTempUsageDetail_20' ) end [2025-04-22 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 16:59:27] Production.INFO: ==18953== Releasing lock... [2025-04-22 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 16:59:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:00:06 [end_date_ymd] => 2025-04-22 17:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:00:06' and `end` < '2025-04-22 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-04-22 17:00:20] Production.INFO: count ==5718 [2025-04-22 17:00:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:00:06 - End Time 2025-04-22 17:00:06 [2025-04-22 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966327', 'tblTempUsageDetail_20' ) start [2025-04-22 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966327', 'tblTempUsageDetail_20' ) end [2025-04-22 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966327', 'tblTempVendorCDR_20' ) start [2025-04-22 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966327', 'tblTempVendorCDR_20' ) end [2025-04-22 17:00:23] Production.INFO: ProcessCDR(1,14966327,1,1,2) [2025-04-22 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966327', 'tblTempUsageDetail_20' ) start [2025-04-22 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966327', 'tblTempUsageDetail_20' ) end [2025-04-22 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:00:28] Production.INFO: ==19032== Releasing lock... [2025-04-22 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:00:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:01:05 [end_date_ymd] => 2025-04-22 17:01:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:01:05' and `end` < '2025-04-22 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-04-22 17:01:19] Production.INFO: count ==5736 [2025-04-22 17:01:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:01:05 - End Time 2025-04-22 17:01:05 [2025-04-22 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966333', 'tblTempUsageDetail_20' ) start [2025-04-22 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966333', 'tblTempUsageDetail_20' ) end [2025-04-22 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966333', 'tblTempVendorCDR_20' ) start [2025-04-22 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966333', 'tblTempVendorCDR_20' ) end [2025-04-22 17:01:22] Production.INFO: ProcessCDR(1,14966333,1,1,2) [2025-04-22 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966333', 'tblTempUsageDetail_20' ) start [2025-04-22 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966333', 'tblTempUsageDetail_20' ) end [2025-04-22 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:01:27] Production.INFO: ==19127== Releasing lock... [2025-04-22 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:01:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:02:05 [end_date_ymd] => 2025-04-22 17:02:05 [RateCDR] => 1 ) [2025-04-22 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:02:05' and `end` < '2025-04-22 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:02:19] Production.INFO: count ==5740 [2025-04-22 17:02:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:02:05 - End Time 2025-04-22 17:02:05 [2025-04-22 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966338', 'tblTempUsageDetail_20' ) start [2025-04-22 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966338', 'tblTempUsageDetail_20' ) end [2025-04-22 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966338', 'tblTempVendorCDR_20' ) start [2025-04-22 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966338', 'tblTempVendorCDR_20' ) end [2025-04-22 17:02:22] Production.INFO: ProcessCDR(1,14966338,1,1,2) [2025-04-22 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966338', 'tblTempUsageDetail_20' ) start [2025-04-22 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966338', 'tblTempUsageDetail_20' ) end [2025-04-22 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:02:27] Production.INFO: ==19205== Releasing lock... [2025-04-22 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:02:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:03:05 [end_date_ymd] => 2025-04-22 17:03:05 [RateCDR] => 1 ) [2025-04-22 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:03:05' and `end` < '2025-04-22 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:03:19] Production.INFO: count ==5741 [2025-04-22 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:03:05 - End Time 2025-04-22 17:03:05 [2025-04-22 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966343', 'tblTempUsageDetail_20' ) start [2025-04-22 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966343', 'tblTempUsageDetail_20' ) end [2025-04-22 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966343', 'tblTempVendorCDR_20' ) start [2025-04-22 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966343', 'tblTempVendorCDR_20' ) end [2025-04-22 17:03:22] Production.INFO: ProcessCDR(1,14966343,1,1,2) [2025-04-22 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966343', 'tblTempUsageDetail_20' ) start [2025-04-22 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966343', 'tblTempUsageDetail_20' ) end [2025-04-22 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:03:27] Production.INFO: ==19284== Releasing lock... [2025-04-22 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:03:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:04:06 [end_date_ymd] => 2025-04-22 17:04:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:04:06' and `end` < '2025-04-22 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-04-22 17:04:20] Production.INFO: count ==5774 [2025-04-22 17:04:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:04:06 - End Time 2025-04-22 17:04:06 [2025-04-22 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966348', 'tblTempUsageDetail_20' ) start [2025-04-22 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966348', 'tblTempUsageDetail_20' ) end [2025-04-22 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966348', 'tblTempVendorCDR_20' ) start [2025-04-22 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966348', 'tblTempVendorCDR_20' ) end [2025-04-22 17:04:23] Production.INFO: ProcessCDR(1,14966348,1,1,2) [2025-04-22 17:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966348', 'tblTempUsageDetail_20' ) start [2025-04-22 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966348', 'tblTempUsageDetail_20' ) end [2025-04-22 17:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:04:28] Production.INFO: ==19398== Releasing lock... [2025-04-22 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:04:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:05:05 [end_date_ymd] => 2025-04-22 17:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:05:05' and `end` < '2025-04-22 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-04-22 17:05:19] Production.INFO: count ==5747 [2025-04-22 17:05:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:05:05 - End Time 2025-04-22 17:05:05 [2025-04-22 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966353', 'tblTempUsageDetail_20' ) start [2025-04-22 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966353', 'tblTempUsageDetail_20' ) end [2025-04-22 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966353', 'tblTempVendorCDR_20' ) start [2025-04-22 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966353', 'tblTempVendorCDR_20' ) end [2025-04-22 17:05:22] Production.INFO: ProcessCDR(1,14966353,1,1,2) [2025-04-22 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966353', 'tblTempUsageDetail_20' ) start [2025-04-22 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966353', 'tblTempUsageDetail_20' ) end [2025-04-22 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:05:27] Production.INFO: ==19469== Releasing lock... [2025-04-22 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:05:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-22 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:06:05 [end_date_ymd] => 2025-04-22 17:06:05 [RateCDR] => 1 ) [2025-04-22 17: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-04-22 14:06:05' and `end` < '2025-04-22 17: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-04-22 17:06:19] Production.INFO: count ==5742 [2025-04-22 17:06:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:06:05 - End Time 2025-04-22 17:06:05 [2025-04-22 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966358', 'tblTempUsageDetail_20' ) start [2025-04-22 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966358', 'tblTempUsageDetail_20' ) end [2025-04-22 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966358', 'tblTempVendorCDR_20' ) start [2025-04-22 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966358', 'tblTempVendorCDR_20' ) end [2025-04-22 17:06:22] Production.INFO: ProcessCDR(1,14966358,1,1,2) [2025-04-22 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966358', 'tblTempUsageDetail_20' ) start [2025-04-22 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966358', 'tblTempUsageDetail_20' ) end [2025-04-22 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:06:27] Production.INFO: ==19550== Releasing lock... [2025-04-22 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:06:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:07:05 [end_date_ymd] => 2025-04-22 17:07:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:07:05' and `end` < '2025-04-22 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-04-22 17:07:19] Production.INFO: count ==5726 [2025-04-22 17:07:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:07:05 - End Time 2025-04-22 17:07:05 [2025-04-22 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966363', 'tblTempUsageDetail_20' ) start [2025-04-22 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966363', 'tblTempUsageDetail_20' ) end [2025-04-22 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966363', 'tblTempVendorCDR_20' ) start [2025-04-22 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966363', 'tblTempVendorCDR_20' ) end [2025-04-22 17:07:22] Production.INFO: ProcessCDR(1,14966363,1,1,2) [2025-04-22 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966363', 'tblTempUsageDetail_20' ) start [2025-04-22 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966363', 'tblTempUsageDetail_20' ) end [2025-04-22 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:07:27] Production.INFO: ==19622== Releasing lock... [2025-04-22 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:07:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:08:05 [end_date_ymd] => 2025-04-22 17:08:05 [RateCDR] => 1 ) [2025-04-22 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:08:05' and `end` < '2025-04-22 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:08:19] Production.INFO: count ==5732 [2025-04-22 17:08:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:08:05 - End Time 2025-04-22 17:08:05 [2025-04-22 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966368', 'tblTempUsageDetail_20' ) start [2025-04-22 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966368', 'tblTempUsageDetail_20' ) end [2025-04-22 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966368', 'tblTempVendorCDR_20' ) start [2025-04-22 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966368', 'tblTempVendorCDR_20' ) end [2025-04-22 17:08:22] Production.INFO: ProcessCDR(1,14966368,1,1,2) [2025-04-22 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966368', 'tblTempUsageDetail_20' ) start [2025-04-22 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966368', 'tblTempUsageDetail_20' ) end [2025-04-22 17:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:08:28] Production.INFO: ==19694== Releasing lock... [2025-04-22 17:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:08:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:09:06 [end_date_ymd] => 2025-04-22 17:09:06 [RateCDR] => 1 ) [2025-04-22 17: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-04-22 14:09:06' and `end` < '2025-04-22 17: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-04-22 17:09:20] Production.INFO: count ==5741 [2025-04-22 17:09:23] Production.ERROR: pbx CDR StartTime 2025-04-22 14:09:06 - End Time 2025-04-22 17:09:06 [2025-04-22 17:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966373', 'tblTempUsageDetail_20' ) start [2025-04-22 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966373', 'tblTempUsageDetail_20' ) end [2025-04-22 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966373', 'tblTempVendorCDR_20' ) start [2025-04-22 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966373', 'tblTempVendorCDR_20' ) end [2025-04-22 17:09:23] Production.INFO: ProcessCDR(1,14966373,1,1,2) [2025-04-22 17:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966373', 'tblTempUsageDetail_20' ) start [2025-04-22 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966373', 'tblTempUsageDetail_20' ) end [2025-04-22 17:09:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:09:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:09:29] Production.INFO: ==19769== Releasing lock... [2025-04-22 17:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:09:29] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:10:06 [end_date_ymd] => 2025-04-22 17:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:10:06' and `end` < '2025-04-22 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-04-22 17:10:20] Production.INFO: count ==5738 [2025-04-22 17:10:23] Production.ERROR: pbx CDR StartTime 2025-04-22 14:10:06 - End Time 2025-04-22 17:10:06 [2025-04-22 17:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966379', 'tblTempUsageDetail_20' ) start [2025-04-22 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966379', 'tblTempUsageDetail_20' ) end [2025-04-22 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966379', 'tblTempVendorCDR_20' ) start [2025-04-22 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966379', 'tblTempVendorCDR_20' ) end [2025-04-22 17:10:23] Production.INFO: ProcessCDR(1,14966379,1,1,2) [2025-04-22 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966379', 'tblTempUsageDetail_20' ) start [2025-04-22 17:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966379', 'tblTempUsageDetail_20' ) end [2025-04-22 17:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:10:29] Production.INFO: ==19847== Releasing lock... [2025-04-22 17:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:10:29] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:11:06 [end_date_ymd] => 2025-04-22 17:11:06 [RateCDR] => 1 ) [2025-04-22 17: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-04-22 14:11:06' and `end` < '2025-04-22 17: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-04-22 17:11:20] Production.INFO: count ==5727 [2025-04-22 17:11:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:11:06 - End Time 2025-04-22 17:11:06 [2025-04-22 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966384', 'tblTempUsageDetail_20' ) start [2025-04-22 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966384', 'tblTempUsageDetail_20' ) end [2025-04-22 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966384', 'tblTempVendorCDR_20' ) start [2025-04-22 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966384', 'tblTempVendorCDR_20' ) end [2025-04-22 17:11:23] Production.INFO: ProcessCDR(1,14966384,1,1,2) [2025-04-22 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966384', 'tblTempUsageDetail_20' ) start [2025-04-22 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966384', 'tblTempUsageDetail_20' ) end [2025-04-22 17:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:11:28] Production.INFO: ==19928== Releasing lock... [2025-04-22 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:11:28] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:12:05 [end_date_ymd] => 2025-04-22 17:12:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:12:05' and `end` < '2025-04-22 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-04-22 17:12:18] Production.INFO: count ==5719 [2025-04-22 17:12:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:12:05 - End Time 2025-04-22 17:12:05 [2025-04-22 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966389', 'tblTempUsageDetail_20' ) start [2025-04-22 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966389', 'tblTempUsageDetail_20' ) end [2025-04-22 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966389', 'tblTempVendorCDR_20' ) start [2025-04-22 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966389', 'tblTempVendorCDR_20' ) end [2025-04-22 17:12:22] Production.INFO: ProcessCDR(1,14966389,1,1,2) [2025-04-22 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966389', 'tblTempUsageDetail_20' ) start [2025-04-22 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966389', 'tblTempUsageDetail_20' ) end [2025-04-22 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:12:27] Production.INFO: ==20011== Releasing lock... [2025-04-22 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:12:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:13:05 [end_date_ymd] => 2025-04-22 17:13:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:13:05' and `end` < '2025-04-22 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-04-22 17:13:19] Production.INFO: count ==5704 [2025-04-22 17:13:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:13:05 - End Time 2025-04-22 17:13:05 [2025-04-22 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966394', 'tblTempUsageDetail_20' ) start [2025-04-22 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966394', 'tblTempUsageDetail_20' ) end [2025-04-22 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966394', 'tblTempVendorCDR_20' ) start [2025-04-22 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966394', 'tblTempVendorCDR_20' ) end [2025-04-22 17:13:22] Production.INFO: ProcessCDR(1,14966394,1,1,2) [2025-04-22 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966394', 'tblTempUsageDetail_20' ) start [2025-04-22 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966394', 'tblTempUsageDetail_20' ) end [2025-04-22 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:13:27] Production.INFO: ==20095== Releasing lock... [2025-04-22 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:13:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:14:05 [end_date_ymd] => 2025-04-22 17:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:14:05' and `end` < '2025-04-22 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-04-22 17:14:19] Production.INFO: count ==5707 [2025-04-22 17:14:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:14:05 - End Time 2025-04-22 17:14:05 [2025-04-22 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966399', 'tblTempUsageDetail_20' ) start [2025-04-22 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966399', 'tblTempUsageDetail_20' ) end [2025-04-22 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966399', 'tblTempVendorCDR_20' ) start [2025-04-22 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966399', 'tblTempVendorCDR_20' ) end [2025-04-22 17:14:22] Production.INFO: ProcessCDR(1,14966399,1,1,2) [2025-04-22 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966399', 'tblTempUsageDetail_20' ) start [2025-04-22 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966399', 'tblTempUsageDetail_20' ) end [2025-04-22 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:14:27] Production.INFO: ==20173== Releasing lock... [2025-04-22 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:14:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:15:05 [end_date_ymd] => 2025-04-22 17:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:15:05' and `end` < '2025-04-22 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-04-22 17:15:19] Production.INFO: count ==5695 [2025-04-22 17:15:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:15:05 - End Time 2025-04-22 17:15:05 [2025-04-22 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966404', 'tblTempUsageDetail_20' ) start [2025-04-22 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966404', 'tblTempUsageDetail_20' ) end [2025-04-22 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966404', 'tblTempVendorCDR_20' ) start [2025-04-22 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966404', 'tblTempVendorCDR_20' ) end [2025-04-22 17:15:22] Production.INFO: ProcessCDR(1,14966404,1,1,2) [2025-04-22 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966404', 'tblTempUsageDetail_20' ) start [2025-04-22 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966404', 'tblTempUsageDetail_20' ) end [2025-04-22 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:15:27] Production.INFO: ==20255== Releasing lock... [2025-04-22 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:15:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:16:05 [end_date_ymd] => 2025-04-22 17:16:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:16:05' and `end` < '2025-04-22 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-04-22 17:16:19] Production.INFO: count ==5691 [2025-04-22 17:16:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:16:05 - End Time 2025-04-22 17:16:05 [2025-04-22 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966409', 'tblTempUsageDetail_20' ) start [2025-04-22 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966409', 'tblTempUsageDetail_20' ) end [2025-04-22 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966409', 'tblTempVendorCDR_20' ) start [2025-04-22 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966409', 'tblTempVendorCDR_20' ) end [2025-04-22 17:16:22] Production.INFO: ProcessCDR(1,14966409,1,1,2) [2025-04-22 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966409', 'tblTempUsageDetail_20' ) start [2025-04-22 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966409', 'tblTempUsageDetail_20' ) end [2025-04-22 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:16:27] Production.INFO: ==20343== Releasing lock... [2025-04-22 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:16:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:17:05 [end_date_ymd] => 2025-04-22 17:17:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:17:05' and `end` < '2025-04-22 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-04-22 17:17:19] Production.INFO: count ==5714 [2025-04-22 17:17:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:17:05 - End Time 2025-04-22 17:17:05 [2025-04-22 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966414', 'tblTempUsageDetail_20' ) start [2025-04-22 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966414', 'tblTempUsageDetail_20' ) end [2025-04-22 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966414', 'tblTempVendorCDR_20' ) start [2025-04-22 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966414', 'tblTempVendorCDR_20' ) end [2025-04-22 17:17:22] Production.INFO: ProcessCDR(1,14966414,1,1,2) [2025-04-22 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966414', 'tblTempUsageDetail_20' ) start [2025-04-22 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966414', 'tblTempUsageDetail_20' ) end [2025-04-22 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:17:27] Production.INFO: ==20415== Releasing lock... [2025-04-22 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:17:27] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:18:05 [end_date_ymd] => 2025-04-22 17:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:18:05' and `end` < '2025-04-22 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-04-22 17:18:19] Production.INFO: count ==5709 [2025-04-22 17:18:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:18:05 - End Time 2025-04-22 17:18:05 [2025-04-22 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966419', 'tblTempUsageDetail_20' ) start [2025-04-22 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966419', 'tblTempUsageDetail_20' ) end [2025-04-22 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966419', 'tblTempVendorCDR_20' ) start [2025-04-22 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966419', 'tblTempVendorCDR_20' ) end [2025-04-22 17:18:22] Production.INFO: ProcessCDR(1,14966419,1,1,2) [2025-04-22 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966419', 'tblTempUsageDetail_20' ) start [2025-04-22 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966419', 'tblTempUsageDetail_20' ) end [2025-04-22 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:18:26] Production.INFO: ==20507== Releasing lock... [2025-04-22 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:18:26] Production.INFO: 71 MB #Memory Used# [2025-04-22 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:19:05 [end_date_ymd] => 2025-04-22 17:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:19:05' and `end` < '2025-04-22 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-04-22 17:19:19] Production.INFO: count ==5685 [2025-04-22 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:19:05 - End Time 2025-04-22 17:19:05 [2025-04-22 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966424', 'tblTempUsageDetail_20' ) start [2025-04-22 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966424', 'tblTempUsageDetail_20' ) end [2025-04-22 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966424', 'tblTempVendorCDR_20' ) start [2025-04-22 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966424', 'tblTempVendorCDR_20' ) end [2025-04-22 17:19:22] Production.INFO: ProcessCDR(1,14966424,1,1,2) [2025-04-22 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966424', 'tblTempUsageDetail_20' ) start [2025-04-22 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966424', 'tblTempUsageDetail_20' ) end [2025-04-22 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:19:27] Production.INFO: ==20619== Releasing lock... [2025-04-22 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:19:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-22 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:20:06 [end_date_ymd] => 2025-04-22 17:20:06 [RateCDR] => 1 ) [2025-04-22 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:20:06' and `end` < '2025-04-22 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:20:20] Production.INFO: count ==5673 [2025-04-22 17:20:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:20:06 - End Time 2025-04-22 17:20:06 [2025-04-22 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966430', 'tblTempUsageDetail_20' ) start [2025-04-22 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966430', 'tblTempUsageDetail_20' ) end [2025-04-22 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966430', 'tblTempVendorCDR_20' ) start [2025-04-22 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966430', 'tblTempVendorCDR_20' ) end [2025-04-22 17:20:23] Production.INFO: ProcessCDR(1,14966430,1,1,2) [2025-04-22 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966430', 'tblTempUsageDetail_20' ) start [2025-04-22 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966430', 'tblTempUsageDetail_20' ) end [2025-04-22 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:20:28] Production.INFO: ==20694== Releasing lock... [2025-04-22 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:20:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-22 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:21:05 [end_date_ymd] => 2025-04-22 17:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:21:05' and `end` < '2025-04-22 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-04-22 17:21:18] Production.INFO: count ==5638 [2025-04-22 17:21:20] Production.ERROR: pbx CDR StartTime 2025-04-22 14:21:05 - End Time 2025-04-22 17:21:05 [2025-04-22 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966435', 'tblTempUsageDetail_20' ) start [2025-04-22 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966435', 'tblTempUsageDetail_20' ) end [2025-04-22 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966435', 'tblTempVendorCDR_20' ) start [2025-04-22 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966435', 'tblTempVendorCDR_20' ) end [2025-04-22 17:21:21] Production.INFO: ProcessCDR(1,14966435,1,1,2) [2025-04-22 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966435', 'tblTempUsageDetail_20' ) start [2025-04-22 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966435', 'tblTempUsageDetail_20' ) end [2025-04-22 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:21:26] Production.INFO: ==20773== Releasing lock... [2025-04-22 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:21:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-22 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:22:05 [end_date_ymd] => 2025-04-22 17:22:05 [RateCDR] => 1 ) [2025-04-22 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:22:05' and `end` < '2025-04-22 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-04-22 17:22:19] Production.INFO: count ==5634 [2025-04-22 17:22:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:22:05 - End Time 2025-04-22 17:22:05 [2025-04-22 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966440', 'tblTempUsageDetail_20' ) start [2025-04-22 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966440', 'tblTempUsageDetail_20' ) end [2025-04-22 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966440', 'tblTempVendorCDR_20' ) start [2025-04-22 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966440', 'tblTempVendorCDR_20' ) end [2025-04-22 17:22:22] Production.INFO: ProcessCDR(1,14966440,1,1,2) [2025-04-22 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966440', 'tblTempUsageDetail_20' ) start [2025-04-22 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966440', 'tblTempUsageDetail_20' ) end [2025-04-22 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:22:27] Production.INFO: ==20852== Releasing lock... [2025-04-22 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:22:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-22 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:23:05 [end_date_ymd] => 2025-04-22 17:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:23:05' and `end` < '2025-04-22 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-04-22 17:23:19] Production.INFO: count ==5610 [2025-04-22 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:23:05 - End Time 2025-04-22 17:23:05 [2025-04-22 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966445', 'tblTempUsageDetail_20' ) start [2025-04-22 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966445', 'tblTempUsageDetail_20' ) end [2025-04-22 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966445', 'tblTempVendorCDR_20' ) start [2025-04-22 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966445', 'tblTempVendorCDR_20' ) end [2025-04-22 17:23:21] Production.INFO: ProcessCDR(1,14966445,1,1,2) [2025-04-22 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966445', 'tblTempUsageDetail_20' ) start [2025-04-22 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966445', 'tblTempUsageDetail_20' ) end [2025-04-22 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:23:26] Production.INFO: ==20929== Releasing lock... [2025-04-22 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:23:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-22 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:24:06 [end_date_ymd] => 2025-04-22 17:24:06 [RateCDR] => 1 ) [2025-04-22 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:24:06' and `end` < '2025-04-22 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:24:20] Production.INFO: count ==5613 [2025-04-22 17:24:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:24:06 - End Time 2025-04-22 17:24:06 [2025-04-22 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966450', 'tblTempUsageDetail_20' ) start [2025-04-22 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966450', 'tblTempUsageDetail_20' ) end [2025-04-22 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966450', 'tblTempVendorCDR_20' ) start [2025-04-22 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966450', 'tblTempVendorCDR_20' ) end [2025-04-22 17:24:22] Production.INFO: ProcessCDR(1,14966450,1,1,2) [2025-04-22 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966450', 'tblTempUsageDetail_20' ) start [2025-04-22 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966450', 'tblTempUsageDetail_20' ) end [2025-04-22 17:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:24:28] Production.INFO: ==21003== Releasing lock... [2025-04-22 17:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:24:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-22 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:25:05 [end_date_ymd] => 2025-04-22 17:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:25:05' and `end` < '2025-04-22 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-04-22 17:25:18] Production.INFO: count ==5596 [2025-04-22 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:25:05 - End Time 2025-04-22 17:25:05 [2025-04-22 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966455', 'tblTempUsageDetail_20' ) start [2025-04-22 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966455', 'tblTempUsageDetail_20' ) end [2025-04-22 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966455', 'tblTempVendorCDR_20' ) start [2025-04-22 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966455', 'tblTempVendorCDR_20' ) end [2025-04-22 17:25:21] Production.INFO: ProcessCDR(1,14966455,1,1,2) [2025-04-22 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966455', 'tblTempUsageDetail_20' ) start [2025-04-22 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966455', 'tblTempUsageDetail_20' ) end [2025-04-22 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:25:26] Production.INFO: ==21083== Releasing lock... [2025-04-22 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:25:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-22 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:26:05 [end_date_ymd] => 2025-04-22 17:26:05 [RateCDR] => 1 ) [2025-04-22 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:26:05' and `end` < '2025-04-22 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:26:19] Production.INFO: count ==5579 [2025-04-22 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:26:05 - End Time 2025-04-22 17:26:05 [2025-04-22 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966460', 'tblTempUsageDetail_20' ) start [2025-04-22 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966460', 'tblTempUsageDetail_20' ) end [2025-04-22 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966460', 'tblTempVendorCDR_20' ) start [2025-04-22 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966460', 'tblTempVendorCDR_20' ) end [2025-04-22 17:26:22] Production.INFO: ProcessCDR(1,14966460,1,1,2) [2025-04-22 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966460', 'tblTempUsageDetail_20' ) start [2025-04-22 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966460', 'tblTempUsageDetail_20' ) end [2025-04-22 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:26:26] Production.INFO: ==21161== Releasing lock... [2025-04-22 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:26:26] Production.INFO: 70 MB #Memory Used# [2025-04-22 17:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:27:06 [end_date_ymd] => 2025-04-22 17:27:06 [RateCDR] => 1 ) [2025-04-22 17:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:27:06' and `end` < '2025-04-22 17:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:27:20] Production.INFO: count ==5571 [2025-04-22 17:27:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:27:06 - End Time 2025-04-22 17:27:06 [2025-04-22 17:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966465', 'tblTempUsageDetail_20' ) start [2025-04-22 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966465', 'tblTempUsageDetail_20' ) end [2025-04-22 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966465', 'tblTempVendorCDR_20' ) start [2025-04-22 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966465', 'tblTempVendorCDR_20' ) end [2025-04-22 17:27:22] Production.INFO: ProcessCDR(1,14966465,1,1,2) [2025-04-22 17:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966465', 'tblTempUsageDetail_20' ) start [2025-04-22 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966465', 'tblTempUsageDetail_20' ) end [2025-04-22 17:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:27:27] Production.INFO: ==21244== Releasing lock... [2025-04-22 17:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:27:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-22 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:28:05 [end_date_ymd] => 2025-04-22 17:28:05 [RateCDR] => 1 ) [2025-04-22 17:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:28:05' and `end` < '2025-04-22 17:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:28:19] Production.INFO: count ==5558 [2025-04-22 17:28:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:28:05 - End Time 2025-04-22 17:28:05 [2025-04-22 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966470', 'tblTempUsageDetail_20' ) start [2025-04-22 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966470', 'tblTempUsageDetail_20' ) end [2025-04-22 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966470', 'tblTempVendorCDR_20' ) start [2025-04-22 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966470', 'tblTempVendorCDR_20' ) end [2025-04-22 17:28:22] Production.INFO: ProcessCDR(1,14966470,1,1,2) [2025-04-22 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966470', 'tblTempUsageDetail_20' ) start [2025-04-22 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966470', 'tblTempUsageDetail_20' ) end [2025-04-22 17:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:28:27] Production.INFO: ==21329== Releasing lock... [2025-04-22 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:28:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-22 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:29:05 [end_date_ymd] => 2025-04-22 17:29:05 [RateCDR] => 1 ) [2025-04-22 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:29:05' and `end` < '2025-04-22 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:29:19] Production.INFO: count ==5554 [2025-04-22 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:29:05 - End Time 2025-04-22 17:29:05 [2025-04-22 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966475', 'tblTempUsageDetail_20' ) start [2025-04-22 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966475', 'tblTempUsageDetail_20' ) end [2025-04-22 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966475', 'tblTempVendorCDR_20' ) start [2025-04-22 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966475', 'tblTempVendorCDR_20' ) end [2025-04-22 17:29:22] Production.INFO: ProcessCDR(1,14966475,1,1,2) [2025-04-22 17:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966475', 'tblTempUsageDetail_20' ) start [2025-04-22 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966475', 'tblTempUsageDetail_20' ) end [2025-04-22 17:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:29:27] Production.INFO: ==21403== Releasing lock... [2025-04-22 17:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:29:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-22 17:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:30:05 [end_date_ymd] => 2025-04-22 17:30:05 [RateCDR] => 1 ) [2025-04-22 17: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-04-22 14:30:05' and `end` < '2025-04-22 17: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-04-22 17:30:19] Production.INFO: count ==5552 [2025-04-22 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:30:05 - End Time 2025-04-22 17:30:05 [2025-04-22 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966480', 'tblTempUsageDetail_20' ) start [2025-04-22 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966480', 'tblTempUsageDetail_20' ) end [2025-04-22 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966480', 'tblTempVendorCDR_20' ) start [2025-04-22 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966480', 'tblTempVendorCDR_20' ) end [2025-04-22 17:30:22] Production.INFO: ProcessCDR(1,14966480,1,1,2) [2025-04-22 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966480', 'tblTempUsageDetail_20' ) start [2025-04-22 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966480', 'tblTempUsageDetail_20' ) end [2025-04-22 17:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:30:27] Production.INFO: ==21482== Releasing lock... [2025-04-22 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:30:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-22 17:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:31:06 [end_date_ymd] => 2025-04-22 17:31:06 [RateCDR] => 1 ) [2025-04-22 17: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-04-22 14:31:06' and `end` < '2025-04-22 17: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-04-22 17:31:20] Production.INFO: count ==5545 [2025-04-22 17:31:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:31:06 - End Time 2025-04-22 17:31:06 [2025-04-22 17:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966486', 'tblTempUsageDetail_20' ) start [2025-04-22 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966486', 'tblTempUsageDetail_20' ) end [2025-04-22 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966486', 'tblTempVendorCDR_20' ) start [2025-04-22 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966486', 'tblTempVendorCDR_20' ) end [2025-04-22 17:31:22] Production.INFO: ProcessCDR(1,14966486,1,1,2) [2025-04-22 17:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966486', 'tblTempUsageDetail_20' ) start [2025-04-22 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966486', 'tblTempUsageDetail_20' ) end [2025-04-22 17:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:31:27] Production.INFO: ==21571== Releasing lock... [2025-04-22 17:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:31:27] Production.INFO: 70 MB #Memory Used# [2025-04-22 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:32:05 [end_date_ymd] => 2025-04-22 17:32:05 [RateCDR] => 1 ) [2025-04-22 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:32:05' and `end` < '2025-04-22 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:32:19] Production.INFO: count ==5544 [2025-04-22 17:32:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:32:05 - End Time 2025-04-22 17:32:05 [2025-04-22 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966491', 'tblTempUsageDetail_20' ) start [2025-04-22 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966491', 'tblTempUsageDetail_20' ) end [2025-04-22 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966491', 'tblTempVendorCDR_20' ) start [2025-04-22 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966491', 'tblTempVendorCDR_20' ) end [2025-04-22 17:32:22] Production.INFO: ProcessCDR(1,14966491,1,1,2) [2025-04-22 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966491', 'tblTempUsageDetail_20' ) start [2025-04-22 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966491', 'tblTempUsageDetail_20' ) end [2025-04-22 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:32:27] Production.INFO: ==21648== Releasing lock... [2025-04-22 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:32:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-22 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:33:05 [end_date_ymd] => 2025-04-22 17:33:05 [RateCDR] => 1 ) [2025-04-22 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:33:05' and `end` < '2025-04-22 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:33:19] Production.INFO: count ==5535 [2025-04-22 17:33:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:33:05 - End Time 2025-04-22 17:33:05 [2025-04-22 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966496', 'tblTempUsageDetail_20' ) start [2025-04-22 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966496', 'tblTempUsageDetail_20' ) end [2025-04-22 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966496', 'tblTempVendorCDR_20' ) start [2025-04-22 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966496', 'tblTempVendorCDR_20' ) end [2025-04-22 17:33:22] Production.INFO: ProcessCDR(1,14966496,1,1,2) [2025-04-22 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966496', 'tblTempUsageDetail_20' ) start [2025-04-22 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966496', 'tblTempUsageDetail_20' ) end [2025-04-22 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:33:27] Production.INFO: ==21727== Releasing lock... [2025-04-22 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:33:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-22 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:34:05 [end_date_ymd] => 2025-04-22 17:34:05 [RateCDR] => 1 ) [2025-04-22 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:34:05' and `end` < '2025-04-22 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:34:19] Production.INFO: count ==5535 [2025-04-22 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:34:05 - End Time 2025-04-22 17:34:05 [2025-04-22 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966501', 'tblTempUsageDetail_20' ) start [2025-04-22 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966501', 'tblTempUsageDetail_20' ) end [2025-04-22 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966501', 'tblTempVendorCDR_20' ) start [2025-04-22 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966501', 'tblTempVendorCDR_20' ) end [2025-04-22 17:34:21] Production.INFO: ProcessCDR(1,14966501,1,1,2) [2025-04-22 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966501', 'tblTempUsageDetail_20' ) start [2025-04-22 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966501', 'tblTempUsageDetail_20' ) end [2025-04-22 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:34:27] Production.INFO: ==21844== Releasing lock... [2025-04-22 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:34:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-22 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:35:05 [end_date_ymd] => 2025-04-22 17:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:35:05' and `end` < '2025-04-22 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-04-22 17:35:19] Production.INFO: count ==5517 [2025-04-22 17:35:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:35:05 - End Time 2025-04-22 17:35:05 [2025-04-22 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966506', 'tblTempUsageDetail_20' ) start [2025-04-22 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966506', 'tblTempUsageDetail_20' ) end [2025-04-22 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966506', 'tblTempVendorCDR_20' ) start [2025-04-22 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966506', 'tblTempVendorCDR_20' ) end [2025-04-22 17:35:22] Production.INFO: ProcessCDR(1,14966506,1,1,2) [2025-04-22 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966506', 'tblTempUsageDetail_20' ) start [2025-04-22 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966506', 'tblTempUsageDetail_20' ) end [2025-04-22 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:35:27] Production.INFO: ==21918== Releasing lock... [2025-04-22 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:35:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-22 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:36:05 [end_date_ymd] => 2025-04-22 17:36:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:36:05' and `end` < '2025-04-22 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-04-22 17:36:19] Production.INFO: count ==5503 [2025-04-22 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:36:05 - End Time 2025-04-22 17:36:05 [2025-04-22 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966511', 'tblTempUsageDetail_20' ) start [2025-04-22 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966511', 'tblTempUsageDetail_20' ) end [2025-04-22 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966511', 'tblTempVendorCDR_20' ) start [2025-04-22 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966511', 'tblTempVendorCDR_20' ) end [2025-04-22 17:36:22] Production.INFO: ProcessCDR(1,14966511,1,1,2) [2025-04-22 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966511', 'tblTempUsageDetail_20' ) start [2025-04-22 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966511', 'tblTempUsageDetail_20' ) end [2025-04-22 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:36:27] Production.INFO: ==21995== Releasing lock... [2025-04-22 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:36:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:37:05 [end_date_ymd] => 2025-04-22 17:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:37:05' and `end` < '2025-04-22 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-04-22 17:37:19] Production.INFO: count ==5495 [2025-04-22 17:37:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:37:05 - End Time 2025-04-22 17:37:05 [2025-04-22 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966516', 'tblTempUsageDetail_20' ) start [2025-04-22 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966516', 'tblTempUsageDetail_20' ) end [2025-04-22 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966516', 'tblTempVendorCDR_20' ) start [2025-04-22 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966516', 'tblTempVendorCDR_20' ) end [2025-04-22 17:37:21] Production.INFO: ProcessCDR(1,14966516,1,1,2) [2025-04-22 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966516', 'tblTempUsageDetail_20' ) start [2025-04-22 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966516', 'tblTempUsageDetail_20' ) end [2025-04-22 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:37:27] Production.INFO: ==22080== Releasing lock... [2025-04-22 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:37:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:38:05 [end_date_ymd] => 2025-04-22 17:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:38:05' and `end` < '2025-04-22 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-04-22 17:38:18] Production.INFO: count ==5508 [2025-04-22 17:38:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:38:05 - End Time 2025-04-22 17:38:05 [2025-04-22 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966521', 'tblTempUsageDetail_20' ) start [2025-04-22 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966521', 'tblTempUsageDetail_20' ) end [2025-04-22 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966521', 'tblTempVendorCDR_20' ) start [2025-04-22 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966521', 'tblTempVendorCDR_20' ) end [2025-04-22 17:38:21] Production.INFO: ProcessCDR(1,14966521,1,1,2) [2025-04-22 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966521', 'tblTempUsageDetail_20' ) start [2025-04-22 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966521', 'tblTempUsageDetail_20' ) end [2025-04-22 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:38:26] Production.INFO: ==22153== Releasing lock... [2025-04-22 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:38:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:39:05 [end_date_ymd] => 2025-04-22 17:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:39:05' and `end` < '2025-04-22 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-04-22 17:39:19] Production.INFO: count ==5499 [2025-04-22 17:39:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:39:05 - End Time 2025-04-22 17:39:05 [2025-04-22 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966526', 'tblTempUsageDetail_20' ) start [2025-04-22 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966526', 'tblTempUsageDetail_20' ) end [2025-04-22 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966526', 'tblTempVendorCDR_20' ) start [2025-04-22 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966526', 'tblTempVendorCDR_20' ) end [2025-04-22 17:39:22] Production.INFO: ProcessCDR(1,14966526,1,1,2) [2025-04-22 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966526', 'tblTempUsageDetail_20' ) start [2025-04-22 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966526', 'tblTempUsageDetail_20' ) end [2025-04-22 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:39:27] Production.INFO: ==22227== Releasing lock... [2025-04-22 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:39:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:40:05 [end_date_ymd] => 2025-04-22 17:40:05 [RateCDR] => 1 ) [2025-04-22 17: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-04-22 14:40:05' and `end` < '2025-04-22 17: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-04-22 17:40:19] Production.INFO: count ==5496 [2025-04-22 17:40:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:40:05 - End Time 2025-04-22 17:40:05 [2025-04-22 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966531', 'tblTempUsageDetail_20' ) start [2025-04-22 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966531', 'tblTempUsageDetail_20' ) end [2025-04-22 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966531', 'tblTempVendorCDR_20' ) start [2025-04-22 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966531', 'tblTempVendorCDR_20' ) end [2025-04-22 17:40:22] Production.INFO: ProcessCDR(1,14966531,1,1,2) [2025-04-22 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966531', 'tblTempUsageDetail_20' ) start [2025-04-22 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966531', 'tblTempUsageDetail_20' ) end [2025-04-22 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:40:27] Production.INFO: ==22316== Releasing lock... [2025-04-22 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:40:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:41:05 [end_date_ymd] => 2025-04-22 17:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:41:05' and `end` < '2025-04-22 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-04-22 17:41:19] Production.INFO: count ==5525 [2025-04-22 17:41:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:41:05 - End Time 2025-04-22 17:41:05 [2025-04-22 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966537', 'tblTempUsageDetail_20' ) start [2025-04-22 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966537', 'tblTempUsageDetail_20' ) end [2025-04-22 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966537', 'tblTempVendorCDR_20' ) start [2025-04-22 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966537', 'tblTempVendorCDR_20' ) end [2025-04-22 17:41:22] Production.INFO: ProcessCDR(1,14966537,1,1,2) [2025-04-22 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966537', 'tblTempUsageDetail_20' ) start [2025-04-22 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966537', 'tblTempUsageDetail_20' ) end [2025-04-22 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:41:27] Production.INFO: ==22397== Releasing lock... [2025-04-22 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:41:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-22 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:42:06 [end_date_ymd] => 2025-04-22 17:42:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:42:06' and `end` < '2025-04-22 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-04-22 17:42:19] Production.INFO: count ==5515 [2025-04-22 17:42:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:42:06 - End Time 2025-04-22 17:42:06 [2025-04-22 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966542', 'tblTempUsageDetail_20' ) start [2025-04-22 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966542', 'tblTempUsageDetail_20' ) end [2025-04-22 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966542', 'tblTempVendorCDR_20' ) start [2025-04-22 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966542', 'tblTempVendorCDR_20' ) end [2025-04-22 17:42:22] Production.INFO: ProcessCDR(1,14966542,1,1,2) [2025-04-22 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966542', 'tblTempUsageDetail_20' ) start [2025-04-22 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966542', 'tblTempUsageDetail_20' ) end [2025-04-22 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:42:27] Production.INFO: ==22478== Releasing lock... [2025-04-22 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:42:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-22 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:43:05 [end_date_ymd] => 2025-04-22 17:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:43:05' and `end` < '2025-04-22 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-04-22 17:43:19] Production.INFO: count ==5509 [2025-04-22 17:43:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:43:05 - End Time 2025-04-22 17:43:05 [2025-04-22 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966547', 'tblTempUsageDetail_20' ) start [2025-04-22 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966547', 'tblTempUsageDetail_20' ) end [2025-04-22 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966547', 'tblTempVendorCDR_20' ) start [2025-04-22 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966547', 'tblTempVendorCDR_20' ) end [2025-04-22 17:43:22] Production.INFO: ProcessCDR(1,14966547,1,1,2) [2025-04-22 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966547', 'tblTempUsageDetail_20' ) start [2025-04-22 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966547', 'tblTempUsageDetail_20' ) end [2025-04-22 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:43:25] Production.INFO: ==22560== Releasing lock... [2025-04-22 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:43:25] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:44:05 [end_date_ymd] => 2025-04-22 17:44:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:44:05' and `end` < '2025-04-22 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-04-22 17:44:19] Production.INFO: count ==5503 [2025-04-22 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:44:05 - End Time 2025-04-22 17:44:05 [2025-04-22 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966552', 'tblTempUsageDetail_20' ) start [2025-04-22 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966552', 'tblTempUsageDetail_20' ) end [2025-04-22 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966552', 'tblTempVendorCDR_20' ) start [2025-04-22 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966552', 'tblTempVendorCDR_20' ) end [2025-04-22 17:44:22] Production.INFO: ProcessCDR(1,14966552,1,1,2) [2025-04-22 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966552', 'tblTempUsageDetail_20' ) start [2025-04-22 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966552', 'tblTempUsageDetail_20' ) end [2025-04-22 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:44:27] Production.INFO: ==22631== Releasing lock... [2025-04-22 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:44:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:45:05 [end_date_ymd] => 2025-04-22 17:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:45:05' and `end` < '2025-04-22 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-04-22 17:45:19] Production.INFO: count ==5490 [2025-04-22 17:45:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:45:05 - End Time 2025-04-22 17:45:05 [2025-04-22 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966557', 'tblTempUsageDetail_20' ) start [2025-04-22 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966557', 'tblTempUsageDetail_20' ) end [2025-04-22 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966557', 'tblTempVendorCDR_20' ) start [2025-04-22 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966557', 'tblTempVendorCDR_20' ) end [2025-04-22 17:45:21] Production.INFO: ProcessCDR(1,14966557,1,1,2) [2025-04-22 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966557', 'tblTempUsageDetail_20' ) start [2025-04-22 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966557', 'tblTempUsageDetail_20' ) end [2025-04-22 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:45:26] Production.INFO: ==22710== Releasing lock... [2025-04-22 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:45:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:46:05 [end_date_ymd] => 2025-04-22 17:46:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:46:05' and `end` < '2025-04-22 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-04-22 17:46:19] Production.INFO: count ==5483 [2025-04-22 17:46:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:46:05 - End Time 2025-04-22 17:46:05 [2025-04-22 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966562', 'tblTempUsageDetail_20' ) start [2025-04-22 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966562', 'tblTempUsageDetail_20' ) end [2025-04-22 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966562', 'tblTempVendorCDR_20' ) start [2025-04-22 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966562', 'tblTempVendorCDR_20' ) end [2025-04-22 17:46:22] Production.INFO: ProcessCDR(1,14966562,1,1,2) [2025-04-22 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966562', 'tblTempUsageDetail_20' ) start [2025-04-22 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966562', 'tblTempUsageDetail_20' ) end [2025-04-22 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:46:25] Production.INFO: ==22792== Releasing lock... [2025-04-22 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:46:25] Production.INFO: 69.25 MB #Memory Used# [2025-04-22 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:47:05 [end_date_ymd] => 2025-04-22 17:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:47:05' and `end` < '2025-04-22 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-04-22 17:47:18] Production.INFO: count ==5468 [2025-04-22 17:47:20] Production.ERROR: pbx CDR StartTime 2025-04-22 14:47:05 - End Time 2025-04-22 17:47:05 [2025-04-22 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966567', 'tblTempUsageDetail_20' ) start [2025-04-22 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966567', 'tblTempUsageDetail_20' ) end [2025-04-22 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966567', 'tblTempVendorCDR_20' ) start [2025-04-22 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966567', 'tblTempVendorCDR_20' ) end [2025-04-22 17:47:21] Production.INFO: ProcessCDR(1,14966567,1,1,2) [2025-04-22 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966567', 'tblTempUsageDetail_20' ) start [2025-04-22 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966567', 'tblTempUsageDetail_20' ) end [2025-04-22 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:47:26] Production.INFO: ==22865== Releasing lock... [2025-04-22 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:47:26] Production.INFO: 69 MB #Memory Used# [2025-04-22 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:48:05 [end_date_ymd] => 2025-04-22 17:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:48:05' and `end` < '2025-04-22 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-04-22 17:48:19] Production.INFO: count ==5449 [2025-04-22 17:48:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:48:05 - End Time 2025-04-22 17:48:05 [2025-04-22 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966572', 'tblTempUsageDetail_20' ) start [2025-04-22 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966572', 'tblTempUsageDetail_20' ) end [2025-04-22 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966572', 'tblTempVendorCDR_20' ) start [2025-04-22 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966572', 'tblTempVendorCDR_20' ) end [2025-04-22 17:48:22] Production.INFO: ProcessCDR(1,14966572,1,1,2) [2025-04-22 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966572', 'tblTempUsageDetail_20' ) start [2025-04-22 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966572', 'tblTempUsageDetail_20' ) end [2025-04-22 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:48:25] Production.INFO: ==22947== Releasing lock... [2025-04-22 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:48:25] Production.INFO: 69 MB #Memory Used# [2025-04-22 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:49:05 [end_date_ymd] => 2025-04-22 17:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:49:05' and `end` < '2025-04-22 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-04-22 17:49:18] Production.INFO: count ==5439 [2025-04-22 17:49:20] Production.ERROR: pbx CDR StartTime 2025-04-22 14:49:05 - End Time 2025-04-22 17:49:05 [2025-04-22 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966577', 'tblTempUsageDetail_20' ) start [2025-04-22 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966577', 'tblTempUsageDetail_20' ) end [2025-04-22 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966577', 'tblTempVendorCDR_20' ) start [2025-04-22 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966577', 'tblTempVendorCDR_20' ) end [2025-04-22 17:49:21] Production.INFO: ProcessCDR(1,14966577,1,1,2) [2025-04-22 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966577', 'tblTempUsageDetail_20' ) start [2025-04-22 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966577', 'tblTempUsageDetail_20' ) end [2025-04-22 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:49:25] Production.INFO: ==23022== Releasing lock... [2025-04-22 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:49:25] Production.INFO: 68.75 MB #Memory Used# [2025-04-22 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:50:06 [end_date_ymd] => 2025-04-22 17:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:50:06' and `end` < '2025-04-22 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-04-22 17:50:19] Production.INFO: count ==5445 [2025-04-22 17:50:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:50:06 - End Time 2025-04-22 17:50:06 [2025-04-22 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966583', 'tblTempUsageDetail_20' ) start [2025-04-22 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966583', 'tblTempUsageDetail_20' ) end [2025-04-22 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966583', 'tblTempVendorCDR_20' ) start [2025-04-22 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966583', 'tblTempVendorCDR_20' ) end [2025-04-22 17:50:22] Production.INFO: ProcessCDR(1,14966583,1,1,2) [2025-04-22 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966583', 'tblTempUsageDetail_20' ) start [2025-04-22 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966583', 'tblTempUsageDetail_20' ) end [2025-04-22 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:50:27] Production.INFO: ==23144== Releasing lock... [2025-04-22 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:50:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-22 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:51:06 [end_date_ymd] => 2025-04-22 17:51:06 [RateCDR] => 1 ) [2025-04-22 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:51:06' and `end` < '2025-04-22 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:51:19] Production.INFO: count ==5438 [2025-04-22 17:51:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:51:06 - End Time 2025-04-22 17:51:06 [2025-04-22 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966588', 'tblTempUsageDetail_20' ) start [2025-04-22 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966588', 'tblTempUsageDetail_20' ) end [2025-04-22 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966588', 'tblTempVendorCDR_20' ) start [2025-04-22 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966588', 'tblTempVendorCDR_20' ) end [2025-04-22 17:51:22] Production.INFO: ProcessCDR(1,14966588,1,1,2) [2025-04-22 17:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966588', 'tblTempUsageDetail_20' ) start [2025-04-22 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966588', 'tblTempUsageDetail_20' ) end [2025-04-22 17:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:51:27] Production.INFO: ==23231== Releasing lock... [2025-04-22 17:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:51:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-22 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:52:05 [end_date_ymd] => 2025-04-22 17:52:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:52:05' and `end` < '2025-04-22 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-04-22 17:52:19] Production.INFO: count ==5430 [2025-04-22 17:52:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:52:05 - End Time 2025-04-22 17:52:05 [2025-04-22 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966593', 'tblTempUsageDetail_20' ) start [2025-04-22 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966593', 'tblTempUsageDetail_20' ) end [2025-04-22 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966593', 'tblTempVendorCDR_20' ) start [2025-04-22 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966593', 'tblTempVendorCDR_20' ) end [2025-04-22 17:52:21] Production.INFO: ProcessCDR(1,14966593,1,1,2) [2025-04-22 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966593', 'tblTempUsageDetail_20' ) start [2025-04-22 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966593', 'tblTempUsageDetail_20' ) end [2025-04-22 17:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:52:27] Production.INFO: ==23307== Releasing lock... [2025-04-22 17:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:52:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-22 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:53:06 [end_date_ymd] => 2025-04-22 17:53:06 [RateCDR] => 1 ) [2025-04-22 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:53:06' and `end` < '2025-04-22 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:53:19] Production.INFO: count ==5428 [2025-04-22 17:53:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:53:06 - End Time 2025-04-22 17:53:06 [2025-04-22 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966598', 'tblTempUsageDetail_20' ) start [2025-04-22 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966598', 'tblTempUsageDetail_20' ) end [2025-04-22 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966598', 'tblTempVendorCDR_20' ) start [2025-04-22 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966598', 'tblTempVendorCDR_20' ) end [2025-04-22 17:53:22] Production.INFO: ProcessCDR(1,14966598,1,1,2) [2025-04-22 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966598', 'tblTempUsageDetail_20' ) start [2025-04-22 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966598', 'tblTempUsageDetail_20' ) end [2025-04-22 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:53:27] Production.INFO: ==23382== Releasing lock... [2025-04-22 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:53:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-22 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:54:05 [end_date_ymd] => 2025-04-22 17:54:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:54:05' and `end` < '2025-04-22 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-04-22 17:54:19] Production.INFO: count ==5427 [2025-04-22 17:54:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:54:05 - End Time 2025-04-22 17:54:05 [2025-04-22 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966603', 'tblTempUsageDetail_20' ) start [2025-04-22 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966603', 'tblTempUsageDetail_20' ) end [2025-04-22 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966603', 'tblTempVendorCDR_20' ) start [2025-04-22 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966603', 'tblTempVendorCDR_20' ) end [2025-04-22 17:54:21] Production.INFO: ProcessCDR(1,14966603,1,1,2) [2025-04-22 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966603', 'tblTempUsageDetail_20' ) start [2025-04-22 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966603', 'tblTempUsageDetail_20' ) end [2025-04-22 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:54:26] Production.INFO: ==23458== Releasing lock... [2025-04-22 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:54:26] Production.INFO: 68.75 MB #Memory Used# [2025-04-22 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:55:06 [end_date_ymd] => 2025-04-22 17:55:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:55:06' and `end` < '2025-04-22 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-04-22 17:55:20] Production.INFO: count ==5412 [2025-04-22 17:55:22] Production.ERROR: pbx CDR StartTime 2025-04-22 14:55:06 - End Time 2025-04-22 17:55:06 [2025-04-22 17:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966608', 'tblTempUsageDetail_20' ) start [2025-04-22 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966608', 'tblTempUsageDetail_20' ) end [2025-04-22 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966608', 'tblTempVendorCDR_20' ) start [2025-04-22 17:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966608', 'tblTempVendorCDR_20' ) end [2025-04-22 17:55:23] Production.INFO: ProcessCDR(1,14966608,1,1,2) [2025-04-22 17:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966608', 'tblTempUsageDetail_20' ) start [2025-04-22 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966608', 'tblTempUsageDetail_20' ) end [2025-04-22 17:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:55:28] Production.INFO: ==23539== Releasing lock... [2025-04-22 17:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:55:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-22 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:56:05 [end_date_ymd] => 2025-04-22 17:56:05 [RateCDR] => 1 ) [2025-04-22 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 14:56:05' and `end` < '2025-04-22 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 17:56:19] Production.INFO: count ==5396 [2025-04-22 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:56:05 - End Time 2025-04-22 17:56:05 [2025-04-22 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966613', 'tblTempUsageDetail_20' ) start [2025-04-22 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966613', 'tblTempUsageDetail_20' ) end [2025-04-22 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966613', 'tblTempVendorCDR_20' ) start [2025-04-22 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966613', 'tblTempVendorCDR_20' ) end [2025-04-22 17:56:22] Production.INFO: ProcessCDR(1,14966613,1,1,2) [2025-04-22 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966613', 'tblTempUsageDetail_20' ) start [2025-04-22 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966613', 'tblTempUsageDetail_20' ) end [2025-04-22 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:56:27] Production.INFO: ==23620== Releasing lock... [2025-04-22 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:56:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-22 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:57:06 [end_date_ymd] => 2025-04-22 17:57:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:57:06' and `end` < '2025-04-22 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-04-22 17:57:19] Production.INFO: count ==5383 [2025-04-22 17:57:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:57:06 - End Time 2025-04-22 17:57:06 [2025-04-22 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966618', 'tblTempUsageDetail_20' ) start [2025-04-22 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966618', 'tblTempUsageDetail_20' ) end [2025-04-22 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966618', 'tblTempVendorCDR_20' ) start [2025-04-22 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966618', 'tblTempVendorCDR_20' ) end [2025-04-22 17:57:22] Production.INFO: ProcessCDR(1,14966618,1,1,2) [2025-04-22 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966618', 'tblTempUsageDetail_20' ) start [2025-04-22 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966618', 'tblTempUsageDetail_20' ) end [2025-04-22 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:57:26] Production.INFO: ==23693== Releasing lock... [2025-04-22 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:57:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-22 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:58:05 [end_date_ymd] => 2025-04-22 17:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 14:58:05' and `end` < '2025-04-22 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-04-22 17:58:19] Production.INFO: count ==5378 [2025-04-22 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:58:05 - End Time 2025-04-22 17:58:05 [2025-04-22 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966623', 'tblTempUsageDetail_20' ) start [2025-04-22 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966623', 'tblTempUsageDetail_20' ) end [2025-04-22 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966623', 'tblTempVendorCDR_20' ) start [2025-04-22 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966623', 'tblTempVendorCDR_20' ) end [2025-04-22 17:58:21] Production.INFO: ProcessCDR(1,14966623,1,1,2) [2025-04-22 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966623', 'tblTempUsageDetail_20' ) start [2025-04-22 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966623', 'tblTempUsageDetail_20' ) end [2025-04-22 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:58:27] Production.INFO: ==23775== Releasing lock... [2025-04-22 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:58:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-22 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 14:59:06 [end_date_ymd] => 2025-04-22 17:59:06 [RateCDR] => 1 ) [2025-04-22 17: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-04-22 14:59:06' and `end` < '2025-04-22 17: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-04-22 17:59:19] Production.INFO: count ==5358 [2025-04-22 17:59:21] Production.ERROR: pbx CDR StartTime 2025-04-22 14:59:06 - End Time 2025-04-22 17:59:06 [2025-04-22 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966628', 'tblTempUsageDetail_20' ) start [2025-04-22 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966628', 'tblTempUsageDetail_20' ) end [2025-04-22 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966628', 'tblTempVendorCDR_20' ) start [2025-04-22 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966628', 'tblTempVendorCDR_20' ) end [2025-04-22 17:59:22] Production.INFO: ProcessCDR(1,14966628,1,1,2) [2025-04-22 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966628', 'tblTempUsageDetail_20' ) start [2025-04-22 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966628', 'tblTempUsageDetail_20' ) end [2025-04-22 17:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 17:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 17:59:27] Production.INFO: ==23860== Releasing lock... [2025-04-22 17:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 17:59:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-22 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:00:06 [end_date_ymd] => 2025-04-22 18:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:00:06' and `end` < '2025-04-22 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-04-22 18:00:20] Production.INFO: count ==5341 [2025-04-22 18:00:22] Production.ERROR: pbx CDR StartTime 2025-04-22 15:00:06 - End Time 2025-04-22 18:00:06 [2025-04-22 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966634', 'tblTempUsageDetail_20' ) start [2025-04-22 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966634', 'tblTempUsageDetail_20' ) end [2025-04-22 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966634', 'tblTempVendorCDR_20' ) start [2025-04-22 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966634', 'tblTempVendorCDR_20' ) end [2025-04-22 18:00:22] Production.INFO: ProcessCDR(1,14966634,1,1,2) [2025-04-22 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966634', 'tblTempUsageDetail_20' ) start [2025-04-22 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966634', 'tblTempUsageDetail_20' ) end [2025-04-22 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:00:28] Production.INFO: ==23935== Releasing lock... [2025-04-22 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:00:28] Production.INFO: 68 MB #Memory Used# [2025-04-22 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:01:06 [end_date_ymd] => 2025-04-22 18:01:06 [RateCDR] => 1 ) [2025-04-22 18:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:01:06' and `end` < '2025-04-22 18:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:01:19] Production.INFO: count ==5287 [2025-04-22 18:01:22] Production.ERROR: pbx CDR StartTime 2025-04-22 15:01:06 - End Time 2025-04-22 18:01:06 [2025-04-22 18:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966639', 'tblTempUsageDetail_20' ) start [2025-04-22 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966639', 'tblTempUsageDetail_20' ) end [2025-04-22 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966639', 'tblTempVendorCDR_20' ) start [2025-04-22 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966639', 'tblTempVendorCDR_20' ) end [2025-04-22 18:01:22] Production.INFO: ProcessCDR(1,14966639,1,1,2) [2025-04-22 18:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966639', 'tblTempUsageDetail_20' ) start [2025-04-22 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966639', 'tblTempUsageDetail_20' ) end [2025-04-22 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:01:27] Production.INFO: ==24029== Releasing lock... [2025-04-22 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:01:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-22 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:02:06 [end_date_ymd] => 2025-04-22 18:02:06 [RateCDR] => 1 ) [2025-04-22 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:02:06' and `end` < '2025-04-22 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:02:19] Production.INFO: count ==5290 [2025-04-22 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:02:06 - End Time 2025-04-22 18:02:06 [2025-04-22 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966644', 'tblTempUsageDetail_20' ) start [2025-04-22 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966644', 'tblTempUsageDetail_20' ) end [2025-04-22 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966644', 'tblTempVendorCDR_20' ) start [2025-04-22 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966644', 'tblTempVendorCDR_20' ) end [2025-04-22 18:02:22] Production.INFO: ProcessCDR(1,14966644,1,1,2) [2025-04-22 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966644', 'tblTempUsageDetail_20' ) start [2025-04-22 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966644', 'tblTempUsageDetail_20' ) end [2025-04-22 18:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:02:27] Production.INFO: ==24107== Releasing lock... [2025-04-22 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:02:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-22 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:03:06 [end_date_ymd] => 2025-04-22 18:03:06 [RateCDR] => 1 ) [2025-04-22 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:03:06' and `end` < '2025-04-22 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:03:19] Production.INFO: count ==5268 [2025-04-22 18:03:22] Production.ERROR: pbx CDR StartTime 2025-04-22 15:03:06 - End Time 2025-04-22 18:03:06 [2025-04-22 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966649', 'tblTempUsageDetail_20' ) start [2025-04-22 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966649', 'tblTempUsageDetail_20' ) end [2025-04-22 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966649', 'tblTempVendorCDR_20' ) start [2025-04-22 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966649', 'tblTempVendorCDR_20' ) end [2025-04-22 18:03:22] Production.INFO: ProcessCDR(1,14966649,1,1,2) [2025-04-22 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966649', 'tblTempUsageDetail_20' ) start [2025-04-22 18:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966649', 'tblTempUsageDetail_20' ) end [2025-04-22 18:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:03:28] Production.INFO: ==24183== Releasing lock... [2025-04-22 18:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:03:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-22 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:04:05 [end_date_ymd] => 2025-04-22 18:04:05 [RateCDR] => 1 ) [2025-04-22 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:04:05' and `end` < '2025-04-22 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:04:19] Production.INFO: count ==5264 [2025-04-22 18:04:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:04:05 - End Time 2025-04-22 18:04:05 [2025-04-22 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966654', 'tblTempUsageDetail_20' ) start [2025-04-22 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966654', 'tblTempUsageDetail_20' ) end [2025-04-22 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966654', 'tblTempVendorCDR_20' ) start [2025-04-22 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966654', 'tblTempVendorCDR_20' ) end [2025-04-22 18:04:21] Production.INFO: ProcessCDR(1,14966654,1,1,2) [2025-04-22 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966654', 'tblTempUsageDetail_20' ) start [2025-04-22 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966654', 'tblTempUsageDetail_20' ) end [2025-04-22 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:04:27] Production.INFO: ==24259== Releasing lock... [2025-04-22 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:04:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-22 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:05:05 [end_date_ymd] => 2025-04-22 18:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:05:05' and `end` < '2025-04-22 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-04-22 18:05:19] Production.INFO: count ==5261 [2025-04-22 18:05:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:05:05 - End Time 2025-04-22 18:05:05 [2025-04-22 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966659', 'tblTempUsageDetail_20' ) start [2025-04-22 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966659', 'tblTempUsageDetail_20' ) end [2025-04-22 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966659', 'tblTempVendorCDR_20' ) start [2025-04-22 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966659', 'tblTempVendorCDR_20' ) end [2025-04-22 18:05:21] Production.INFO: ProcessCDR(1,14966659,1,1,2) [2025-04-22 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966659', 'tblTempUsageDetail_20' ) start [2025-04-22 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966659', 'tblTempUsageDetail_20' ) end [2025-04-22 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:05:25] Production.INFO: ==24370== Releasing lock... [2025-04-22 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:05:25] Production.INFO: 67.5 MB #Memory Used# [2025-04-22 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:06:05 [end_date_ymd] => 2025-04-22 18:06:05 [RateCDR] => 1 ) [2025-04-22 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:06:05' and `end` < '2025-04-22 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:06:19] Production.INFO: count ==5253 [2025-04-22 18:06:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:06:05 - End Time 2025-04-22 18:06:05 [2025-04-22 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966664', 'tblTempUsageDetail_20' ) start [2025-04-22 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966664', 'tblTempUsageDetail_20' ) end [2025-04-22 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966664', 'tblTempVendorCDR_20' ) start [2025-04-22 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966664', 'tblTempVendorCDR_20' ) end [2025-04-22 18:06:21] Production.INFO: ProcessCDR(1,14966664,1,1,2) [2025-04-22 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966664', 'tblTempUsageDetail_20' ) start [2025-04-22 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966664', 'tblTempUsageDetail_20' ) end [2025-04-22 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:06:26] Production.INFO: ==24449== Releasing lock... [2025-04-22 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:06:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-22 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:07:05 [end_date_ymd] => 2025-04-22 18:07:05 [RateCDR] => 1 ) [2025-04-22 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:07:05' and `end` < '2025-04-22 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-04-22 18:07:19] Production.INFO: count ==5246 [2025-04-22 18:07:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:07:05 - End Time 2025-04-22 18:07:05 [2025-04-22 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966669', 'tblTempUsageDetail_20' ) start [2025-04-22 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966669', 'tblTempUsageDetail_20' ) end [2025-04-22 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966669', 'tblTempVendorCDR_20' ) start [2025-04-22 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966669', 'tblTempVendorCDR_20' ) end [2025-04-22 18:07:21] Production.INFO: ProcessCDR(1,14966669,1,1,2) [2025-04-22 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966669', 'tblTempUsageDetail_20' ) start [2025-04-22 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966669', 'tblTempUsageDetail_20' ) end [2025-04-22 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:07:25] Production.INFO: ==24527== Releasing lock... [2025-04-22 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:07:25] Production.INFO: 67.5 MB #Memory Used# [2025-04-22 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:08:05 [end_date_ymd] => 2025-04-22 18:08:05 [RateCDR] => 1 ) [2025-04-22 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:08:05' and `end` < '2025-04-22 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:08:19] Production.INFO: count ==5253 [2025-04-22 18:08:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:08:05 - End Time 2025-04-22 18:08:05 [2025-04-22 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966674', 'tblTempUsageDetail_20' ) start [2025-04-22 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966674', 'tblTempUsageDetail_20' ) end [2025-04-22 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966674', 'tblTempVendorCDR_20' ) start [2025-04-22 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966674', 'tblTempVendorCDR_20' ) end [2025-04-22 18:08:22] Production.INFO: ProcessCDR(1,14966674,1,1,2) [2025-04-22 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966674', 'tblTempUsageDetail_20' ) start [2025-04-22 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966674', 'tblTempUsageDetail_20' ) end [2025-04-22 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:08:25] Production.INFO: ==24604== Releasing lock... [2025-04-22 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:08:25] Production.INFO: 67.5 MB #Memory Used# [2025-04-22 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:09:05 [end_date_ymd] => 2025-04-22 18:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:09:05' and `end` < '2025-04-22 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-04-22 18:09:18] Production.INFO: count ==5240 [2025-04-22 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:09:05 - End Time 2025-04-22 18:09:05 [2025-04-22 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966679', 'tblTempUsageDetail_20' ) start [2025-04-22 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966679', 'tblTempUsageDetail_20' ) end [2025-04-22 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966679', 'tblTempVendorCDR_20' ) start [2025-04-22 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966679', 'tblTempVendorCDR_20' ) end [2025-04-22 18:09:21] Production.INFO: ProcessCDR(1,14966679,1,1,2) [2025-04-22 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966679', 'tblTempUsageDetail_20' ) start [2025-04-22 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966679', 'tblTempUsageDetail_20' ) end [2025-04-22 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:09:24] Production.INFO: ==24684== Releasing lock... [2025-04-22 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:09:24] Production.INFO: 67.25 MB #Memory Used# [2025-04-22 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:10:06 [end_date_ymd] => 2025-04-22 18:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:10:06' and `end` < '2025-04-22 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-04-22 18:10:20] Production.INFO: count ==5217 [2025-04-22 18:10:22] Production.ERROR: pbx CDR StartTime 2025-04-22 15:10:06 - End Time 2025-04-22 18:10:06 [2025-04-22 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966685', 'tblTempUsageDetail_20' ) start [2025-04-22 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966685', 'tblTempUsageDetail_20' ) end [2025-04-22 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966685', 'tblTempVendorCDR_20' ) start [2025-04-22 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966685', 'tblTempVendorCDR_20' ) end [2025-04-22 18:10:22] Production.INFO: ProcessCDR(1,14966685,1,1,2) [2025-04-22 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966685', 'tblTempUsageDetail_20' ) start [2025-04-22 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966685', 'tblTempUsageDetail_20' ) end [2025-04-22 18:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:10:28] Production.INFO: ==24759== Releasing lock... [2025-04-22 18:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:10:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-22 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:11:04 [end_date_ymd] => 2025-04-22 18:11:04 [RateCDR] => 1 ) [2025-04-22 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:11:04' and `end` < '2025-04-22 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:11:18] Production.INFO: count ==5147 [2025-04-22 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:11:04 - End Time 2025-04-22 18:11:04 [2025-04-22 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966690', 'tblTempUsageDetail_20' ) start [2025-04-22 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966690', 'tblTempUsageDetail_20' ) end [2025-04-22 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966690', 'tblTempVendorCDR_20' ) start [2025-04-22 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966690', 'tblTempVendorCDR_20' ) end [2025-04-22 18:11:20] Production.INFO: ProcessCDR(1,14966690,1,1,2) [2025-04-22 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966690', 'tblTempUsageDetail_20' ) start [2025-04-22 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966690', 'tblTempUsageDetail_20' ) end [2025-04-22 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:11:26] Production.INFO: ==24834== Releasing lock... [2025-04-22 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:11:26] Production.INFO: 67 MB #Memory Used# [2025-04-22 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:12:05 [end_date_ymd] => 2025-04-22 18:12:05 [RateCDR] => 1 ) [2025-04-22 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:12:05' and `end` < '2025-04-22 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:12:19] Production.INFO: count ==5130 [2025-04-22 18:12:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:12:05 - End Time 2025-04-22 18:12:05 [2025-04-22 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966695', 'tblTempUsageDetail_20' ) start [2025-04-22 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966695', 'tblTempUsageDetail_20' ) end [2025-04-22 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966695', 'tblTempVendorCDR_20' ) start [2025-04-22 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966695', 'tblTempVendorCDR_20' ) end [2025-04-22 18:12:22] Production.INFO: ProcessCDR(1,14966695,1,1,2) [2025-04-22 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966695', 'tblTempUsageDetail_20' ) start [2025-04-22 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966695', 'tblTempUsageDetail_20' ) end [2025-04-22 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:12:27] Production.INFO: ==24909== Releasing lock... [2025-04-22 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:12:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-22 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:13:06 [end_date_ymd] => 2025-04-22 18:13:06 [RateCDR] => 1 ) [2025-04-22 18:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:13:06' and `end` < '2025-04-22 18:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:13:19] Production.INFO: count ==5106 [2025-04-22 18:13:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:13:06 - End Time 2025-04-22 18:13:06 [2025-04-22 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966700', 'tblTempUsageDetail_20' ) start [2025-04-22 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966700', 'tblTempUsageDetail_20' ) end [2025-04-22 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966700', 'tblTempVendorCDR_20' ) start [2025-04-22 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966700', 'tblTempVendorCDR_20' ) end [2025-04-22 18:13:22] Production.INFO: ProcessCDR(1,14966700,1,1,2) [2025-04-22 18:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966700', 'tblTempUsageDetail_20' ) start [2025-04-22 18:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966700', 'tblTempUsageDetail_20' ) end [2025-04-22 18:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:13:27] Production.INFO: ==24991== Releasing lock... [2025-04-22 18:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:13:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-22 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:14:05 [end_date_ymd] => 2025-04-22 18:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:14:05' and `end` < '2025-04-22 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-04-22 18:14:19] Production.INFO: count ==5093 [2025-04-22 18:14:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:14:05 - End Time 2025-04-22 18:14:05 [2025-04-22 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966705', 'tblTempUsageDetail_20' ) start [2025-04-22 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966705', 'tblTempUsageDetail_20' ) end [2025-04-22 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966705', 'tblTempVendorCDR_20' ) start [2025-04-22 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966705', 'tblTempVendorCDR_20' ) end [2025-04-22 18:14:21] Production.INFO: ProcessCDR(1,14966705,1,1,2) [2025-04-22 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966705', 'tblTempUsageDetail_20' ) start [2025-04-22 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966705', 'tblTempUsageDetail_20' ) end [2025-04-22 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:14:26] Production.INFO: ==25062== Releasing lock... [2025-04-22 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:14:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-22 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:15:05 [end_date_ymd] => 2025-04-22 18:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:15:05' and `end` < '2025-04-22 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-04-22 18:15:19] Production.INFO: count ==5075 [2025-04-22 18:15:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:15:05 - End Time 2025-04-22 18:15:05 [2025-04-22 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966710', 'tblTempUsageDetail_20' ) start [2025-04-22 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966710', 'tblTempUsageDetail_20' ) end [2025-04-22 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966710', 'tblTempVendorCDR_20' ) start [2025-04-22 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966710', 'tblTempVendorCDR_20' ) end [2025-04-22 18:15:21] Production.INFO: ProcessCDR(1,14966710,1,1,2) [2025-04-22 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966710', 'tblTempUsageDetail_20' ) start [2025-04-22 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966710', 'tblTempUsageDetail_20' ) end [2025-04-22 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:15:25] Production.INFO: ==25147== Releasing lock... [2025-04-22 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:15:25] Production.INFO: 66 MB #Memory Used# [2025-04-22 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:16:05 [end_date_ymd] => 2025-04-22 18:16:05 [RateCDR] => 1 ) [2025-04-22 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:16:05' and `end` < '2025-04-22 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:16:18] Production.INFO: count ==5047 [2025-04-22 18:16:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:16:05 - End Time 2025-04-22 18:16:05 [2025-04-22 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966715', 'tblTempUsageDetail_20' ) start [2025-04-22 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966715', 'tblTempUsageDetail_20' ) end [2025-04-22 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966715', 'tblTempVendorCDR_20' ) start [2025-04-22 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966715', 'tblTempVendorCDR_20' ) end [2025-04-22 18:16:21] Production.INFO: ProcessCDR(1,14966715,1,1,2) [2025-04-22 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966715', 'tblTempUsageDetail_20' ) start [2025-04-22 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966715', 'tblTempUsageDetail_20' ) end [2025-04-22 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:16:26] Production.INFO: ==25258== Releasing lock... [2025-04-22 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:16:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-22 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:17:06 [end_date_ymd] => 2025-04-22 18:17:06 [RateCDR] => 1 ) [2025-04-22 18:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:17:06' and `end` < '2025-04-22 18:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:17:19] Production.INFO: count ==5033 [2025-04-22 18:17:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:17:06 - End Time 2025-04-22 18:17:06 [2025-04-22 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966720', 'tblTempUsageDetail_20' ) start [2025-04-22 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966720', 'tblTempUsageDetail_20' ) end [2025-04-22 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966720', 'tblTempVendorCDR_20' ) start [2025-04-22 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966720', 'tblTempVendorCDR_20' ) end [2025-04-22 18:17:22] Production.INFO: ProcessCDR(1,14966720,1,1,2) [2025-04-22 18:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966720', 'tblTempUsageDetail_20' ) start [2025-04-22 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966720', 'tblTempUsageDetail_20' ) end [2025-04-22 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:17:27] Production.INFO: ==25367== Releasing lock... [2025-04-22 18:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:17:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-22 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:18:05 [end_date_ymd] => 2025-04-22 18:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:18:05' and `end` < '2025-04-22 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-04-22 18:18:19] Production.INFO: count ==5026 [2025-04-22 18:18:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:18:05 - End Time 2025-04-22 18:18:05 [2025-04-22 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966725', 'tblTempUsageDetail_20' ) start [2025-04-22 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966725', 'tblTempUsageDetail_20' ) end [2025-04-22 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966725', 'tblTempVendorCDR_20' ) start [2025-04-22 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966725', 'tblTempVendorCDR_20' ) end [2025-04-22 18:18:21] Production.INFO: ProcessCDR(1,14966725,1,1,2) [2025-04-22 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966725', 'tblTempUsageDetail_20' ) start [2025-04-22 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966725', 'tblTempUsageDetail_20' ) end [2025-04-22 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:18:26] Production.INFO: ==25476== Releasing lock... [2025-04-22 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:18:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-22 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:19:05 [end_date_ymd] => 2025-04-22 18:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:19:05' and `end` < '2025-04-22 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-04-22 18:19:19] Production.INFO: count ==5016 [2025-04-22 18:19:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:19:05 - End Time 2025-04-22 18:19:05 [2025-04-22 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966730', 'tblTempUsageDetail_20' ) start [2025-04-22 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966730', 'tblTempUsageDetail_20' ) end [2025-04-22 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966730', 'tblTempVendorCDR_20' ) start [2025-04-22 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966730', 'tblTempVendorCDR_20' ) end [2025-04-22 18:19:21] Production.INFO: ProcessCDR(1,14966730,1,1,2) [2025-04-22 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966730', 'tblTempUsageDetail_20' ) start [2025-04-22 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966730', 'tblTempUsageDetail_20' ) end [2025-04-22 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:19:26] Production.INFO: ==25587== Releasing lock... [2025-04-22 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:19:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-22 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:20:05 [end_date_ymd] => 2025-04-22 18:20:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:20:05' and `end` < '2025-04-22 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-04-22 18:20:19] Production.INFO: count ==5014 [2025-04-22 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:20:05 - End Time 2025-04-22 18:20:05 [2025-04-22 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966736', 'tblTempUsageDetail_20' ) start [2025-04-22 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966736', 'tblTempUsageDetail_20' ) end [2025-04-22 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966736', 'tblTempVendorCDR_20' ) start [2025-04-22 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966736', 'tblTempVendorCDR_20' ) end [2025-04-22 18:20:21] Production.INFO: ProcessCDR(1,14966736,1,1,2) [2025-04-22 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966736', 'tblTempUsageDetail_20' ) start [2025-04-22 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966736', 'tblTempUsageDetail_20' ) end [2025-04-22 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:20:26] Production.INFO: ==25691== Releasing lock... [2025-04-22 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:20:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-22 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:21:05 [end_date_ymd] => 2025-04-22 18:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:21:05' and `end` < '2025-04-22 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-04-22 18:21:18] Production.INFO: count ==4945 [2025-04-22 18:21:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:21:05 - End Time 2025-04-22 18:21:05 [2025-04-22 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966741', 'tblTempUsageDetail_20' ) start [2025-04-22 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966741', 'tblTempUsageDetail_20' ) end [2025-04-22 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966741', 'tblTempVendorCDR_20' ) start [2025-04-22 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966741', 'tblTempVendorCDR_20' ) end [2025-04-22 18:21:21] Production.INFO: ProcessCDR(1,14966741,1,1,2) [2025-04-22 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966741', 'tblTempUsageDetail_20' ) start [2025-04-22 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966741', 'tblTempUsageDetail_20' ) end [2025-04-22 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:21:26] Production.INFO: ==25839== Releasing lock... [2025-04-22 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:21:26] Production.INFO: 65 MB #Memory Used# [2025-04-22 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:22:06 [end_date_ymd] => 2025-04-22 18:22:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:22:06' and `end` < '2025-04-22 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-04-22 18:22:20] Production.INFO: count ==4932 [2025-04-22 18:22:22] Production.ERROR: pbx CDR StartTime 2025-04-22 15:22:06 - End Time 2025-04-22 18:22:06 [2025-04-22 18:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966746', 'tblTempUsageDetail_20' ) start [2025-04-22 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966746', 'tblTempUsageDetail_20' ) end [2025-04-22 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966746', 'tblTempVendorCDR_20' ) start [2025-04-22 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966746', 'tblTempVendorCDR_20' ) end [2025-04-22 18:22:22] Production.INFO: ProcessCDR(1,14966746,1,1,2) [2025-04-22 18:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966746', 'tblTempUsageDetail_20' ) start [2025-04-22 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966746', 'tblTempUsageDetail_20' ) end [2025-04-22 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:22:25] Production.INFO: ==25943== Releasing lock... [2025-04-22 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:22:25] Production.INFO: 65 MB #Memory Used# [2025-04-22 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:23:05 [end_date_ymd] => 2025-04-22 18:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:23:05' and `end` < '2025-04-22 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-04-22 18:23:18] Production.INFO: count ==4919 [2025-04-22 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:23:05 - End Time 2025-04-22 18:23:05 [2025-04-22 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966751', 'tblTempUsageDetail_20' ) start [2025-04-22 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966751', 'tblTempUsageDetail_20' ) end [2025-04-22 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966751', 'tblTempVendorCDR_20' ) start [2025-04-22 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966751', 'tblTempVendorCDR_20' ) end [2025-04-22 18:23:21] Production.INFO: ProcessCDR(1,14966751,1,1,2) [2025-04-22 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966751', 'tblTempUsageDetail_20' ) start [2025-04-22 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966751', 'tblTempUsageDetail_20' ) end [2025-04-22 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:23:26] Production.INFO: ==26053== Releasing lock... [2025-04-22 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:23:26] Production.INFO: 65 MB #Memory Used# [2025-04-22 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:24:06 [end_date_ymd] => 2025-04-22 18:24:06 [RateCDR] => 1 ) [2025-04-22 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:24:06' and `end` < '2025-04-22 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:24:19] Production.INFO: count ==4890 [2025-04-22 18:24:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:24:06 - End Time 2025-04-22 18:24:06 [2025-04-22 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966756', 'tblTempUsageDetail_20' ) start [2025-04-22 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966756', 'tblTempUsageDetail_20' ) end [2025-04-22 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966756', 'tblTempVendorCDR_20' ) start [2025-04-22 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966756', 'tblTempVendorCDR_20' ) end [2025-04-22 18:24:22] Production.INFO: ProcessCDR(1,14966756,1,1,2) [2025-04-22 18:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966756', 'tblTempUsageDetail_20' ) start [2025-04-22 18:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966756', 'tblTempUsageDetail_20' ) end [2025-04-22 18:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:24:27] Production.INFO: ==26162== Releasing lock... [2025-04-22 18:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:24:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-22 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:25:04 [end_date_ymd] => 2025-04-22 18:25:04 [RateCDR] => 1 ) [2025-04-22 18: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-04-22 15:25:04' and `end` < '2025-04-22 18: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-04-22 18:25:18] Production.INFO: count ==4879 [2025-04-22 18:25:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:25:04 - End Time 2025-04-22 18:25:04 [2025-04-22 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966761', 'tblTempUsageDetail_20' ) start [2025-04-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966761', 'tblTempUsageDetail_20' ) end [2025-04-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966761', 'tblTempVendorCDR_20' ) start [2025-04-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966761', 'tblTempVendorCDR_20' ) end [2025-04-22 18:25:20] Production.INFO: ProcessCDR(1,14966761,1,1,2) [2025-04-22 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966761', 'tblTempUsageDetail_20' ) start [2025-04-22 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966761', 'tblTempUsageDetail_20' ) end [2025-04-22 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:25:26] Production.INFO: ==26274== Releasing lock... [2025-04-22 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:25:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-22 18:26:22] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:26:22 [end_date_ymd] => 2025-04-22 18:26:22 [RateCDR] => 1 ) [2025-04-22 18:26:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:26:22' and `end` < '2025-04-22 18:26:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:26:36] Production.INFO: count ==4869 [2025-04-22 18:27:48] Production.ERROR: pbx CDR StartTime 2025-04-22 15:26:22 - End Time 2025-04-22 18:26:22 [2025-04-22 18:27:48] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:27:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966766', 'tblTempUsageDetail_20' ) start [2025-04-22 18:27:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966766', 'tblTempUsageDetail_20' ) end [2025-04-22 18:27:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966766', 'tblTempVendorCDR_20' ) start [2025-04-22 18:27:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966766', 'tblTempVendorCDR_20' ) end [2025-04-22 18:27:57] Production.INFO: ProcessCDR(1,14966766,1,1,2) [2025-04-22 18:27:57] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:28:08] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:28:08] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:28:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:28:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966766', 'tblTempUsageDetail_20' ) start [2025-04-22 18:28:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966766', 'tblTempUsageDetail_20' ) end [2025-04-22 18:28:46] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:28:46] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:28:46] Production.INFO: ==26384== Releasing lock... [2025-04-22 18:28:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:28:46] Production.INFO: 64.5 MB #Memory Used# [2025-04-22 18:29:25] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:29:25 [end_date_ymd] => 2025-04-22 18:29:25 [RateCDR] => 1 ) [2025-04-22 18: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-04-22 15:29:25' and `end` < '2025-04-22 18: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-04-22 18:29:38] Production.INFO: count ==4849 [2025-04-22 18:30:29] Production.ERROR: pbx CDR StartTime 2025-04-22 15:29:25 - End Time 2025-04-22 18:29:25 [2025-04-22 18:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966776', 'tblTempUsageDetail_20' ) start [2025-04-22 18:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966776', 'tblTempUsageDetail_20' ) end [2025-04-22 18:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966776', 'tblTempVendorCDR_20' ) start [2025-04-22 18:30:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966776', 'tblTempVendorCDR_20' ) end [2025-04-22 18:30:41] Production.INFO: ProcessCDR(1,14966776,1,1,2) [2025-04-22 18:30:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:31:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:31:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966776', 'tblTempUsageDetail_20' ) start [2025-04-22 18:32:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966776', 'tblTempUsageDetail_20' ) end [2025-04-22 18:32:49] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:32:49] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:32:50] Production.INFO: ==26675== Releasing lock... [2025-04-22 18:32:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:32:50] Production.INFO: 64.5 MB #Memory Used# [2025-04-22 18:33:29] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:33:29 [end_date_ymd] => 2025-04-22 18:33:29 [RateCDR] => 1 ) [2025-04-22 18:33:29] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:33:29' and `end` < '2025-04-22 18:33:29' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:33:43] Production.INFO: count ==4794 [2025-04-22 18:34:28] Production.ERROR: pbx CDR StartTime 2025-04-22 15:33:29 - End Time 2025-04-22 18:33:29 [2025-04-22 18:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966792', 'tblTempUsageDetail_20' ) start [2025-04-22 18:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966792', 'tblTempUsageDetail_20' ) end [2025-04-22 18:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966792', 'tblTempVendorCDR_20' ) start [2025-04-22 18:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966792', 'tblTempVendorCDR_20' ) end [2025-04-22 18:34:29] Production.INFO: ProcessCDR(1,14966792,1,1,2) [2025-04-22 18:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:34:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:34:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:34:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966792', 'tblTempUsageDetail_20' ) start [2025-04-22 18:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966792', 'tblTempUsageDetail_20' ) end [2025-04-22 18:34:36] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:34:36] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:34:36] Production.INFO: ==27095== Releasing lock... [2025-04-22 18:34:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:34:36] Production.INFO: 64 MB #Memory Used# [2025-04-22 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:35:05 [end_date_ymd] => 2025-04-22 18:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:35:05' and `end` < '2025-04-22 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-04-22 18:35:19] Production.INFO: count ==4776 [2025-04-22 18:35:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:35:05 - End Time 2025-04-22 18:35:05 [2025-04-22 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966800', 'tblTempUsageDetail_20' ) start [2025-04-22 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966800', 'tblTempUsageDetail_20' ) end [2025-04-22 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966800', 'tblTempVendorCDR_20' ) start [2025-04-22 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966800', 'tblTempVendorCDR_20' ) end [2025-04-22 18:35:21] Production.INFO: ProcessCDR(1,14966800,1,1,2) [2025-04-22 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966800', 'tblTempUsageDetail_20' ) start [2025-04-22 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966800', 'tblTempUsageDetail_20' ) end [2025-04-22 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:35:25] Production.INFO: ==27307== Releasing lock... [2025-04-22 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:35:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-22 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:36:06 [end_date_ymd] => 2025-04-22 18:36:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:36:06' and `end` < '2025-04-22 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-04-22 18:36:19] Production.INFO: count ==4741 [2025-04-22 18:36:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:36:06 - End Time 2025-04-22 18:36:06 [2025-04-22 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966805', 'tblTempUsageDetail_20' ) start [2025-04-22 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966805', 'tblTempUsageDetail_20' ) end [2025-04-22 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966805', 'tblTempVendorCDR_20' ) start [2025-04-22 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966805', 'tblTempVendorCDR_20' ) end [2025-04-22 18:36:21] Production.INFO: ProcessCDR(1,14966805,1,1,2) [2025-04-22 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966805', 'tblTempUsageDetail_20' ) start [2025-04-22 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966805', 'tblTempUsageDetail_20' ) end [2025-04-22 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:36:27] Production.INFO: ==27457== Releasing lock... [2025-04-22 18:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:36:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-22 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:37:05 [end_date_ymd] => 2025-04-22 18:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:37:05' and `end` < '2025-04-22 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-04-22 18:37:18] Production.INFO: count ==4733 [2025-04-22 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:37:05 - End Time 2025-04-22 18:37:05 [2025-04-22 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966810', 'tblTempUsageDetail_20' ) start [2025-04-22 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966810', 'tblTempUsageDetail_20' ) end [2025-04-22 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966810', 'tblTempVendorCDR_20' ) start [2025-04-22 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966810', 'tblTempVendorCDR_20' ) end [2025-04-22 18:37:20] Production.INFO: ProcessCDR(1,14966810,1,1,2) [2025-04-22 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966810', 'tblTempUsageDetail_20' ) start [2025-04-22 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966810', 'tblTempUsageDetail_20' ) end [2025-04-22 18:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:37:26] Production.INFO: ==27561== Releasing lock... [2025-04-22 18:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:37:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-22 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:38:05 [end_date_ymd] => 2025-04-22 18:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:38:05' and `end` < '2025-04-22 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-04-22 18:38:19] Production.INFO: count ==4710 [2025-04-22 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:38:05 - End Time 2025-04-22 18:38:05 [2025-04-22 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966815', 'tblTempUsageDetail_20' ) start [2025-04-22 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966815', 'tblTempUsageDetail_20' ) end [2025-04-22 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966815', 'tblTempVendorCDR_20' ) start [2025-04-22 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966815', 'tblTempVendorCDR_20' ) end [2025-04-22 18:38:21] Production.INFO: ProcessCDR(1,14966815,1,1,2) [2025-04-22 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966815', 'tblTempUsageDetail_20' ) start [2025-04-22 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966815', 'tblTempUsageDetail_20' ) end [2025-04-22 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:38:24] Production.INFO: ==27671== Releasing lock... [2025-04-22 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:38:24] Production.INFO: 63.25 MB #Memory Used# [2025-04-22 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:39:05 [end_date_ymd] => 2025-04-22 18:39:05 [RateCDR] => 1 ) [2025-04-22 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:39:05' and `end` < '2025-04-22 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-04-22 18:39:19] Production.INFO: count ==4702 [2025-04-22 18:39:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:39:05 - End Time 2025-04-22 18:39:05 [2025-04-22 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966819', 'tblTempUsageDetail_20' ) start [2025-04-22 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966819', 'tblTempUsageDetail_20' ) end [2025-04-22 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966819', 'tblTempVendorCDR_20' ) start [2025-04-22 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966819', 'tblTempVendorCDR_20' ) end [2025-04-22 18:39:21] Production.INFO: ProcessCDR(1,14966819,1,1,2) [2025-04-22 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966819', 'tblTempUsageDetail_20' ) start [2025-04-22 18:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966819', 'tblTempUsageDetail_20' ) end [2025-04-22 18:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:39:27] Production.INFO: ==27774== Releasing lock... [2025-04-22 18:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:39:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-22 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:40:05 [end_date_ymd] => 2025-04-22 18:40:05 [RateCDR] => 1 ) [2025-04-22 18: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-04-22 15:40:05' and `end` < '2025-04-22 18: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-04-22 18:40:19] Production.INFO: count ==4711 [2025-04-22 18:40:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:40:05 - End Time 2025-04-22 18:40:05 [2025-04-22 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966825', 'tblTempUsageDetail_20' ) start [2025-04-22 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966825', 'tblTempUsageDetail_20' ) end [2025-04-22 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966825', 'tblTempVendorCDR_20' ) start [2025-04-22 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966825', 'tblTempVendorCDR_20' ) end [2025-04-22 18:40:21] Production.INFO: ProcessCDR(1,14966825,1,1,2) [2025-04-22 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966825', 'tblTempUsageDetail_20' ) start [2025-04-22 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966825', 'tblTempUsageDetail_20' ) end [2025-04-22 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:40:24] Production.INFO: ==27880== Releasing lock... [2025-04-22 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:40:24] Production.INFO: 63.25 MB #Memory Used# [2025-04-22 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:41:05 [end_date_ymd] => 2025-04-22 18:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:41:05' and `end` < '2025-04-22 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-04-22 18:41:19] Production.INFO: count ==4652 [2025-04-22 18:41:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:41:05 - End Time 2025-04-22 18:41:05 [2025-04-22 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966831', 'tblTempUsageDetail_20' ) start [2025-04-22 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966831', 'tblTempUsageDetail_20' ) end [2025-04-22 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966831', 'tblTempVendorCDR_20' ) start [2025-04-22 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966831', 'tblTempVendorCDR_20' ) end [2025-04-22 18:41:21] Production.INFO: ProcessCDR(1,14966831,1,1,2) [2025-04-22 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966831', 'tblTempUsageDetail_20' ) start [2025-04-22 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966831', 'tblTempUsageDetail_20' ) end [2025-04-22 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:41:26] Production.INFO: ==27968== Releasing lock... [2025-04-22 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:41:26] Production.INFO: 63 MB #Memory Used# [2025-04-22 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:42:05 [end_date_ymd] => 2025-04-22 18:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:42:05' and `end` < '2025-04-22 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-04-22 18:42:18] Production.INFO: count ==4636 [2025-04-22 18:42:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:42:05 - End Time 2025-04-22 18:42:05 [2025-04-22 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966836', 'tblTempUsageDetail_20' ) start [2025-04-22 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966836', 'tblTempUsageDetail_20' ) end [2025-04-22 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966836', 'tblTempVendorCDR_20' ) start [2025-04-22 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966836', 'tblTempVendorCDR_20' ) end [2025-04-22 18:42:20] Production.INFO: ProcessCDR(1,14966836,1,1,2) [2025-04-22 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966836', 'tblTempUsageDetail_20' ) start [2025-04-22 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966836', 'tblTempUsageDetail_20' ) end [2025-04-22 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:42:25] Production.INFO: ==28043== Releasing lock... [2025-04-22 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:42:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-22 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:43:05 [end_date_ymd] => 2025-04-22 18:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:43:05' and `end` < '2025-04-22 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-04-22 18:43:19] Production.INFO: count ==4632 [2025-04-22 18:43:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:43:05 - End Time 2025-04-22 18:43:05 [2025-04-22 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966841', 'tblTempUsageDetail_20' ) start [2025-04-22 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966841', 'tblTempUsageDetail_20' ) end [2025-04-22 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966841', 'tblTempVendorCDR_20' ) start [2025-04-22 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966841', 'tblTempVendorCDR_20' ) end [2025-04-22 18:43:21] Production.INFO: ProcessCDR(1,14966841,1,1,2) [2025-04-22 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966841', 'tblTempUsageDetail_20' ) start [2025-04-22 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966841', 'tblTempUsageDetail_20' ) end [2025-04-22 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:43:25] Production.INFO: ==28117== Releasing lock... [2025-04-22 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:43:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-22 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:44:05 [end_date_ymd] => 2025-04-22 18:44:05 [RateCDR] => 1 ) [2025-04-22 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:44:05' and `end` < '2025-04-22 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:44:18] Production.INFO: count ==4626 [2025-04-22 18:44:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:44:05 - End Time 2025-04-22 18:44:05 [2025-04-22 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966846', 'tblTempUsageDetail_20' ) start [2025-04-22 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966846', 'tblTempUsageDetail_20' ) end [2025-04-22 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966846', 'tblTempVendorCDR_20' ) start [2025-04-22 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966846', 'tblTempVendorCDR_20' ) end [2025-04-22 18:44:20] Production.INFO: ProcessCDR(1,14966846,1,1,2) [2025-04-22 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966846', 'tblTempUsageDetail_20' ) start [2025-04-22 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966846', 'tblTempUsageDetail_20' ) end [2025-04-22 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:44:24] Production.INFO: ==28192== Releasing lock... [2025-04-22 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:44:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-22 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:45:05 [end_date_ymd] => 2025-04-22 18:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:45:05' and `end` < '2025-04-22 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-04-22 18:45:19] Production.INFO: count ==4606 [2025-04-22 18:45:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:45:05 - End Time 2025-04-22 18:45:05 [2025-04-22 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966851', 'tblTempUsageDetail_20' ) start [2025-04-22 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966851', 'tblTempUsageDetail_20' ) end [2025-04-22 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966851', 'tblTempVendorCDR_20' ) start [2025-04-22 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966851', 'tblTempVendorCDR_20' ) end [2025-04-22 18:45:21] Production.INFO: ProcessCDR(1,14966851,1,1,2) [2025-04-22 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966851', 'tblTempUsageDetail_20' ) start [2025-04-22 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966851', 'tblTempUsageDetail_20' ) end [2025-04-22 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:45:25] Production.INFO: ==28268== Releasing lock... [2025-04-22 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:45:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-22 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:46:06 [end_date_ymd] => 2025-04-22 18:46:06 [RateCDR] => 1 ) [2025-04-22 18:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:46:06' and `end` < '2025-04-22 18:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:46:19] Production.INFO: count ==4586 [2025-04-22 18:46:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:46:06 - End Time 2025-04-22 18:46:06 [2025-04-22 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966856', 'tblTempUsageDetail_20' ) start [2025-04-22 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966856', 'tblTempUsageDetail_20' ) end [2025-04-22 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966856', 'tblTempVendorCDR_20' ) start [2025-04-22 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966856', 'tblTempVendorCDR_20' ) end [2025-04-22 18:46:22] Production.INFO: ProcessCDR(1,14966856,1,1,2) [2025-04-22 18:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966856', 'tblTempUsageDetail_20' ) start [2025-04-22 18:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966856', 'tblTempUsageDetail_20' ) end [2025-04-22 18:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:46:27] Production.INFO: ==28347== Releasing lock... [2025-04-22 18:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:46:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-22 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:47:05 [end_date_ymd] => 2025-04-22 18:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:47:05' and `end` < '2025-04-22 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-04-22 18:47:19] Production.INFO: count ==4560 [2025-04-22 18:47:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:47:05 - End Time 2025-04-22 18:47:05 [2025-04-22 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966861', 'tblTempUsageDetail_20' ) start [2025-04-22 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966861', 'tblTempUsageDetail_20' ) end [2025-04-22 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966861', 'tblTempVendorCDR_20' ) start [2025-04-22 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966861', 'tblTempVendorCDR_20' ) end [2025-04-22 18:47:21] Production.INFO: ProcessCDR(1,14966861,1,1,2) [2025-04-22 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966861', 'tblTempUsageDetail_20' ) start [2025-04-22 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966861', 'tblTempUsageDetail_20' ) end [2025-04-22 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:47:26] Production.INFO: ==28421== Releasing lock... [2025-04-22 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:47:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-22 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:48:06 [end_date_ymd] => 2025-04-22 18:48:06 [RateCDR] => 1 ) [2025-04-22 18:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:48:06' and `end` < '2025-04-22 18:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:48:19] Production.INFO: count ==4553 [2025-04-22 18:48:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:48:06 - End Time 2025-04-22 18:48:06 [2025-04-22 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966866', 'tblTempUsageDetail_20' ) start [2025-04-22 18:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966866', 'tblTempUsageDetail_20' ) end [2025-04-22 18:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966866', 'tblTempVendorCDR_20' ) start [2025-04-22 18:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966866', 'tblTempVendorCDR_20' ) end [2025-04-22 18:48:22] Production.INFO: ProcessCDR(1,14966866,1,1,2) [2025-04-22 18:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966866', 'tblTempUsageDetail_20' ) start [2025-04-22 18:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966866', 'tblTempUsageDetail_20' ) end [2025-04-22 18:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:48:27] Production.INFO: ==28506== Releasing lock... [2025-04-22 18:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:48:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-22 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:49:05 [end_date_ymd] => 2025-04-22 18:49:05 [RateCDR] => 1 ) [2025-04-22 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:49:05' and `end` < '2025-04-22 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:49:18] Production.INFO: count ==4535 [2025-04-22 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:49:05 - End Time 2025-04-22 18:49:05 [2025-04-22 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966871', 'tblTempUsageDetail_20' ) start [2025-04-22 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966871', 'tblTempUsageDetail_20' ) end [2025-04-22 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966871', 'tblTempVendorCDR_20' ) start [2025-04-22 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966871', 'tblTempVendorCDR_20' ) end [2025-04-22 18:49:20] Production.INFO: ProcessCDR(1,14966871,1,1,2) [2025-04-22 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966871', 'tblTempUsageDetail_20' ) start [2025-04-22 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966871', 'tblTempUsageDetail_20' ) end [2025-04-22 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:49:24] Production.INFO: ==28579== Releasing lock... [2025-04-22 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:49:24] Production.INFO: 62 MB #Memory Used# [2025-04-22 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:50:06 [end_date_ymd] => 2025-04-22 18:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:50:06' and `end` < '2025-04-22 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-04-22 18:50:19] Production.INFO: count ==4528 [2025-04-22 18:50:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:50:06 - End Time 2025-04-22 18:50:06 [2025-04-22 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966876', 'tblTempUsageDetail_20' ) start [2025-04-22 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966876', 'tblTempUsageDetail_20' ) end [2025-04-22 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966876', 'tblTempVendorCDR_20' ) start [2025-04-22 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966876', 'tblTempVendorCDR_20' ) end [2025-04-22 18:50:21] Production.INFO: ProcessCDR(1,14966876,1,1,2) [2025-04-22 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966876', 'tblTempUsageDetail_20' ) start [2025-04-22 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966876', 'tblTempUsageDetail_20' ) end [2025-04-22 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:50:26] Production.INFO: ==28664== Releasing lock... [2025-04-22 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:50:26] Production.INFO: 62 MB #Memory Used# [2025-04-22 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:51:05 [end_date_ymd] => 2025-04-22 18:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:51:05' and `end` < '2025-04-22 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-04-22 18:51:18] Production.INFO: count ==4507 [2025-04-22 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:51:05 - End Time 2025-04-22 18:51:05 [2025-04-22 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966882', 'tblTempUsageDetail_20' ) start [2025-04-22 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966882', 'tblTempUsageDetail_20' ) end [2025-04-22 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966882', 'tblTempVendorCDR_20' ) start [2025-04-22 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966882', 'tblTempVendorCDR_20' ) end [2025-04-22 18:51:20] Production.INFO: ProcessCDR(1,14966882,1,1,2) [2025-04-22 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966882', 'tblTempUsageDetail_20' ) start [2025-04-22 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966882', 'tblTempUsageDetail_20' ) end [2025-04-22 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:51:23] Production.INFO: ==28742== Releasing lock... [2025-04-22 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:51:23] Production.INFO: 61.75 MB #Memory Used# [2025-04-22 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:52:05 [end_date_ymd] => 2025-04-22 18:52:05 [RateCDR] => 1 ) [2025-04-22 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:52:05' and `end` < '2025-04-22 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:52:19] Production.INFO: count ==4490 [2025-04-22 18:52:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:52:05 - End Time 2025-04-22 18:52:05 [2025-04-22 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966887', 'tblTempUsageDetail_20' ) start [2025-04-22 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966887', 'tblTempUsageDetail_20' ) end [2025-04-22 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966887', 'tblTempVendorCDR_20' ) start [2025-04-22 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966887', 'tblTempVendorCDR_20' ) end [2025-04-22 18:52:21] Production.INFO: ProcessCDR(1,14966887,1,1,2) [2025-04-22 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966887', 'tblTempUsageDetail_20' ) start [2025-04-22 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966887', 'tblTempUsageDetail_20' ) end [2025-04-22 18:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:52:26] Production.INFO: ==28855== Releasing lock... [2025-04-22 18:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:52:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-22 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:53:05 [end_date_ymd] => 2025-04-22 18:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:53:05' and `end` < '2025-04-22 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-04-22 18:53:18] Production.INFO: count ==4468 [2025-04-22 18:53:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:53:05 - End Time 2025-04-22 18:53:05 [2025-04-22 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966892', 'tblTempUsageDetail_20' ) start [2025-04-22 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966892', 'tblTempUsageDetail_20' ) end [2025-04-22 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966892', 'tblTempVendorCDR_20' ) start [2025-04-22 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966892', 'tblTempVendorCDR_20' ) end [2025-04-22 18:53:20] Production.INFO: ProcessCDR(1,14966892,1,1,2) [2025-04-22 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966892', 'tblTempUsageDetail_20' ) start [2025-04-22 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966892', 'tblTempUsageDetail_20' ) end [2025-04-22 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:53:25] Production.INFO: ==28927== Releasing lock... [2025-04-22 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:53:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-22 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:54:05 [end_date_ymd] => 2025-04-22 18:54:05 [RateCDR] => 1 ) [2025-04-22 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:54:05' and `end` < '2025-04-22 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:54:19] Production.INFO: count ==4472 [2025-04-22 18:54:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:54:05 - End Time 2025-04-22 18:54:05 [2025-04-22 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966897', 'tblTempUsageDetail_20' ) start [2025-04-22 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966897', 'tblTempUsageDetail_20' ) end [2025-04-22 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966897', 'tblTempVendorCDR_20' ) start [2025-04-22 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966897', 'tblTempVendorCDR_20' ) end [2025-04-22 18:54:21] Production.INFO: ProcessCDR(1,14966897,1,1,2) [2025-04-22 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966897', 'tblTempUsageDetail_20' ) start [2025-04-22 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966897', 'tblTempUsageDetail_20' ) end [2025-04-22 18:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:54:26] Production.INFO: ==29004== Releasing lock... [2025-04-22 18:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:54:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-22 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:55:05 [end_date_ymd] => 2025-04-22 18:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:55:05' and `end` < '2025-04-22 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-04-22 18:55:18] Production.INFO: count ==4461 [2025-04-22 18:55:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:55:05 - End Time 2025-04-22 18:55:05 [2025-04-22 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966902', 'tblTempUsageDetail_20' ) start [2025-04-22 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966902', 'tblTempUsageDetail_20' ) end [2025-04-22 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966902', 'tblTempVendorCDR_20' ) start [2025-04-22 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966902', 'tblTempVendorCDR_20' ) end [2025-04-22 18:55:20] Production.INFO: ProcessCDR(1,14966902,1,1,2) [2025-04-22 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966902', 'tblTempUsageDetail_20' ) start [2025-04-22 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966902', 'tblTempUsageDetail_20' ) end [2025-04-22 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:55:25] Production.INFO: ==29101== Releasing lock... [2025-04-22 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:55:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-22 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:56:05 [end_date_ymd] => 2025-04-22 18:56:05 [RateCDR] => 1 ) [2025-04-22 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:56:05' and `end` < '2025-04-22 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:56:19] Production.INFO: count ==4452 [2025-04-22 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:56:05 - End Time 2025-04-22 18:56:05 [2025-04-22 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966907', 'tblTempUsageDetail_20' ) start [2025-04-22 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966907', 'tblTempUsageDetail_20' ) end [2025-04-22 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966907', 'tblTempVendorCDR_20' ) start [2025-04-22 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966907', 'tblTempVendorCDR_20' ) end [2025-04-22 18:56:21] Production.INFO: ProcessCDR(1,14966907,1,1,2) [2025-04-22 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966907', 'tblTempUsageDetail_20' ) start [2025-04-22 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966907', 'tblTempUsageDetail_20' ) end [2025-04-22 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:56:26] Production.INFO: ==29174== Releasing lock... [2025-04-22 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:56:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-22 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:57:06 [end_date_ymd] => 2025-04-22 18:57:06 [RateCDR] => 1 ) [2025-04-22 18:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:57:06' and `end` < '2025-04-22 18:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:57:19] Production.INFO: count ==4437 [2025-04-22 18:57:21] Production.ERROR: pbx CDR StartTime 2025-04-22 15:57:06 - End Time 2025-04-22 18:57:06 [2025-04-22 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966912', 'tblTempUsageDetail_20' ) start [2025-04-22 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966912', 'tblTempUsageDetail_20' ) end [2025-04-22 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966912', 'tblTempVendorCDR_20' ) start [2025-04-22 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966912', 'tblTempVendorCDR_20' ) end [2025-04-22 18:57:21] Production.INFO: ProcessCDR(1,14966912,1,1,2) [2025-04-22 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966912', 'tblTempUsageDetail_20' ) start [2025-04-22 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966912', 'tblTempUsageDetail_20' ) end [2025-04-22 18:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:57:26] Production.INFO: ==29247== Releasing lock... [2025-04-22 18:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:57:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-22 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:58:04 [end_date_ymd] => 2025-04-22 18:58:04 [RateCDR] => 1 ) [2025-04-22 18:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 15:58:04' and `end` < '2025-04-22 18:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 18:58:18] Production.INFO: count ==4423 [2025-04-22 18:58:19] Production.ERROR: pbx CDR StartTime 2025-04-22 15:58:04 - End Time 2025-04-22 18:58:04 [2025-04-22 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966917', 'tblTempUsageDetail_20' ) start [2025-04-22 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966917', 'tblTempUsageDetail_20' ) end [2025-04-22 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966917', 'tblTempVendorCDR_20' ) start [2025-04-22 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966917', 'tblTempVendorCDR_20' ) end [2025-04-22 18:58:19] Production.INFO: ProcessCDR(1,14966917,1,1,2) [2025-04-22 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966917', 'tblTempUsageDetail_20' ) start [2025-04-22 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966917', 'tblTempUsageDetail_20' ) end [2025-04-22 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:58:24] Production.INFO: ==29320== Releasing lock... [2025-04-22 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:58:24] Production.INFO: 61.25 MB #Memory Used# [2025-04-22 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 15:59:05 [end_date_ymd] => 2025-04-22 18:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 15:59:05' and `end` < '2025-04-22 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-04-22 18:59:18] Production.INFO: count ==4407 [2025-04-22 18:59:20] Production.ERROR: pbx CDR StartTime 2025-04-22 15:59:05 - End Time 2025-04-22 18:59:05 [2025-04-22 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966922', 'tblTempUsageDetail_20' ) start [2025-04-22 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966922', 'tblTempUsageDetail_20' ) end [2025-04-22 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966922', 'tblTempVendorCDR_20' ) start [2025-04-22 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966922', 'tblTempVendorCDR_20' ) end [2025-04-22 18:59:20] Production.INFO: ProcessCDR(1,14966922,1,1,2) [2025-04-22 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966922', 'tblTempUsageDetail_20' ) start [2025-04-22 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966922', 'tblTempUsageDetail_20' ) end [2025-04-22 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 18:59:24] Production.INFO: ==29397== Releasing lock... [2025-04-22 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 18:59:24] Production.INFO: 61 MB #Memory Used# [2025-04-22 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:00:06 [end_date_ymd] => 2025-04-22 19:00:06 [RateCDR] => 1 ) [2025-04-22 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:00:06' and `end` < '2025-04-22 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:00:19] Production.INFO: count ==4385 [2025-04-22 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:00:06 - End Time 2025-04-22 19:00:06 [2025-04-22 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966927', 'tblTempUsageDetail_20' ) start [2025-04-22 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966927', 'tblTempUsageDetail_20' ) end [2025-04-22 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966927', 'tblTempVendorCDR_20' ) start [2025-04-22 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966927', 'tblTempVendorCDR_20' ) end [2025-04-22 19:00:21] Production.INFO: ProcessCDR(1,14966927,1,1,2) [2025-04-22 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966927', 'tblTempUsageDetail_20' ) start [2025-04-22 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966927', 'tblTempUsageDetail_20' ) end [2025-04-22 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:00:24] Production.INFO: ==29472== Releasing lock... [2025-04-22 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:00:24] Production.INFO: 61 MB #Memory Used# [2025-04-22 19:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:01:04 [end_date_ymd] => 2025-04-22 19:01:04 [RateCDR] => 1 ) [2025-04-22 19: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-04-22 16:01:04' and `end` < '2025-04-22 19: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-04-22 19:01:18] Production.INFO: count ==4291 [2025-04-22 19:01:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:01:04 - End Time 2025-04-22 19:01:04 [2025-04-22 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966933', 'tblTempUsageDetail_20' ) start [2025-04-22 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966933', 'tblTempUsageDetail_20' ) end [2025-04-22 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966933', 'tblTempVendorCDR_20' ) start [2025-04-22 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966933', 'tblTempVendorCDR_20' ) end [2025-04-22 19:01:20] Production.INFO: ProcessCDR(1,14966933,1,1,2) [2025-04-22 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966933', 'tblTempUsageDetail_20' ) start [2025-04-22 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966933', 'tblTempUsageDetail_20' ) end [2025-04-22 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:01:23] Production.INFO: ==29641== Releasing lock... [2025-04-22 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:01:23] Production.INFO: 60.25 MB #Memory Used# [2025-04-22 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:02:05 [end_date_ymd] => 2025-04-22 19:02:05 [RateCDR] => 1 ) [2025-04-22 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:02:05' and `end` < '2025-04-22 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:02:18] Production.INFO: count ==4285 [2025-04-22 19:02:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:02:05 - End Time 2025-04-22 19:02:05 [2025-04-22 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966938', 'tblTempUsageDetail_20' ) start [2025-04-22 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966938', 'tblTempUsageDetail_20' ) end [2025-04-22 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966938', 'tblTempVendorCDR_20' ) start [2025-04-22 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966938', 'tblTempVendorCDR_20' ) end [2025-04-22 19:02:20] Production.INFO: ProcessCDR(1,14966938,1,1,2) [2025-04-22 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966938', 'tblTempUsageDetail_20' ) start [2025-04-22 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966938', 'tblTempUsageDetail_20' ) end [2025-04-22 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:02:23] Production.INFO: ==29714== Releasing lock... [2025-04-22 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:02:23] Production.INFO: 60.25 MB #Memory Used# [2025-04-22 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:03:05 [end_date_ymd] => 2025-04-22 19:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:03:05' and `end` < '2025-04-22 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-04-22 19:03:19] Production.INFO: count ==4276 [2025-04-22 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:03:05 - End Time 2025-04-22 19:03:05 [2025-04-22 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966943', 'tblTempUsageDetail_20' ) start [2025-04-22 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966943', 'tblTempUsageDetail_20' ) end [2025-04-22 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966943', 'tblTempVendorCDR_20' ) start [2025-04-22 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966943', 'tblTempVendorCDR_20' ) end [2025-04-22 19:03:20] Production.INFO: ProcessCDR(1,14966943,1,1,2) [2025-04-22 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966943', 'tblTempUsageDetail_20' ) start [2025-04-22 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966943', 'tblTempUsageDetail_20' ) end [2025-04-22 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:03:24] Production.INFO: ==29790== Releasing lock... [2025-04-22 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:03:24] Production.INFO: 60 MB #Memory Used# [2025-04-22 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:04:05 [end_date_ymd] => 2025-04-22 19:04:05 [RateCDR] => 1 ) [2025-04-22 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:04:05' and `end` < '2025-04-22 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:04:19] Production.INFO: count ==4263 [2025-04-22 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:04:05 - End Time 2025-04-22 19:04:05 [2025-04-22 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966948', 'tblTempUsageDetail_20' ) start [2025-04-22 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966948', 'tblTempUsageDetail_20' ) end [2025-04-22 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966948', 'tblTempVendorCDR_20' ) start [2025-04-22 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966948', 'tblTempVendorCDR_20' ) end [2025-04-22 19:04:20] Production.INFO: ProcessCDR(1,14966948,1,1,2) [2025-04-22 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966948', 'tblTempUsageDetail_20' ) start [2025-04-22 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966948', 'tblTempUsageDetail_20' ) end [2025-04-22 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:04:24] Production.INFO: ==29862== Releasing lock... [2025-04-22 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:04:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-22 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:05:05 [end_date_ymd] => 2025-04-22 19:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:05:05' and `end` < '2025-04-22 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-04-22 19:05:19] Production.INFO: count ==4252 [2025-04-22 19:05:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:05:05 - End Time 2025-04-22 19:05:05 [2025-04-22 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966953', 'tblTempUsageDetail_20' ) start [2025-04-22 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966953', 'tblTempUsageDetail_20' ) end [2025-04-22 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966953', 'tblTempVendorCDR_20' ) start [2025-04-22 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966953', 'tblTempVendorCDR_20' ) end [2025-04-22 19:05:21] Production.INFO: ProcessCDR(1,14966953,1,1,2) [2025-04-22 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966953', 'tblTempUsageDetail_20' ) start [2025-04-22 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966953', 'tblTempUsageDetail_20' ) end [2025-04-22 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:05:24] Production.INFO: ==30017== Releasing lock... [2025-04-22 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:05:24] Production.INFO: 60 MB #Memory Used# [2025-04-22 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:06:05 [end_date_ymd] => 2025-04-22 19:06:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:06:05' and `end` < '2025-04-22 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-04-22 19:06:18] Production.INFO: count ==4219 [2025-04-22 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:06:05 - End Time 2025-04-22 19:06:05 [2025-04-22 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966958', 'tblTempUsageDetail_20' ) start [2025-04-22 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966958', 'tblTempUsageDetail_20' ) end [2025-04-22 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966958', 'tblTempVendorCDR_20' ) start [2025-04-22 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966958', 'tblTempVendorCDR_20' ) end [2025-04-22 19:06:20] Production.INFO: ProcessCDR(1,14966958,1,1,2) [2025-04-22 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966958', 'tblTempUsageDetail_20' ) start [2025-04-22 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966958', 'tblTempUsageDetail_20' ) end [2025-04-22 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:06:25] Production.INFO: ==30089== Releasing lock... [2025-04-22 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:06:25] Production.INFO: 59.75 MB #Memory Used# [2025-04-22 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:07:05 [end_date_ymd] => 2025-04-22 19:07:05 [RateCDR] => 1 ) [2025-04-22 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:07:05' and `end` < '2025-04-22 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:07:19] Production.INFO: count ==4210 [2025-04-22 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:07:05 - End Time 2025-04-22 19:07:05 [2025-04-22 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966963', 'tblTempUsageDetail_20' ) start [2025-04-22 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966963', 'tblTempUsageDetail_20' ) end [2025-04-22 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966963', 'tblTempVendorCDR_20' ) start [2025-04-22 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966963', 'tblTempVendorCDR_20' ) end [2025-04-22 19:07:21] Production.INFO: ProcessCDR(1,14966963,1,1,2) [2025-04-22 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966963', 'tblTempUsageDetail_20' ) start [2025-04-22 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966963', 'tblTempUsageDetail_20' ) end [2025-04-22 19:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:07:26] Production.INFO: ==30197== Releasing lock... [2025-04-22 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:07:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-22 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:08:05 [end_date_ymd] => 2025-04-22 19:08:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:08:05' and `end` < '2025-04-22 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-04-22 19:08:18] Production.INFO: count ==4205 [2025-04-22 19:08:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:08:05 - End Time 2025-04-22 19:08:05 [2025-04-22 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966968', 'tblTempUsageDetail_20' ) start [2025-04-22 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966968', 'tblTempUsageDetail_20' ) end [2025-04-22 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966968', 'tblTempVendorCDR_20' ) start [2025-04-22 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966968', 'tblTempVendorCDR_20' ) end [2025-04-22 19:08:20] Production.INFO: ProcessCDR(1,14966968,1,1,2) [2025-04-22 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966968', 'tblTempUsageDetail_20' ) start [2025-04-22 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966968', 'tblTempUsageDetail_20' ) end [2025-04-22 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:08:24] Production.INFO: ==30352== Releasing lock... [2025-04-22 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:08:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-22 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:09:05 [end_date_ymd] => 2025-04-22 19:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:09:05' and `end` < '2025-04-22 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-04-22 19:09:19] Production.INFO: count ==4194 [2025-04-22 19:09:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:09:05 - End Time 2025-04-22 19:09:05 [2025-04-22 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966973', 'tblTempUsageDetail_20' ) start [2025-04-22 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966973', 'tblTempUsageDetail_20' ) end [2025-04-22 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966973', 'tblTempVendorCDR_20' ) start [2025-04-22 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966973', 'tblTempVendorCDR_20' ) end [2025-04-22 19:09:20] Production.INFO: ProcessCDR(1,14966973,1,1,2) [2025-04-22 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966973', 'tblTempUsageDetail_20' ) start [2025-04-22 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966973', 'tblTempUsageDetail_20' ) end [2025-04-22 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:09:24] Production.INFO: ==30424== Releasing lock... [2025-04-22 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:09:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-22 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:10:06 [end_date_ymd] => 2025-04-22 19:10:06 [RateCDR] => 1 ) [2025-04-22 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:10:06' and `end` < '2025-04-22 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:10:19] Production.INFO: count ==4183 [2025-04-22 19:10:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:10:06 - End Time 2025-04-22 19:10:06 [2025-04-22 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966979', 'tblTempUsageDetail_20' ) start [2025-04-22 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966979', 'tblTempUsageDetail_20' ) end [2025-04-22 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966979', 'tblTempVendorCDR_20' ) start [2025-04-22 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966979', 'tblTempVendorCDR_20' ) end [2025-04-22 19:10:20] Production.INFO: ProcessCDR(1,14966979,1,1,2) [2025-04-22 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966979', 'tblTempUsageDetail_20' ) start [2025-04-22 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966979', 'tblTempUsageDetail_20' ) end [2025-04-22 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:10:24] Production.INFO: ==30499== Releasing lock... [2025-04-22 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:10:24] Production.INFO: 59.25 MB #Memory Used# [2025-04-22 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:11:05 [end_date_ymd] => 2025-04-22 19:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:11:05' and `end` < '2025-04-22 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-04-22 19:11:18] Production.INFO: count ==4085 [2025-04-22 19:11:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:11:05 - End Time 2025-04-22 19:11:05 [2025-04-22 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966984', 'tblTempUsageDetail_20' ) start [2025-04-22 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966984', 'tblTempUsageDetail_20' ) end [2025-04-22 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966984', 'tblTempVendorCDR_20' ) start [2025-04-22 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966984', 'tblTempVendorCDR_20' ) end [2025-04-22 19:11:20] Production.INFO: ProcessCDR(1,14966984,1,1,2) [2025-04-22 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966984', 'tblTempUsageDetail_20' ) start [2025-04-22 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966984', 'tblTempUsageDetail_20' ) end [2025-04-22 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:11:25] Production.INFO: ==30580== Releasing lock... [2025-04-22 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:11:25] Production.INFO: 58.5 MB #Memory Used# [2025-04-22 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:12:06 [end_date_ymd] => 2025-04-22 19:12:06 [RateCDR] => 1 ) [2025-04-22 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:12:06' and `end` < '2025-04-22 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:12:19] Production.INFO: count ==4067 [2025-04-22 19:12:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:12:06 - End Time 2025-04-22 19:12:06 [2025-04-22 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966989', 'tblTempUsageDetail_20' ) start [2025-04-22 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966989', 'tblTempUsageDetail_20' ) end [2025-04-22 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966989', 'tblTempVendorCDR_20' ) start [2025-04-22 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966989', 'tblTempVendorCDR_20' ) end [2025-04-22 19:12:21] Production.INFO: ProcessCDR(1,14966989,1,1,2) [2025-04-22 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966989', 'tblTempUsageDetail_20' ) start [2025-04-22 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966989', 'tblTempUsageDetail_20' ) end [2025-04-22 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:12:24] Production.INFO: ==30728== Releasing lock... [2025-04-22 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:12:24] Production.INFO: 58.5 MB #Memory Used# [2025-04-22 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:13:05 [end_date_ymd] => 2025-04-22 19:13:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:13:05' and `end` < '2025-04-22 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-04-22 19:13:19] Production.INFO: count ==4071 [2025-04-22 19:13:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:13:05 - End Time 2025-04-22 19:13:05 [2025-04-22 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966994', 'tblTempUsageDetail_20' ) start [2025-04-22 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966994', 'tblTempUsageDetail_20' ) end [2025-04-22 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966994', 'tblTempVendorCDR_20' ) start [2025-04-22 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966994', 'tblTempVendorCDR_20' ) end [2025-04-22 19:13:20] Production.INFO: ProcessCDR(1,14966994,1,1,2) [2025-04-22 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966994', 'tblTempUsageDetail_20' ) start [2025-04-22 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966994', 'tblTempUsageDetail_20' ) end [2025-04-22 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:13:25] Production.INFO: ==30807== Releasing lock... [2025-04-22 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:13:25] Production.INFO: 58.5 MB #Memory Used# [2025-04-22 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:14:06 [end_date_ymd] => 2025-04-22 19:14:06 [RateCDR] => 1 ) [2025-04-22 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:14:06' and `end` < '2025-04-22 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:14:19] Production.INFO: count ==4056 [2025-04-22 19:14:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:14:06 - End Time 2025-04-22 19:14:06 [2025-04-22 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966999', 'tblTempUsageDetail_20' ) start [2025-04-22 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14966999', 'tblTempUsageDetail_20' ) end [2025-04-22 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966999', 'tblTempVendorCDR_20' ) start [2025-04-22 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14966999', 'tblTempVendorCDR_20' ) end [2025-04-22 19:14:21] Production.INFO: ProcessCDR(1,14966999,1,1,2) [2025-04-22 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14966999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14966999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14966999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14966999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966999', 'tblTempUsageDetail_20' ) start [2025-04-22 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14966999', 'tblTempUsageDetail_20' ) end [2025-04-22 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:14:24] Production.INFO: ==30891== Releasing lock... [2025-04-22 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:14:24] Production.INFO: 58.25 MB #Memory Used# [2025-04-22 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:15:05 [end_date_ymd] => 2025-04-22 19:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:15:05' and `end` < '2025-04-22 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-04-22 19:15:18] Production.INFO: count ==4041 [2025-04-22 19:15:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:15:05 - End Time 2025-04-22 19:15:05 [2025-04-22 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967004', 'tblTempUsageDetail_20' ) start [2025-04-22 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967004', 'tblTempUsageDetail_20' ) end [2025-04-22 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967004', 'tblTempVendorCDR_20' ) start [2025-04-22 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967004', 'tblTempVendorCDR_20' ) end [2025-04-22 19:15:20] Production.INFO: ProcessCDR(1,14967004,1,1,2) [2025-04-22 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967004', 'tblTempUsageDetail_20' ) start [2025-04-22 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967004', 'tblTempUsageDetail_20' ) end [2025-04-22 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:15:25] Production.INFO: ==31045== Releasing lock... [2025-04-22 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:15:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-22 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:16:06 [end_date_ymd] => 2025-04-22 19:16:06 [RateCDR] => 1 ) [2025-04-22 19:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:16:06' and `end` < '2025-04-22 19:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:16:19] Production.INFO: count ==4025 [2025-04-22 19:16:21] Production.ERROR: pbx CDR StartTime 2025-04-22 16:16:06 - End Time 2025-04-22 19:16:06 [2025-04-22 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967009', 'tblTempUsageDetail_20' ) start [2025-04-22 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967009', 'tblTempUsageDetail_20' ) end [2025-04-22 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967009', 'tblTempVendorCDR_20' ) start [2025-04-22 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967009', 'tblTempVendorCDR_20' ) end [2025-04-22 19:16:21] Production.INFO: ProcessCDR(1,14967009,1,1,2) [2025-04-22 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967009', 'tblTempUsageDetail_20' ) start [2025-04-22 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967009', 'tblTempUsageDetail_20' ) end [2025-04-22 19:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:16:26] Production.INFO: ==31134== Releasing lock... [2025-04-22 19:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:16:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-22 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:17:05 [end_date_ymd] => 2025-04-22 19:17:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:17:05' and `end` < '2025-04-22 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-04-22 19:17:18] Production.INFO: count ==4024 [2025-04-22 19:17:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:17:05 - End Time 2025-04-22 19:17:05 [2025-04-22 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967014', 'tblTempUsageDetail_20' ) start [2025-04-22 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967014', 'tblTempUsageDetail_20' ) end [2025-04-22 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967014', 'tblTempVendorCDR_20' ) start [2025-04-22 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967014', 'tblTempVendorCDR_20' ) end [2025-04-22 19:17:19] Production.INFO: ProcessCDR(1,14967014,1,1,2) [2025-04-22 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967014', 'tblTempUsageDetail_20' ) start [2025-04-22 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967014', 'tblTempUsageDetail_20' ) end [2025-04-22 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:17:24] Production.INFO: ==31217== Releasing lock... [2025-04-22 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:17:24] Production.INFO: 58.25 MB #Memory Used# [2025-04-22 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:18:05 [end_date_ymd] => 2025-04-22 19:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:18:05' and `end` < '2025-04-22 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-04-22 19:18:18] Production.INFO: count ==4028 [2025-04-22 19:18:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:18:05 - End Time 2025-04-22 19:18:05 [2025-04-22 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967019', 'tblTempUsageDetail_20' ) start [2025-04-22 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967019', 'tblTempUsageDetail_20' ) end [2025-04-22 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967019', 'tblTempVendorCDR_20' ) start [2025-04-22 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967019', 'tblTempVendorCDR_20' ) end [2025-04-22 19:18:20] Production.INFO: ProcessCDR(1,14967019,1,1,2) [2025-04-22 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967019', 'tblTempUsageDetail_20' ) start [2025-04-22 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967019', 'tblTempUsageDetail_20' ) end [2025-04-22 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:18:25] Production.INFO: ==31298== Releasing lock... [2025-04-22 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:18:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-22 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:19:05 [end_date_ymd] => 2025-04-22 19:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:19:05' and `end` < '2025-04-22 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-04-22 19:19:18] Production.INFO: count ==4007 [2025-04-22 19:19:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:19:05 - End Time 2025-04-22 19:19:05 [2025-04-22 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967024', 'tblTempUsageDetail_20' ) start [2025-04-22 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967024', 'tblTempUsageDetail_20' ) end [2025-04-22 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967024', 'tblTempVendorCDR_20' ) start [2025-04-22 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967024', 'tblTempVendorCDR_20' ) end [2025-04-22 19:19:20] Production.INFO: ProcessCDR(1,14967024,1,1,2) [2025-04-22 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967024', 'tblTempUsageDetail_20' ) start [2025-04-22 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967024', 'tblTempUsageDetail_20' ) end [2025-04-22 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:19:23] Production.INFO: ==31375== Releasing lock... [2025-04-22 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:19:23] Production.INFO: 58 MB #Memory Used# [2025-04-22 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:20:06 [end_date_ymd] => 2025-04-22 19:20:06 [RateCDR] => 1 ) [2025-04-22 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:20:06' and `end` < '2025-04-22 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:20:19] Production.INFO: count ==3997 [2025-04-22 19:20:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:20:06 - End Time 2025-04-22 19:20:06 [2025-04-22 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967029', 'tblTempUsageDetail_20' ) start [2025-04-22 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967029', 'tblTempUsageDetail_20' ) end [2025-04-22 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967029', 'tblTempVendorCDR_20' ) start [2025-04-22 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967029', 'tblTempVendorCDR_20' ) end [2025-04-22 19:20:21] Production.INFO: ProcessCDR(1,14967029,1,1,2) [2025-04-22 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967029', 'tblTempUsageDetail_20' ) start [2025-04-22 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967029', 'tblTempUsageDetail_20' ) end [2025-04-22 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:20:26] Production.INFO: ==31454== Releasing lock... [2025-04-22 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:20:26] Production.INFO: 58 MB #Memory Used# [2025-04-22 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:21:05 [end_date_ymd] => 2025-04-22 19:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:21:05' and `end` < '2025-04-22 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-04-22 19:21:18] Production.INFO: count ==3914 [2025-04-22 19:21:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:21:05 - End Time 2025-04-22 19:21:05 [2025-04-22 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967035', 'tblTempUsageDetail_20' ) start [2025-04-22 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967035', 'tblTempUsageDetail_20' ) end [2025-04-22 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967035', 'tblTempVendorCDR_20' ) start [2025-04-22 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967035', 'tblTempVendorCDR_20' ) end [2025-04-22 19:21:20] Production.INFO: ProcessCDR(1,14967035,1,1,2) [2025-04-22 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967035', 'tblTempUsageDetail_20' ) start [2025-04-22 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967035', 'tblTempUsageDetail_20' ) end [2025-04-22 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:21:25] Production.INFO: ==31532== Releasing lock... [2025-04-22 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:21:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-22 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:22:05 [end_date_ymd] => 2025-04-22 19:22:05 [RateCDR] => 1 ) [2025-04-22 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:22:05' and `end` < '2025-04-22 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:22:18] Production.INFO: count ==3898 [2025-04-22 19:22:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:22:05 - End Time 2025-04-22 19:22:05 [2025-04-22 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967040', 'tblTempUsageDetail_20' ) start [2025-04-22 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967040', 'tblTempUsageDetail_20' ) end [2025-04-22 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967040', 'tblTempVendorCDR_20' ) start [2025-04-22 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967040', 'tblTempVendorCDR_20' ) end [2025-04-22 19:22:20] Production.INFO: ProcessCDR(1,14967040,1,1,2) [2025-04-22 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967040', 'tblTempUsageDetail_20' ) start [2025-04-22 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967040', 'tblTempUsageDetail_20' ) end [2025-04-22 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:22:25] Production.INFO: ==31649== Releasing lock... [2025-04-22 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:22:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-22 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:23:04 [end_date_ymd] => 2025-04-22 19:23:04 [RateCDR] => 1 ) [2025-04-22 19:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:23:04' and `end` < '2025-04-22 19:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:23:18] Production.INFO: count ==3895 [2025-04-22 19:23:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:23:04 - End Time 2025-04-22 19:23:04 [2025-04-22 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967045', 'tblTempUsageDetail_20' ) start [2025-04-22 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967045', 'tblTempUsageDetail_20' ) end [2025-04-22 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967045', 'tblTempVendorCDR_20' ) start [2025-04-22 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967045', 'tblTempVendorCDR_20' ) end [2025-04-22 19:23:19] Production.INFO: ProcessCDR(1,14967045,1,1,2) [2025-04-22 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967045', 'tblTempUsageDetail_20' ) start [2025-04-22 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967045', 'tblTempUsageDetail_20' ) end [2025-04-22 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:23:24] Production.INFO: ==31729== Releasing lock... [2025-04-22 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:23:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-22 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:24:05 [end_date_ymd] => 2025-04-22 19:24:05 [RateCDR] => 1 ) [2025-04-22 19: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-04-22 16:24:05' and `end` < '2025-04-22 19: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-04-22 19:24:18] Production.INFO: count ==3885 [2025-04-22 19:24:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:24:05 - End Time 2025-04-22 19:24:05 [2025-04-22 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967050', 'tblTempUsageDetail_20' ) start [2025-04-22 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967050', 'tblTempUsageDetail_20' ) end [2025-04-22 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967050', 'tblTempVendorCDR_20' ) start [2025-04-22 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967050', 'tblTempVendorCDR_20' ) end [2025-04-22 19:24:20] Production.INFO: ProcessCDR(1,14967050,1,1,2) [2025-04-22 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967050', 'tblTempUsageDetail_20' ) start [2025-04-22 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967050', 'tblTempUsageDetail_20' ) end [2025-04-22 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:24:25] Production.INFO: ==31811== Releasing lock... [2025-04-22 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:24:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-22 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:25:06 [end_date_ymd] => 2025-04-22 19:25:06 [RateCDR] => 1 ) [2025-04-22 19: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-04-22 16:25:06' and `end` < '2025-04-22 19: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-04-22 19:25:19] Production.INFO: count ==3855 [2025-04-22 19:25:21] Production.ERROR: pbx CDR StartTime 2025-04-22 16:25:06 - End Time 2025-04-22 19:25:06 [2025-04-22 19:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967055', 'tblTempUsageDetail_20' ) start [2025-04-22 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967055', 'tblTempUsageDetail_20' ) end [2025-04-22 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967055', 'tblTempVendorCDR_20' ) start [2025-04-22 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967055', 'tblTempVendorCDR_20' ) end [2025-04-22 19:25:21] Production.INFO: ProcessCDR(1,14967055,1,1,2) [2025-04-22 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967055', 'tblTempUsageDetail_20' ) start [2025-04-22 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967055', 'tblTempUsageDetail_20' ) end [2025-04-22 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:25:26] Production.INFO: ==31889== Releasing lock... [2025-04-22 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:25:26] Production.INFO: 57 MB #Memory Used# [2025-04-22 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:26:05 [end_date_ymd] => 2025-04-22 19:26:05 [RateCDR] => 1 ) [2025-04-22 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:26:05' and `end` < '2025-04-22 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:26:18] Production.INFO: count ==3830 [2025-04-22 19:26:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:26:05 - End Time 2025-04-22 19:26:05 [2025-04-22 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967060', 'tblTempUsageDetail_20' ) start [2025-04-22 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967060', 'tblTempUsageDetail_20' ) end [2025-04-22 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967060', 'tblTempVendorCDR_20' ) start [2025-04-22 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967060', 'tblTempVendorCDR_20' ) end [2025-04-22 19:26:20] Production.INFO: ProcessCDR(1,14967060,1,1,2) [2025-04-22 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967060', 'tblTempUsageDetail_20' ) start [2025-04-22 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967060', 'tblTempUsageDetail_20' ) end [2025-04-22 19:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:26:25] Production.INFO: ==31962== Releasing lock... [2025-04-22 19:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:26:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-22 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:27:06 [end_date_ymd] => 2025-04-22 19:27:06 [RateCDR] => 1 ) [2025-04-22 19: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-04-22 16:27:06' and `end` < '2025-04-22 19: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-04-22 19:27:19] Production.INFO: count ==3815 [2025-04-22 19:27:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:27:06 - End Time 2025-04-22 19:27:06 [2025-04-22 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967065', 'tblTempUsageDetail_20' ) start [2025-04-22 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967065', 'tblTempUsageDetail_20' ) end [2025-04-22 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967065', 'tblTempVendorCDR_20' ) start [2025-04-22 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967065', 'tblTempVendorCDR_20' ) end [2025-04-22 19:27:21] Production.INFO: ProcessCDR(1,14967065,1,1,2) [2025-04-22 19:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967065', 'tblTempUsageDetail_20' ) start [2025-04-22 19:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967065', 'tblTempUsageDetail_20' ) end [2025-04-22 19:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:27:26] Production.INFO: ==32042== Releasing lock... [2025-04-22 19:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:27:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-22 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:28:05 [end_date_ymd] => 2025-04-22 19:28:05 [RateCDR] => 1 ) [2025-04-22 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:28:05' and `end` < '2025-04-22 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:28:18] Production.INFO: count ==3786 [2025-04-22 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:28:05 - End Time 2025-04-22 19:28:05 [2025-04-22 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967070', 'tblTempUsageDetail_20' ) start [2025-04-22 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967070', 'tblTempUsageDetail_20' ) end [2025-04-22 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967070', 'tblTempVendorCDR_20' ) start [2025-04-22 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967070', 'tblTempVendorCDR_20' ) end [2025-04-22 19:28:20] Production.INFO: ProcessCDR(1,14967070,1,1,2) [2025-04-22 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967070', 'tblTempUsageDetail_20' ) start [2025-04-22 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967070', 'tblTempUsageDetail_20' ) end [2025-04-22 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:28:25] Production.INFO: ==32129== Releasing lock... [2025-04-22 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:28:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-22 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:29:05 [end_date_ymd] => 2025-04-22 19:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:29:05' and `end` < '2025-04-22 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-04-22 19:29:18] Production.INFO: count ==3773 [2025-04-22 19:29:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:29:05 - End Time 2025-04-22 19:29:05 [2025-04-22 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967075', 'tblTempUsageDetail_20' ) start [2025-04-22 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967075', 'tblTempUsageDetail_20' ) end [2025-04-22 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967075', 'tblTempVendorCDR_20' ) start [2025-04-22 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967075', 'tblTempVendorCDR_20' ) end [2025-04-22 19:29:20] Production.INFO: ProcessCDR(1,14967075,1,1,2) [2025-04-22 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967075', 'tblTempUsageDetail_20' ) start [2025-04-22 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967075', 'tblTempUsageDetail_20' ) end [2025-04-22 19:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:29:25] Production.INFO: ==32208== Releasing lock... [2025-04-22 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:29:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-22 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:30:05 [end_date_ymd] => 2025-04-22 19:30:05 [RateCDR] => 1 ) [2025-04-22 19: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-04-22 16:30:05' and `end` < '2025-04-22 19: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-04-22 19:30:19] Production.INFO: count ==3750 [2025-04-22 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:30:05 - End Time 2025-04-22 19:30:05 [2025-04-22 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967080', 'tblTempUsageDetail_20' ) start [2025-04-22 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967080', 'tblTempUsageDetail_20' ) end [2025-04-22 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967080', 'tblTempVendorCDR_20' ) start [2025-04-22 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967080', 'tblTempVendorCDR_20' ) end [2025-04-22 19:30:20] Production.INFO: ProcessCDR(1,14967080,1,1,2) [2025-04-22 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967080', 'tblTempUsageDetail_20' ) start [2025-04-22 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967080', 'tblTempUsageDetail_20' ) end [2025-04-22 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:30:24] Production.INFO: ==32304== Releasing lock... [2025-04-22 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:30:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-22 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:31:06 [end_date_ymd] => 2025-04-22 19:31:06 [RateCDR] => 1 ) [2025-04-22 19: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-04-22 16:31:06' and `end` < '2025-04-22 19: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-04-22 19:31:19] Production.INFO: count ==3673 [2025-04-22 19:31:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:31:06 - End Time 2025-04-22 19:31:06 [2025-04-22 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967086', 'tblTempUsageDetail_20' ) start [2025-04-22 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967086', 'tblTempUsageDetail_20' ) end [2025-04-22 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967086', 'tblTempVendorCDR_20' ) start [2025-04-22 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967086', 'tblTempVendorCDR_20' ) end [2025-04-22 19:31:21] Production.INFO: ProcessCDR(1,14967086,1,1,2) [2025-04-22 19:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967086', 'tblTempUsageDetail_20' ) start [2025-04-22 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967086', 'tblTempUsageDetail_20' ) end [2025-04-22 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:31:24] Production.INFO: ==32431== Releasing lock... [2025-04-22 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:31:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-22 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:32:05 [end_date_ymd] => 2025-04-22 19:32:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:32:05' and `end` < '2025-04-22 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-04-22 19:32:18] Production.INFO: count ==3651 [2025-04-22 19:32:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:32:05 - End Time 2025-04-22 19:32:05 [2025-04-22 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967091', 'tblTempUsageDetail_20' ) start [2025-04-22 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967091', 'tblTempUsageDetail_20' ) end [2025-04-22 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967091', 'tblTempVendorCDR_20' ) start [2025-04-22 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967091', 'tblTempVendorCDR_20' ) end [2025-04-22 19:32:20] Production.INFO: ProcessCDR(1,14967091,1,1,2) [2025-04-22 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967091', 'tblTempUsageDetail_20' ) start [2025-04-22 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967091', 'tblTempUsageDetail_20' ) end [2025-04-22 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:32:23] Production.INFO: ==32545== Releasing lock... [2025-04-22 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:32:23] Production.INFO: 55.25 MB #Memory Used# [2025-04-22 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:33:05 [end_date_ymd] => 2025-04-22 19:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:33:05' and `end` < '2025-04-22 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-04-22 19:33:18] Production.INFO: count ==3645 [2025-04-22 19:33:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:33:05 - End Time 2025-04-22 19:33:05 [2025-04-22 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967096', 'tblTempUsageDetail_20' ) start [2025-04-22 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967096', 'tblTempUsageDetail_20' ) end [2025-04-22 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967096', 'tblTempVendorCDR_20' ) start [2025-04-22 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967096', 'tblTempVendorCDR_20' ) end [2025-04-22 19:33:20] Production.INFO: ProcessCDR(1,14967096,1,1,2) [2025-04-22 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967096', 'tblTempUsageDetail_20' ) start [2025-04-22 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967096', 'tblTempUsageDetail_20' ) end [2025-04-22 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:33:23] Production.INFO: ==32665== Releasing lock... [2025-04-22 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:33:23] Production.INFO: 55.25 MB #Memory Used# [2025-04-22 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:34:06 [end_date_ymd] => 2025-04-22 19:34:06 [RateCDR] => 1 ) [2025-04-22 19:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:34:06' and `end` < '2025-04-22 19:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:34:19] Production.INFO: count ==3633 [2025-04-22 19:34:21] Production.ERROR: pbx CDR StartTime 2025-04-22 16:34:06 - End Time 2025-04-22 19:34:06 [2025-04-22 19:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967101', 'tblTempUsageDetail_20' ) start [2025-04-22 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967101', 'tblTempUsageDetail_20' ) end [2025-04-22 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967101', 'tblTempVendorCDR_20' ) start [2025-04-22 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967101', 'tblTempVendorCDR_20' ) end [2025-04-22 19:34:21] Production.INFO: ProcessCDR(1,14967101,1,1,2) [2025-04-22 19:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967101', 'tblTempUsageDetail_20' ) start [2025-04-22 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967101', 'tblTempUsageDetail_20' ) end [2025-04-22 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:34:24] Production.INFO: ==318== Releasing lock... [2025-04-22 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:34:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-22 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:35:06 [end_date_ymd] => 2025-04-22 19:35:06 [RateCDR] => 1 ) [2025-04-22 19:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:35:06' and `end` < '2025-04-22 19:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:35:19] Production.INFO: count ==3615 [2025-04-22 19:35:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:35:06 - End Time 2025-04-22 19:35:06 [2025-04-22 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967106', 'tblTempUsageDetail_20' ) start [2025-04-22 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967106', 'tblTempUsageDetail_20' ) end [2025-04-22 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967106', 'tblTempVendorCDR_20' ) start [2025-04-22 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967106', 'tblTempVendorCDR_20' ) end [2025-04-22 19:35:20] Production.INFO: ProcessCDR(1,14967106,1,1,2) [2025-04-22 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967106', 'tblTempUsageDetail_20' ) start [2025-04-22 19:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967106', 'tblTempUsageDetail_20' ) end [2025-04-22 19:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:35:26] Production.INFO: ==437== Releasing lock... [2025-04-22 19:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:35:26] Production.INFO: 55 MB #Memory Used# [2025-04-22 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:36:05 [end_date_ymd] => 2025-04-22 19:36:05 [RateCDR] => 1 ) [2025-04-22 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:36:05' and `end` < '2025-04-22 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:36:19] Production.INFO: count ==3608 [2025-04-22 19:36:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:36:05 - End Time 2025-04-22 19:36:05 [2025-04-22 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967111', 'tblTempUsageDetail_20' ) start [2025-04-22 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967111', 'tblTempUsageDetail_20' ) end [2025-04-22 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967111', 'tblTempVendorCDR_20' ) start [2025-04-22 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967111', 'tblTempVendorCDR_20' ) end [2025-04-22 19:36:20] Production.INFO: ProcessCDR(1,14967111,1,1,2) [2025-04-22 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967111', 'tblTempUsageDetail_20' ) start [2025-04-22 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967111', 'tblTempUsageDetail_20' ) end [2025-04-22 19:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:36:25] Production.INFO: ==556== Releasing lock... [2025-04-22 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:36:25] Production.INFO: 56 MB #Memory Used# [2025-04-22 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:37:05 [end_date_ymd] => 2025-04-22 19:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:37:05' and `end` < '2025-04-22 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-04-22 19:37:18] Production.INFO: count ==3594 [2025-04-22 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:37:05 - End Time 2025-04-22 19:37:05 [2025-04-22 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967116', 'tblTempUsageDetail_20' ) start [2025-04-22 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967116', 'tblTempUsageDetail_20' ) end [2025-04-22 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967116', 'tblTempVendorCDR_20' ) start [2025-04-22 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967116', 'tblTempVendorCDR_20' ) end [2025-04-22 19:37:20] Production.INFO: ProcessCDR(1,14967116,1,1,2) [2025-04-22 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967116', 'tblTempUsageDetail_20' ) start [2025-04-22 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967116', 'tblTempUsageDetail_20' ) end [2025-04-22 19:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:37:25] Production.INFO: ==700== Releasing lock... [2025-04-22 19:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:37:25] Production.INFO: 55 MB #Memory Used# [2025-04-22 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:38:05 [end_date_ymd] => 2025-04-22 19:38:05 [RateCDR] => 1 ) [2025-04-22 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:38:05' and `end` < '2025-04-22 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:38:18] Production.INFO: count ==3583 [2025-04-22 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:38:05 - End Time 2025-04-22 19:38:05 [2025-04-22 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967121', 'tblTempUsageDetail_20' ) start [2025-04-22 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967121', 'tblTempUsageDetail_20' ) end [2025-04-22 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967121', 'tblTempVendorCDR_20' ) start [2025-04-22 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967121', 'tblTempVendorCDR_20' ) end [2025-04-22 19:38:20] Production.INFO: ProcessCDR(1,14967121,1,1,2) [2025-04-22 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967121', 'tblTempUsageDetail_20' ) start [2025-04-22 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967121', 'tblTempUsageDetail_20' ) end [2025-04-22 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:38:23] Production.INFO: ==862== Releasing lock... [2025-04-22 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:38:23] Production.INFO: 56 MB #Memory Used# [2025-04-22 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:39:05 [end_date_ymd] => 2025-04-22 19:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:39:05' and `end` < '2025-04-22 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-04-22 19:39:19] Production.INFO: count ==3557 [2025-04-22 19:39:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:39:05 - End Time 2025-04-22 19:39:05 [2025-04-22 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967126', 'tblTempUsageDetail_20' ) start [2025-04-22 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967126', 'tblTempUsageDetail_20' ) end [2025-04-22 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967126', 'tblTempVendorCDR_20' ) start [2025-04-22 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967126', 'tblTempVendorCDR_20' ) end [2025-04-22 19:39:20] Production.INFO: ProcessCDR(1,14967126,1,1,2) [2025-04-22 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967126', 'tblTempUsageDetail_20' ) start [2025-04-22 19:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967126', 'tblTempUsageDetail_20' ) end [2025-04-22 19:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:39:25] Production.INFO: ==981== Releasing lock... [2025-04-22 19:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:39:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-22 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:40:06 [end_date_ymd] => 2025-04-22 19:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:40:06' and `end` < '2025-04-22 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-04-22 19:40:19] Production.INFO: count ==3525 [2025-04-22 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:40:06 - End Time 2025-04-22 19:40:06 [2025-04-22 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967132', 'tblTempUsageDetail_20' ) start [2025-04-22 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967132', 'tblTempUsageDetail_20' ) end [2025-04-22 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967132', 'tblTempVendorCDR_20' ) start [2025-04-22 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967132', 'tblTempVendorCDR_20' ) end [2025-04-22 19:40:21] Production.INFO: ProcessCDR(1,14967132,1,1,2) [2025-04-22 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967132', 'tblTempUsageDetail_20' ) start [2025-04-22 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967132', 'tblTempUsageDetail_20' ) end [2025-04-22 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:40:24] Production.INFO: ==1082== Releasing lock... [2025-04-22 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:40:24] Production.INFO: 55 MB #Memory Used# [2025-04-22 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:41:04 [end_date_ymd] => 2025-04-22 19:41:04 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:41:04' and `end` < '2025-04-22 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-04-22 19:41:17] Production.INFO: count ==3420 [2025-04-22 19:41:18] Production.ERROR: pbx CDR StartTime 2025-04-22 16:41:04 - End Time 2025-04-22 19:41:04 [2025-04-22 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967137', 'tblTempUsageDetail_20' ) start [2025-04-22 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967137', 'tblTempUsageDetail_20' ) end [2025-04-22 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967137', 'tblTempVendorCDR_20' ) start [2025-04-22 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967137', 'tblTempVendorCDR_20' ) end [2025-04-22 19:41:19] Production.INFO: ProcessCDR(1,14967137,1,1,2) [2025-04-22 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967137', 'tblTempUsageDetail_20' ) start [2025-04-22 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967137', 'tblTempUsageDetail_20' ) end [2025-04-22 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:41:24] Production.INFO: ==1205== Releasing lock... [2025-04-22 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:41:24] Production.INFO: 53.5 MB #Memory Used# [2025-04-22 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:42:05 [end_date_ymd] => 2025-04-22 19:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:42:05' and `end` < '2025-04-22 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-04-22 19:42:18] Production.INFO: count ==3394 [2025-04-22 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:42:05 - End Time 2025-04-22 19:42:05 [2025-04-22 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967142', 'tblTempUsageDetail_20' ) start [2025-04-22 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967142', 'tblTempUsageDetail_20' ) end [2025-04-22 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967142', 'tblTempVendorCDR_20' ) start [2025-04-22 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967142', 'tblTempVendorCDR_20' ) end [2025-04-22 19:42:20] Production.INFO: ProcessCDR(1,14967142,1,1,2) [2025-04-22 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967142', 'tblTempUsageDetail_20' ) start [2025-04-22 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967142', 'tblTempUsageDetail_20' ) end [2025-04-22 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:42:24] Production.INFO: ==1331== Releasing lock... [2025-04-22 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:42:24] Production.INFO: 53.5 MB #Memory Used# [2025-04-22 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:43:05 [end_date_ymd] => 2025-04-22 19:43:05 [RateCDR] => 1 ) [2025-04-22 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:43:05' and `end` < '2025-04-22 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:43:18] Production.INFO: count ==3384 [2025-04-22 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:43:05 - End Time 2025-04-22 19:43:05 [2025-04-22 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967147', 'tblTempUsageDetail_20' ) start [2025-04-22 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967147', 'tblTempUsageDetail_20' ) end [2025-04-22 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967147', 'tblTempVendorCDR_20' ) start [2025-04-22 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967147', 'tblTempVendorCDR_20' ) end [2025-04-22 19:43:20] Production.INFO: ProcessCDR(1,14967147,1,1,2) [2025-04-22 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967147', 'tblTempUsageDetail_20' ) start [2025-04-22 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967147', 'tblTempUsageDetail_20' ) end [2025-04-22 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:43:24] Production.INFO: ==1444== Releasing lock... [2025-04-22 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:43:24] Production.INFO: 54 MB #Memory Used# [2025-04-22 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:44:05 [end_date_ymd] => 2025-04-22 19:44:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:44:05' and `end` < '2025-04-22 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-04-22 19:44:18] Production.INFO: count ==3371 [2025-04-22 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:44:05 - End Time 2025-04-22 19:44:05 [2025-04-22 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967152', 'tblTempUsageDetail_20' ) start [2025-04-22 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967152', 'tblTempUsageDetail_20' ) end [2025-04-22 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967152', 'tblTempVendorCDR_20' ) start [2025-04-22 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967152', 'tblTempVendorCDR_20' ) end [2025-04-22 19:44:19] Production.INFO: ProcessCDR(1,14967152,1,1,2) [2025-04-22 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967152', 'tblTempUsageDetail_20' ) start [2025-04-22 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967152', 'tblTempUsageDetail_20' ) end [2025-04-22 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:44:24] Production.INFO: ==1597== Releasing lock... [2025-04-22 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:44:24] Production.INFO: 54.25 MB #Memory Used# [2025-04-22 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:45:05 [end_date_ymd] => 2025-04-22 19:45:05 [RateCDR] => 1 ) [2025-04-22 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:45:05' and `end` < '2025-04-22 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-04-22 19:45:18] Production.INFO: count ==3363 [2025-04-22 19:45:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:45:05 - End Time 2025-04-22 19:45:05 [2025-04-22 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967157', 'tblTempUsageDetail_20' ) start [2025-04-22 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967157', 'tblTempUsageDetail_20' ) end [2025-04-22 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967157', 'tblTempVendorCDR_20' ) start [2025-04-22 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967157', 'tblTempVendorCDR_20' ) end [2025-04-22 19:45:20] Production.INFO: ProcessCDR(1,14967157,1,1,2) [2025-04-22 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967157', 'tblTempUsageDetail_20' ) start [2025-04-22 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967157', 'tblTempUsageDetail_20' ) end [2025-04-22 19:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:45:25] Production.INFO: ==1694== Releasing lock... [2025-04-22 19:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:45:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-22 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:46:05 [end_date_ymd] => 2025-04-22 19:46:05 [RateCDR] => 1 ) [2025-04-22 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:46:05' and `end` < '2025-04-22 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:46:18] Production.INFO: count ==3352 [2025-04-22 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:46:05 - End Time 2025-04-22 19:46:05 [2025-04-22 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967162', 'tblTempUsageDetail_20' ) start [2025-04-22 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967162', 'tblTempUsageDetail_20' ) end [2025-04-22 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967162', 'tblTempVendorCDR_20' ) start [2025-04-22 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967162', 'tblTempVendorCDR_20' ) end [2025-04-22 19:46:19] Production.INFO: ProcessCDR(1,14967162,1,1,2) [2025-04-22 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967162', 'tblTempUsageDetail_20' ) start [2025-04-22 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967162', 'tblTempUsageDetail_20' ) end [2025-04-22 19:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:46:25] Production.INFO: ==1771== Releasing lock... [2025-04-22 19:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:46:25] Production.INFO: 54 MB #Memory Used# [2025-04-22 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:47:05 [end_date_ymd] => 2025-04-22 19:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:47:05' and `end` < '2025-04-22 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-04-22 19:47:18] Production.INFO: count ==3344 [2025-04-22 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:47:05 - End Time 2025-04-22 19:47:05 [2025-04-22 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967167', 'tblTempUsageDetail_20' ) start [2025-04-22 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967167', 'tblTempUsageDetail_20' ) end [2025-04-22 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967167', 'tblTempVendorCDR_20' ) start [2025-04-22 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967167', 'tblTempVendorCDR_20' ) end [2025-04-22 19:47:19] Production.INFO: ProcessCDR(1,14967167,1,1,2) [2025-04-22 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967167', 'tblTempUsageDetail_20' ) start [2025-04-22 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967167', 'tblTempUsageDetail_20' ) end [2025-04-22 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:47:24] Production.INFO: ==1857== Releasing lock... [2025-04-22 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:47:24] Production.INFO: 53 MB #Memory Used# [2025-04-22 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:48:06 [end_date_ymd] => 2025-04-22 19:48:06 [RateCDR] => 1 ) [2025-04-22 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:48:06' and `end` < '2025-04-22 19:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:48:19] Production.INFO: count ==3333 [2025-04-22 19:48:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:48:06 - End Time 2025-04-22 19:48:06 [2025-04-22 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967172', 'tblTempUsageDetail_20' ) start [2025-04-22 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967172', 'tblTempUsageDetail_20' ) end [2025-04-22 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967172', 'tblTempVendorCDR_20' ) start [2025-04-22 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967172', 'tblTempVendorCDR_20' ) end [2025-04-22 19:48:20] Production.INFO: ProcessCDR(1,14967172,1,1,2) [2025-04-22 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967172', 'tblTempUsageDetail_20' ) start [2025-04-22 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967172', 'tblTempUsageDetail_20' ) end [2025-04-22 19:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:48:25] Production.INFO: ==1933== Releasing lock... [2025-04-22 19:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:48:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-22 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:49:05 [end_date_ymd] => 2025-04-22 19:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:49:05' and `end` < '2025-04-22 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-04-22 19:49:18] Production.INFO: count ==3319 [2025-04-22 19:49:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:49:05 - End Time 2025-04-22 19:49:05 [2025-04-22 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967177', 'tblTempUsageDetail_20' ) start [2025-04-22 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967177', 'tblTempUsageDetail_20' ) end [2025-04-22 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967177', 'tblTempVendorCDR_20' ) start [2025-04-22 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967177', 'tblTempVendorCDR_20' ) end [2025-04-22 19:49:20] Production.INFO: ProcessCDR(1,14967177,1,1,2) [2025-04-22 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967177', 'tblTempUsageDetail_20' ) start [2025-04-22 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967177', 'tblTempUsageDetail_20' ) end [2025-04-22 19:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:49:25] Production.INFO: ==2012== Releasing lock... [2025-04-22 19:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:49:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-22 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:50:06 [end_date_ymd] => 2025-04-22 19:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:50:06' and `end` < '2025-04-22 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-04-22 19:50:20] Production.INFO: count ==3312 [2025-04-22 19:50:21] Production.ERROR: pbx CDR StartTime 2025-04-22 16:50:06 - End Time 2025-04-22 19:50:06 [2025-04-22 19:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967183', 'tblTempUsageDetail_20' ) start [2025-04-22 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967183', 'tblTempUsageDetail_20' ) end [2025-04-22 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967183', 'tblTempVendorCDR_20' ) start [2025-04-22 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967183', 'tblTempVendorCDR_20' ) end [2025-04-22 19:50:21] Production.INFO: ProcessCDR(1,14967183,1,1,2) [2025-04-22 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967183', 'tblTempUsageDetail_20' ) start [2025-04-22 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967183', 'tblTempUsageDetail_20' ) end [2025-04-22 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:50:24] Production.INFO: ==2096== Releasing lock... [2025-04-22 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:50:24] Production.INFO: 52.75 MB #Memory Used# [2025-04-22 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:51:05 [end_date_ymd] => 2025-04-22 19:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:51:05' and `end` < '2025-04-22 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-04-22 19:51:18] Production.INFO: count ==3266 [2025-04-22 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:51:05 - End Time 2025-04-22 19:51:05 [2025-04-22 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967188', 'tblTempUsageDetail_20' ) start [2025-04-22 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967188', 'tblTempUsageDetail_20' ) end [2025-04-22 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967188', 'tblTempVendorCDR_20' ) start [2025-04-22 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967188', 'tblTempVendorCDR_20' ) end [2025-04-22 19:51:19] Production.INFO: ProcessCDR(1,14967188,1,1,2) [2025-04-22 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967188', 'tblTempUsageDetail_20' ) start [2025-04-22 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967188', 'tblTempUsageDetail_20' ) end [2025-04-22 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:51:24] Production.INFO: ==2175== Releasing lock... [2025-04-22 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:51:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-22 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:52:06 [end_date_ymd] => 2025-04-22 19:52:06 [RateCDR] => 1 ) [2025-04-22 19:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:52:06' and `end` < '2025-04-22 19:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:52:19] Production.INFO: count ==3265 [2025-04-22 19:52:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:52:06 - End Time 2025-04-22 19:52:06 [2025-04-22 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967193', 'tblTempUsageDetail_20' ) start [2025-04-22 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967193', 'tblTempUsageDetail_20' ) end [2025-04-22 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967193', 'tblTempVendorCDR_20' ) start [2025-04-22 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967193', 'tblTempVendorCDR_20' ) end [2025-04-22 19:52:20] Production.INFO: ProcessCDR(1,14967193,1,1,2) [2025-04-22 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967193', 'tblTempUsageDetail_20' ) start [2025-04-22 19:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967193', 'tblTempUsageDetail_20' ) end [2025-04-22 19:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:52:25] Production.INFO: ==2249== Releasing lock... [2025-04-22 19:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:52:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-22 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:53:04 [end_date_ymd] => 2025-04-22 19:53:04 [RateCDR] => 1 ) [2025-04-22 19: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-04-22 16:53:04' and `end` < '2025-04-22 19: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-04-22 19:53:17] Production.INFO: count ==3252 [2025-04-22 19:53:18] Production.ERROR: pbx CDR StartTime 2025-04-22 16:53:04 - End Time 2025-04-22 19:53:04 [2025-04-22 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967198', 'tblTempUsageDetail_20' ) start [2025-04-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967198', 'tblTempUsageDetail_20' ) end [2025-04-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967198', 'tblTempVendorCDR_20' ) start [2025-04-22 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967198', 'tblTempVendorCDR_20' ) end [2025-04-22 19:53:19] Production.INFO: ProcessCDR(1,14967198,1,1,2) [2025-04-22 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967198', 'tblTempUsageDetail_20' ) start [2025-04-22 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967198', 'tblTempUsageDetail_20' ) end [2025-04-22 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:53:23] Production.INFO: ==2361== Releasing lock... [2025-04-22 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:53:23] Production.INFO: 52.5 MB #Memory Used# [2025-04-22 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:54:05 [end_date_ymd] => 2025-04-22 19:54:05 [RateCDR] => 1 ) [2025-04-22 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:54:05' and `end` < '2025-04-22 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:54:18] Production.INFO: count ==3232 [2025-04-22 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:54:05 - End Time 2025-04-22 19:54:05 [2025-04-22 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967203', 'tblTempUsageDetail_20' ) start [2025-04-22 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967203', 'tblTempUsageDetail_20' ) end [2025-04-22 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967203', 'tblTempVendorCDR_20' ) start [2025-04-22 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967203', 'tblTempVendorCDR_20' ) end [2025-04-22 19:54:19] Production.INFO: ProcessCDR(1,14967203,1,1,2) [2025-04-22 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967203', 'tblTempUsageDetail_20' ) start [2025-04-22 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967203', 'tblTempUsageDetail_20' ) end [2025-04-22 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:54:24] Production.INFO: ==2431== Releasing lock... [2025-04-22 19:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:54:24] Production.INFO: 52.25 MB #Memory Used# [2025-04-22 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:55:06 [end_date_ymd] => 2025-04-22 19:55:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:55:06' and `end` < '2025-04-22 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-04-22 19:55:19] Production.INFO: count ==3207 [2025-04-22 19:55:20] Production.ERROR: pbx CDR StartTime 2025-04-22 16:55:06 - End Time 2025-04-22 19:55:06 [2025-04-22 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967208', 'tblTempUsageDetail_20' ) start [2025-04-22 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967208', 'tblTempUsageDetail_20' ) end [2025-04-22 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967208', 'tblTempVendorCDR_20' ) start [2025-04-22 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967208', 'tblTempVendorCDR_20' ) end [2025-04-22 19:55:20] Production.INFO: ProcessCDR(1,14967208,1,1,2) [2025-04-22 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967208', 'tblTempUsageDetail_20' ) start [2025-04-22 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967208', 'tblTempUsageDetail_20' ) end [2025-04-22 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:55:23] Production.INFO: ==2506== Releasing lock... [2025-04-22 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:55:23] Production.INFO: 52 MB #Memory Used# [2025-04-22 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:56:05 [end_date_ymd] => 2025-04-22 19:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:56:05' and `end` < '2025-04-22 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-04-22 19:56:18] Production.INFO: count ==3193 [2025-04-22 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:56:05 - End Time 2025-04-22 19:56:05 [2025-04-22 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967213', 'tblTempUsageDetail_20' ) start [2025-04-22 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967213', 'tblTempUsageDetail_20' ) end [2025-04-22 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967213', 'tblTempVendorCDR_20' ) start [2025-04-22 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967213', 'tblTempVendorCDR_20' ) end [2025-04-22 19:56:19] Production.INFO: ProcessCDR(1,14967213,1,1,2) [2025-04-22 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967213', 'tblTempUsageDetail_20' ) start [2025-04-22 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967213', 'tblTempUsageDetail_20' ) end [2025-04-22 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:56:24] Production.INFO: ==2576== Releasing lock... [2025-04-22 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:56:24] Production.INFO: 52 MB #Memory Used# [2025-04-22 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:57:05 [end_date_ymd] => 2025-04-22 19:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:57:05' and `end` < '2025-04-22 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-04-22 19:57:18] Production.INFO: count ==3168 [2025-04-22 19:57:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:57:05 - End Time 2025-04-22 19:57:05 [2025-04-22 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967218', 'tblTempUsageDetail_20' ) start [2025-04-22 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967218', 'tblTempUsageDetail_20' ) end [2025-04-22 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967218', 'tblTempVendorCDR_20' ) start [2025-04-22 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967218', 'tblTempVendorCDR_20' ) end [2025-04-22 19:57:19] Production.INFO: ProcessCDR(1,14967218,1,1,2) [2025-04-22 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967218', 'tblTempUsageDetail_20' ) start [2025-04-22 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967218', 'tblTempUsageDetail_20' ) end [2025-04-22 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:57:24] Production.INFO: ==2649== Releasing lock... [2025-04-22 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:57:24] Production.INFO: 51.75 MB #Memory Used# [2025-04-22 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:58:05 [end_date_ymd] => 2025-04-22 19:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 16:58:05' and `end` < '2025-04-22 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-04-22 19:58:18] Production.INFO: count ==3162 [2025-04-22 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-22 16:58:05 - End Time 2025-04-22 19:58:05 [2025-04-22 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967223', 'tblTempUsageDetail_20' ) start [2025-04-22 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967223', 'tblTempUsageDetail_20' ) end [2025-04-22 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967223', 'tblTempVendorCDR_20' ) start [2025-04-22 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967223', 'tblTempVendorCDR_20' ) end [2025-04-22 19:58:19] Production.INFO: ProcessCDR(1,14967223,1,1,2) [2025-04-22 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967223', 'tblTempUsageDetail_20' ) start [2025-04-22 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967223', 'tblTempUsageDetail_20' ) end [2025-04-22 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:58:24] Production.INFO: ==2728== Releasing lock... [2025-04-22 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:58:24] Production.INFO: 51.75 MB #Memory Used# [2025-04-22 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 16:59:05 [end_date_ymd] => 2025-04-22 19:59:05 [RateCDR] => 1 ) [2025-04-22 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 16:59:05' and `end` < '2025-04-22 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 19:59:17] Production.INFO: count ==3180 [2025-04-22 19:59:18] Production.ERROR: pbx CDR StartTime 2025-04-22 16:59:05 - End Time 2025-04-22 19:59:05 [2025-04-22 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967228', 'tblTempUsageDetail_20' ) start [2025-04-22 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967228', 'tblTempUsageDetail_20' ) end [2025-04-22 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967228', 'tblTempVendorCDR_20' ) start [2025-04-22 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967228', 'tblTempVendorCDR_20' ) end [2025-04-22 19:59:19] Production.INFO: ProcessCDR(1,14967228,1,1,2) [2025-04-22 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967228', 'tblTempUsageDetail_20' ) start [2025-04-22 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967228', 'tblTempUsageDetail_20' ) end [2025-04-22 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 19:59:22] Production.INFO: ==2798== Releasing lock... [2025-04-22 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 19:59:22] Production.INFO: 52 MB #Memory Used# [2025-04-22 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:00:06 [end_date_ymd] => 2025-04-22 20:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:00:06' and `end` < '2025-04-22 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-04-22 20:00:19] Production.INFO: count ==3152 [2025-04-22 20:00:20] Production.ERROR: pbx CDR StartTime 2025-04-22 17:00:06 - End Time 2025-04-22 20:00:06 [2025-04-22 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967234', 'tblTempUsageDetail_20' ) start [2025-04-22 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967234', 'tblTempUsageDetail_20' ) end [2025-04-22 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967234', 'tblTempVendorCDR_20' ) start [2025-04-22 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967234', 'tblTempVendorCDR_20' ) end [2025-04-22 20:00:20] Production.INFO: ProcessCDR(1,14967234,1,1,2) [2025-04-22 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967234', 'tblTempUsageDetail_20' ) start [2025-04-22 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967234', 'tblTempUsageDetail_20' ) end [2025-04-22 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:00:24] Production.INFO: ==2870== Releasing lock... [2025-04-22 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:00:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-22 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:01:05 [end_date_ymd] => 2025-04-22 20:01:05 [RateCDR] => 1 ) [2025-04-22 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:01:05' and `end` < '2025-04-22 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:01:18] Production.INFO: count ==3115 [2025-04-22 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:01:05 - End Time 2025-04-22 20:01:05 [2025-04-22 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967239', 'tblTempUsageDetail_20' ) start [2025-04-22 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967239', 'tblTempUsageDetail_20' ) end [2025-04-22 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967239', 'tblTempVendorCDR_20' ) start [2025-04-22 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967239', 'tblTempVendorCDR_20' ) end [2025-04-22 20:01:19] Production.INFO: ProcessCDR(1,14967239,1,1,2) [2025-04-22 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967239', 'tblTempUsageDetail_20' ) start [2025-04-22 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967239', 'tblTempUsageDetail_20' ) end [2025-04-22 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:01:24] Production.INFO: ==2999== Releasing lock... [2025-04-22 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:01:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-22 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:02:05 [end_date_ymd] => 2025-04-22 20:02:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:02:05' and `end` < '2025-04-22 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-04-22 20:02:19] Production.INFO: count ==3092 [2025-04-22 20:02:20] Production.ERROR: pbx CDR StartTime 2025-04-22 17:02:05 - End Time 2025-04-22 20:02:05 [2025-04-22 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967244', 'tblTempUsageDetail_20' ) start [2025-04-22 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967244', 'tblTempUsageDetail_20' ) end [2025-04-22 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967244', 'tblTempVendorCDR_20' ) start [2025-04-22 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967244', 'tblTempVendorCDR_20' ) end [2025-04-22 20:02:20] Production.INFO: ProcessCDR(1,14967244,1,1,2) [2025-04-22 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967244', 'tblTempUsageDetail_20' ) start [2025-04-22 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967244', 'tblTempUsageDetail_20' ) end [2025-04-22 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:02:23] Production.INFO: ==3078== Releasing lock... [2025-04-22 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:02:23] Production.INFO: 51 MB #Memory Used# [2025-04-22 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:03:05 [end_date_ymd] => 2025-04-22 20:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:03:05' and `end` < '2025-04-22 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-04-22 20:03:18] Production.INFO: count ==3081 [2025-04-22 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:03:05 - End Time 2025-04-22 20:03:05 [2025-04-22 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967249', 'tblTempUsageDetail_20' ) start [2025-04-22 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967249', 'tblTempUsageDetail_20' ) end [2025-04-22 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967249', 'tblTempVendorCDR_20' ) start [2025-04-22 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967249', 'tblTempVendorCDR_20' ) end [2025-04-22 20:03:19] Production.INFO: ProcessCDR(1,14967249,1,1,2) [2025-04-22 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967249', 'tblTempUsageDetail_20' ) start [2025-04-22 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967249', 'tblTempUsageDetail_20' ) end [2025-04-22 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:03:24] Production.INFO: ==3152== Releasing lock... [2025-04-22 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:03:24] Production.INFO: 51 MB #Memory Used# [2025-04-22 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:04:05 [end_date_ymd] => 2025-04-22 20:04:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:04:05' and `end` < '2025-04-22 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-04-22 20:04:18] Production.INFO: count ==3061 [2025-04-22 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:04:05 - End Time 2025-04-22 20:04:05 [2025-04-22 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967254', 'tblTempUsageDetail_20' ) start [2025-04-22 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967254', 'tblTempUsageDetail_20' ) end [2025-04-22 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967254', 'tblTempVendorCDR_20' ) start [2025-04-22 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967254', 'tblTempVendorCDR_20' ) end [2025-04-22 20:04:19] Production.INFO: ProcessCDR(1,14967254,1,1,2) [2025-04-22 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967254', 'tblTempUsageDetail_20' ) start [2025-04-22 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967254', 'tblTempUsageDetail_20' ) end [2025-04-22 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:04:22] Production.INFO: ==3224== Releasing lock... [2025-04-22 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:04:22] Production.INFO: 50.75 MB #Memory Used# [2025-04-22 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:05:05 [end_date_ymd] => 2025-04-22 20:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:05:05' and `end` < '2025-04-22 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-04-22 20:05:18] Production.INFO: count ==3047 [2025-04-22 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:05:05 - End Time 2025-04-22 20:05:05 [2025-04-22 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967259', 'tblTempUsageDetail_20' ) start [2025-04-22 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967259', 'tblTempUsageDetail_20' ) end [2025-04-22 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967259', 'tblTempVendorCDR_20' ) start [2025-04-22 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967259', 'tblTempVendorCDR_20' ) end [2025-04-22 20:05:19] Production.INFO: ProcessCDR(1,14967259,1,1,2) [2025-04-22 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967259', 'tblTempUsageDetail_20' ) start [2025-04-22 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967259', 'tblTempUsageDetail_20' ) end [2025-04-22 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:05:23] Production.INFO: ==3296== Releasing lock... [2025-04-22 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:05:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-22 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:06:05 [end_date_ymd] => 2025-04-22 20:06:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:06:05' and `end` < '2025-04-22 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-04-22 20:06:18] Production.INFO: count ==3040 [2025-04-22 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:06:05 - End Time 2025-04-22 20:06:05 [2025-04-22 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967264', 'tblTempUsageDetail_20' ) start [2025-04-22 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967264', 'tblTempUsageDetail_20' ) end [2025-04-22 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967264', 'tblTempVendorCDR_20' ) start [2025-04-22 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967264', 'tblTempVendorCDR_20' ) end [2025-04-22 20:06:19] Production.INFO: ProcessCDR(1,14967264,1,1,2) [2025-04-22 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967264', 'tblTempUsageDetail_20' ) start [2025-04-22 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967264', 'tblTempUsageDetail_20' ) end [2025-04-22 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:06:23] Production.INFO: ==3366== Releasing lock... [2025-04-22 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:06:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-22 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:07:04 [end_date_ymd] => 2025-04-22 20:07:04 [RateCDR] => 1 ) [2025-04-22 20:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:07:04' and `end` < '2025-04-22 20:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:07:17] Production.INFO: count ==3030 [2025-04-22 20:07:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:07:04 - End Time 2025-04-22 20:07:04 [2025-04-22 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967269', 'tblTempUsageDetail_20' ) start [2025-04-22 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967269', 'tblTempUsageDetail_20' ) end [2025-04-22 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967269', 'tblTempVendorCDR_20' ) start [2025-04-22 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967269', 'tblTempVendorCDR_20' ) end [2025-04-22 20:07:19] Production.INFO: ProcessCDR(1,14967269,1,1,2) [2025-04-22 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967269', 'tblTempUsageDetail_20' ) start [2025-04-22 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967269', 'tblTempUsageDetail_20' ) end [2025-04-22 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:07:22] Production.INFO: ==3439== Releasing lock... [2025-04-22 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:07:22] Production.INFO: 50.75 MB #Memory Used# [2025-04-22 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:08:05 [end_date_ymd] => 2025-04-22 20:08:05 [RateCDR] => 1 ) [2025-04-22 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:08:05' and `end` < '2025-04-22 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:08:18] Production.INFO: count ==3026 [2025-04-22 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:08:05 - End Time 2025-04-22 20:08:05 [2025-04-22 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967274', 'tblTempUsageDetail_20' ) start [2025-04-22 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967274', 'tblTempUsageDetail_20' ) end [2025-04-22 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967274', 'tblTempVendorCDR_20' ) start [2025-04-22 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967274', 'tblTempVendorCDR_20' ) end [2025-04-22 20:08:20] Production.INFO: ProcessCDR(1,14967274,1,1,2) [2025-04-22 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967274', 'tblTempUsageDetail_20' ) start [2025-04-22 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967274', 'tblTempUsageDetail_20' ) end [2025-04-22 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:08:24] Production.INFO: ==3515== Releasing lock... [2025-04-22 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:08:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-22 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:09:05 [end_date_ymd] => 2025-04-22 20:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:09:05' and `end` < '2025-04-22 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-04-22 20:09:18] Production.INFO: count ==3017 [2025-04-22 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:09:05 - End Time 2025-04-22 20:09:05 [2025-04-22 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967279', 'tblTempUsageDetail_20' ) start [2025-04-22 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967279', 'tblTempUsageDetail_20' ) end [2025-04-22 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967279', 'tblTempVendorCDR_20' ) start [2025-04-22 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967279', 'tblTempVendorCDR_20' ) end [2025-04-22 20:09:19] Production.INFO: ProcessCDR(1,14967279,1,1,2) [2025-04-22 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967279', 'tblTempUsageDetail_20' ) start [2025-04-22 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967279', 'tblTempUsageDetail_20' ) end [2025-04-22 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:09:24] Production.INFO: ==3625== Releasing lock... [2025-04-22 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:09:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-22 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:10:06 [end_date_ymd] => 2025-04-22 20:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:10:06' and `end` < '2025-04-22 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-04-22 20:10:19] Production.INFO: count ==2998 [2025-04-22 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-22 17:10:06 - End Time 2025-04-22 20:10:06 [2025-04-22 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967285', 'tblTempUsageDetail_20' ) start [2025-04-22 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967285', 'tblTempUsageDetail_20' ) end [2025-04-22 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967285', 'tblTempVendorCDR_20' ) start [2025-04-22 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967285', 'tblTempVendorCDR_20' ) end [2025-04-22 20:10:20] Production.INFO: ProcessCDR(1,14967285,1,1,2) [2025-04-22 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967285', 'tblTempUsageDetail_20' ) start [2025-04-22 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967285', 'tblTempUsageDetail_20' ) end [2025-04-22 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:10:25] Production.INFO: ==3699== Releasing lock... [2025-04-22 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:10:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-22 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:11:05 [end_date_ymd] => 2025-04-22 20:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:11:05' and `end` < '2025-04-22 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-04-22 20:11:18] Production.INFO: count ==2917 [2025-04-22 20:11:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:11:05 - End Time 2025-04-22 20:11:05 [2025-04-22 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967290', 'tblTempUsageDetail_20' ) start [2025-04-22 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967290', 'tblTempUsageDetail_20' ) end [2025-04-22 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967290', 'tblTempVendorCDR_20' ) start [2025-04-22 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967290', 'tblTempVendorCDR_20' ) end [2025-04-22 20:11:19] Production.INFO: ProcessCDR(1,14967290,1,1,2) [2025-04-22 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967290', 'tblTempUsageDetail_20' ) start [2025-04-22 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967290', 'tblTempUsageDetail_20' ) end [2025-04-22 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:11:24] Production.INFO: ==3771== Releasing lock... [2025-04-22 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:11:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-22 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:12:06 [end_date_ymd] => 2025-04-22 20:12:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:12:06' and `end` < '2025-04-22 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-04-22 20:12:19] Production.INFO: count ==2900 [2025-04-22 20:12:20] Production.ERROR: pbx CDR StartTime 2025-04-22 17:12:06 - End Time 2025-04-22 20:12:06 [2025-04-22 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967295', 'tblTempUsageDetail_20' ) start [2025-04-22 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967295', 'tblTempUsageDetail_20' ) end [2025-04-22 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967295', 'tblTempVendorCDR_20' ) start [2025-04-22 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967295', 'tblTempVendorCDR_20' ) end [2025-04-22 20:12:20] Production.INFO: ProcessCDR(1,14967295,1,1,2) [2025-04-22 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967295', 'tblTempUsageDetail_20' ) start [2025-04-22 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967295', 'tblTempUsageDetail_20' ) end [2025-04-22 20:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:12:25] Production.INFO: ==3847== Releasing lock... [2025-04-22 20:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:12:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-22 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:13:05 [end_date_ymd] => 2025-04-22 20:13:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:13:05' and `end` < '2025-04-22 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-04-22 20:13:18] Production.INFO: count ==2893 [2025-04-22 20:13:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:13:05 - End Time 2025-04-22 20:13:05 [2025-04-22 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967300', 'tblTempUsageDetail_20' ) start [2025-04-22 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967300', 'tblTempUsageDetail_20' ) end [2025-04-22 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967300', 'tblTempVendorCDR_20' ) start [2025-04-22 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967300', 'tblTempVendorCDR_20' ) end [2025-04-22 20:13:19] Production.INFO: ProcessCDR(1,14967300,1,1,2) [2025-04-22 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967300', 'tblTempUsageDetail_20' ) start [2025-04-22 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967300', 'tblTempUsageDetail_20' ) end [2025-04-22 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:13:23] Production.INFO: ==3919== Releasing lock... [2025-04-22 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:13:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-22 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:14:05 [end_date_ymd] => 2025-04-22 20:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:14:05' and `end` < '2025-04-22 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-04-22 20:14:18] Production.INFO: count ==2885 [2025-04-22 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:14:05 - End Time 2025-04-22 20:14:05 [2025-04-22 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967305', 'tblTempUsageDetail_20' ) start [2025-04-22 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967305', 'tblTempUsageDetail_20' ) end [2025-04-22 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967305', 'tblTempVendorCDR_20' ) start [2025-04-22 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967305', 'tblTempVendorCDR_20' ) end [2025-04-22 20:14:19] Production.INFO: ProcessCDR(1,14967305,1,1,2) [2025-04-22 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967305', 'tblTempUsageDetail_20' ) start [2025-04-22 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967305', 'tblTempUsageDetail_20' ) end [2025-04-22 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:14:24] Production.INFO: ==3990== Releasing lock... [2025-04-22 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:14:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-22 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:15:05 [end_date_ymd] => 2025-04-22 20:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:15:05' and `end` < '2025-04-22 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-04-22 20:15:18] Production.INFO: count ==2883 [2025-04-22 20:15:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:15:05 - End Time 2025-04-22 20:15:05 [2025-04-22 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967310', 'tblTempUsageDetail_20' ) start [2025-04-22 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967310', 'tblTempUsageDetail_20' ) end [2025-04-22 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967310', 'tblTempVendorCDR_20' ) start [2025-04-22 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967310', 'tblTempVendorCDR_20' ) end [2025-04-22 20:15:19] Production.INFO: ProcessCDR(1,14967310,1,1,2) [2025-04-22 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967310', 'tblTempUsageDetail_20' ) start [2025-04-22 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967310', 'tblTempUsageDetail_20' ) end [2025-04-22 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:15:22] Production.INFO: ==4067== Releasing lock... [2025-04-22 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:15:22] Production.INFO: 49.5 MB #Memory Used# [2025-04-22 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:16:06 [end_date_ymd] => 2025-04-22 20:16:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:16:06' and `end` < '2025-04-22 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-04-22 20:16:18] Production.INFO: count ==2879 [2025-04-22 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:16:06 - End Time 2025-04-22 20:16:06 [2025-04-22 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967315', 'tblTempUsageDetail_20' ) start [2025-04-22 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967315', 'tblTempUsageDetail_20' ) end [2025-04-22 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967315', 'tblTempVendorCDR_20' ) start [2025-04-22 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967315', 'tblTempVendorCDR_20' ) end [2025-04-22 20:16:20] Production.INFO: ProcessCDR(1,14967315,1,1,2) [2025-04-22 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967315', 'tblTempUsageDetail_20' ) start [2025-04-22 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967315', 'tblTempUsageDetail_20' ) end [2025-04-22 20:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:16:25] Production.INFO: ==4143== Releasing lock... [2025-04-22 20:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:16:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-22 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:17:05 [end_date_ymd] => 2025-04-22 20:17:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:17:05' and `end` < '2025-04-22 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-04-22 20:17:18] Production.INFO: count ==2863 [2025-04-22 20:17:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:17:05 - End Time 2025-04-22 20:17:05 [2025-04-22 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967320', 'tblTempUsageDetail_20' ) start [2025-04-22 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967320', 'tblTempUsageDetail_20' ) end [2025-04-22 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967320', 'tblTempVendorCDR_20' ) start [2025-04-22 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967320', 'tblTempVendorCDR_20' ) end [2025-04-22 20:17:19] Production.INFO: ProcessCDR(1,14967320,1,1,2) [2025-04-22 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967320', 'tblTempUsageDetail_20' ) start [2025-04-22 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967320', 'tblTempUsageDetail_20' ) end [2025-04-22 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:17:22] Production.INFO: ==4213== Releasing lock... [2025-04-22 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:17:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-22 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:18:05 [end_date_ymd] => 2025-04-22 20:18:05 [RateCDR] => 1 ) [2025-04-22 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:18:05' and `end` < '2025-04-22 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:18:18] Production.INFO: count ==2863 [2025-04-22 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:18:05 - End Time 2025-04-22 20:18:05 [2025-04-22 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967325', 'tblTempUsageDetail_20' ) start [2025-04-22 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967325', 'tblTempUsageDetail_20' ) end [2025-04-22 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967325', 'tblTempVendorCDR_20' ) start [2025-04-22 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967325', 'tblTempVendorCDR_20' ) end [2025-04-22 20:18:19] Production.INFO: ProcessCDR(1,14967325,1,1,2) [2025-04-22 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967325', 'tblTempUsageDetail_20' ) start [2025-04-22 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967325', 'tblTempUsageDetail_20' ) end [2025-04-22 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:18:24] Production.INFO: ==4287== Releasing lock... [2025-04-22 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:18:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-22 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:19:05 [end_date_ymd] => 2025-04-22 20:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:19:05' and `end` < '2025-04-22 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-04-22 20:19:18] Production.INFO: count ==2860 [2025-04-22 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:19:05 - End Time 2025-04-22 20:19:05 [2025-04-22 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967330', 'tblTempUsageDetail_20' ) start [2025-04-22 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967330', 'tblTempUsageDetail_20' ) end [2025-04-22 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967330', 'tblTempVendorCDR_20' ) start [2025-04-22 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967330', 'tblTempVendorCDR_20' ) end [2025-04-22 20:19:19] Production.INFO: ProcessCDR(1,14967330,1,1,2) [2025-04-22 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967330', 'tblTempUsageDetail_20' ) start [2025-04-22 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967330', 'tblTempUsageDetail_20' ) end [2025-04-22 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:19:24] Production.INFO: ==4360== Releasing lock... [2025-04-22 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:19:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-22 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:20:05 [end_date_ymd] => 2025-04-22 20:20:05 [RateCDR] => 1 ) [2025-04-22 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:20:05' and `end` < '2025-04-22 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:20:18] Production.INFO: count ==2854 [2025-04-22 20:20:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:20:05 - End Time 2025-04-22 20:20:05 [2025-04-22 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967336', 'tblTempUsageDetail_20' ) start [2025-04-22 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967336', 'tblTempUsageDetail_20' ) end [2025-04-22 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967336', 'tblTempVendorCDR_20' ) start [2025-04-22 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967336', 'tblTempVendorCDR_20' ) end [2025-04-22 20:20:19] Production.INFO: ProcessCDR(1,14967336,1,1,2) [2025-04-22 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967336', 'tblTempUsageDetail_20' ) start [2025-04-22 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967336', 'tblTempUsageDetail_20' ) end [2025-04-22 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:20:23] Production.INFO: ==4432== Releasing lock... [2025-04-22 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:20:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-22 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:21:05 [end_date_ymd] => 2025-04-22 20:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:21:05' and `end` < '2025-04-22 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-04-22 20:21:18] Production.INFO: count ==2809 [2025-04-22 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:21:05 - End Time 2025-04-22 20:21:05 [2025-04-22 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967341', 'tblTempUsageDetail_20' ) start [2025-04-22 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967341', 'tblTempUsageDetail_20' ) end [2025-04-22 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967341', 'tblTempVendorCDR_20' ) start [2025-04-22 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967341', 'tblTempVendorCDR_20' ) end [2025-04-22 20:21:19] Production.INFO: ProcessCDR(1,14967341,1,1,2) [2025-04-22 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967341', 'tblTempUsageDetail_20' ) start [2025-04-22 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967341', 'tblTempUsageDetail_20' ) end [2025-04-22 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:21:23] Production.INFO: ==4507== Releasing lock... [2025-04-22 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:21:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-22 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:22:05 [end_date_ymd] => 2025-04-22 20:22:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:22:05' and `end` < '2025-04-22 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-04-22 20:22:18] Production.INFO: count ==2800 [2025-04-22 20:22:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:22:05 - End Time 2025-04-22 20:22:05 [2025-04-22 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967346', 'tblTempUsageDetail_20' ) start [2025-04-22 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967346', 'tblTempUsageDetail_20' ) end [2025-04-22 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967346', 'tblTempVendorCDR_20' ) start [2025-04-22 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967346', 'tblTempVendorCDR_20' ) end [2025-04-22 20:22:19] Production.INFO: ProcessCDR(1,14967346,1,1,2) [2025-04-22 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967346', 'tblTempUsageDetail_20' ) start [2025-04-22 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967346', 'tblTempUsageDetail_20' ) end [2025-04-22 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:22:22] Production.INFO: ==4588== Releasing lock... [2025-04-22 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:22:22] Production.INFO: 49 MB #Memory Used# [2025-04-22 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:23:05 [end_date_ymd] => 2025-04-22 20:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:23:05' and `end` < '2025-04-22 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-04-22 20:23:18] Production.INFO: count ==2785 [2025-04-22 20:23:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:23:05 - End Time 2025-04-22 20:23:05 [2025-04-22 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967351', 'tblTempUsageDetail_20' ) start [2025-04-22 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967351', 'tblTempUsageDetail_20' ) end [2025-04-22 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967351', 'tblTempVendorCDR_20' ) start [2025-04-22 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967351', 'tblTempVendorCDR_20' ) end [2025-04-22 20:23:19] Production.INFO: ProcessCDR(1,14967351,1,1,2) [2025-04-22 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967351', 'tblTempUsageDetail_20' ) start [2025-04-22 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967351', 'tblTempUsageDetail_20' ) end [2025-04-22 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:23:22] Production.INFO: ==4659== Releasing lock... [2025-04-22 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:23:22] Production.INFO: 49 MB #Memory Used# [2025-04-22 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:24:05 [end_date_ymd] => 2025-04-22 20:24:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:24:05' and `end` < '2025-04-22 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-04-22 20:24:18] Production.INFO: count ==2776 [2025-04-22 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:24:05 - End Time 2025-04-22 20:24:05 [2025-04-22 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967356', 'tblTempUsageDetail_20' ) start [2025-04-22 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967356', 'tblTempUsageDetail_20' ) end [2025-04-22 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967356', 'tblTempVendorCDR_20' ) start [2025-04-22 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967356', 'tblTempVendorCDR_20' ) end [2025-04-22 20:24:19] Production.INFO: ProcessCDR(1,14967356,1,1,2) [2025-04-22 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967356', 'tblTempUsageDetail_20' ) start [2025-04-22 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967356', 'tblTempUsageDetail_20' ) end [2025-04-22 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:24:22] Production.INFO: ==4767== Releasing lock... [2025-04-22 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:24:22] Production.INFO: 49 MB #Memory Used# [2025-04-22 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:25:05 [end_date_ymd] => 2025-04-22 20:25:05 [RateCDR] => 1 ) [2025-04-22 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:25:05' and `end` < '2025-04-22 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:25:18] Production.INFO: count ==2770 [2025-04-22 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:25:05 - End Time 2025-04-22 20:25:05 [2025-04-22 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967361', 'tblTempUsageDetail_20' ) start [2025-04-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967361', 'tblTempUsageDetail_20' ) end [2025-04-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967361', 'tblTempVendorCDR_20' ) start [2025-04-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967361', 'tblTempVendorCDR_20' ) end [2025-04-22 20:25:19] Production.INFO: ProcessCDR(1,14967361,1,1,2) [2025-04-22 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967361', 'tblTempUsageDetail_20' ) start [2025-04-22 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967361', 'tblTempUsageDetail_20' ) end [2025-04-22 20:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:25:24] Production.INFO: ==4851== Releasing lock... [2025-04-22 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:25:24] Production.INFO: 49 MB #Memory Used# [2025-04-22 20:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:26:04 [end_date_ymd] => 2025-04-22 20:26:04 [RateCDR] => 1 ) [2025-04-22 20: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-04-22 17:26:04' and `end` < '2025-04-22 20: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-04-22 20:26:17] Production.INFO: count ==2754 [2025-04-22 20:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:26:04 - End Time 2025-04-22 20:26:04 [2025-04-22 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967366', 'tblTempUsageDetail_20' ) start [2025-04-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967366', 'tblTempUsageDetail_20' ) end [2025-04-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967366', 'tblTempVendorCDR_20' ) start [2025-04-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967366', 'tblTempVendorCDR_20' ) end [2025-04-22 20:26:18] Production.INFO: ProcessCDR(1,14967366,1,1,2) [2025-04-22 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967366', 'tblTempUsageDetail_20' ) start [2025-04-22 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967366', 'tblTempUsageDetail_20' ) end [2025-04-22 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:26:22] Production.INFO: ==4923== Releasing lock... [2025-04-22 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:26:22] Production.INFO: 49 MB #Memory Used# [2025-04-22 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:27:05 [end_date_ymd] => 2025-04-22 20:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:27:05' and `end` < '2025-04-22 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-04-22 20:27:18] Production.INFO: count ==2753 [2025-04-22 20:27:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:27:05 - End Time 2025-04-22 20:27:05 [2025-04-22 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967371', 'tblTempUsageDetail_20' ) start [2025-04-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967371', 'tblTempUsageDetail_20' ) end [2025-04-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967371', 'tblTempVendorCDR_20' ) start [2025-04-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967371', 'tblTempVendorCDR_20' ) end [2025-04-22 20:27:18] Production.INFO: ProcessCDR(1,14967371,1,1,2) [2025-04-22 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967371', 'tblTempUsageDetail_20' ) start [2025-04-22 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967371', 'tblTempUsageDetail_20' ) end [2025-04-22 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:27:23] Production.INFO: ==4995== Releasing lock... [2025-04-22 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:27:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-22 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:28:06 [end_date_ymd] => 2025-04-22 20:28:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:28:06' and `end` < '2025-04-22 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-04-22 20:28:19] Production.INFO: count ==2747 [2025-04-22 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:28:06 - End Time 2025-04-22 20:28:06 [2025-04-22 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967376', 'tblTempUsageDetail_20' ) start [2025-04-22 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967376', 'tblTempUsageDetail_20' ) end [2025-04-22 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967376', 'tblTempVendorCDR_20' ) start [2025-04-22 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967376', 'tblTempVendorCDR_20' ) end [2025-04-22 20:28:20] Production.INFO: ProcessCDR(1,14967376,1,1,2) [2025-04-22 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967376', 'tblTempUsageDetail_20' ) start [2025-04-22 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967376', 'tblTempUsageDetail_20' ) end [2025-04-22 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:28:23] Production.INFO: ==5070== Releasing lock... [2025-04-22 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:28:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-22 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:29:05 [end_date_ymd] => 2025-04-22 20:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:29:05' and `end` < '2025-04-22 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-04-22 20:29:18] Production.INFO: count ==2741 [2025-04-22 20:29:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:29:05 - End Time 2025-04-22 20:29:05 [2025-04-22 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967381', 'tblTempUsageDetail_20' ) start [2025-04-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967381', 'tblTempUsageDetail_20' ) end [2025-04-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967381', 'tblTempVendorCDR_20' ) start [2025-04-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967381', 'tblTempVendorCDR_20' ) end [2025-04-22 20:29:19] Production.INFO: ProcessCDR(1,14967381,1,1,2) [2025-04-22 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967381', 'tblTempUsageDetail_20' ) start [2025-04-22 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967381', 'tblTempUsageDetail_20' ) end [2025-04-22 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:29:22] Production.INFO: ==5141== Releasing lock... [2025-04-22 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:29:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-22 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:30:06 [end_date_ymd] => 2025-04-22 20:30:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:30:06' and `end` < '2025-04-22 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-04-22 20:30:19] Production.INFO: count ==2733 [2025-04-22 20:30:20] Production.ERROR: pbx CDR StartTime 2025-04-22 17:30:06 - End Time 2025-04-22 20:30:06 [2025-04-22 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967387', 'tblTempUsageDetail_20' ) start [2025-04-22 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967387', 'tblTempUsageDetail_20' ) end [2025-04-22 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967387', 'tblTempVendorCDR_20' ) start [2025-04-22 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967387', 'tblTempVendorCDR_20' ) end [2025-04-22 20:30:20] Production.INFO: ProcessCDR(1,14967387,1,1,2) [2025-04-22 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967387', 'tblTempUsageDetail_20' ) start [2025-04-22 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967387', 'tblTempUsageDetail_20' ) end [2025-04-22 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:30:24] Production.INFO: ==5215== Releasing lock... [2025-04-22 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:30:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-22 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:31:05 [end_date_ymd] => 2025-04-22 20:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:31:05' and `end` < '2025-04-22 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-04-22 20:31:18] Production.INFO: count ==2649 [2025-04-22 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:31:05 - End Time 2025-04-22 20:31:05 [2025-04-22 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967392', 'tblTempUsageDetail_20' ) start [2025-04-22 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967392', 'tblTempUsageDetail_20' ) end [2025-04-22 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967392', 'tblTempVendorCDR_20' ) start [2025-04-22 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967392', 'tblTempVendorCDR_20' ) end [2025-04-22 20:31:19] Production.INFO: ProcessCDR(1,14967392,1,1,2) [2025-04-22 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967392', 'tblTempUsageDetail_20' ) start [2025-04-22 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967392', 'tblTempUsageDetail_20' ) end [2025-04-22 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:31:23] Production.INFO: ==5291== Releasing lock... [2025-04-22 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:31:23] Production.INFO: 48 MB #Memory Used# [2025-04-22 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:32:05 [end_date_ymd] => 2025-04-22 20:32:05 [RateCDR] => 1 ) [2025-04-22 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:32:05' and `end` < '2025-04-22 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:32:18] Production.INFO: count ==2636 [2025-04-22 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:32:05 - End Time 2025-04-22 20:32:05 [2025-04-22 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967397', 'tblTempUsageDetail_20' ) start [2025-04-22 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967397', 'tblTempUsageDetail_20' ) end [2025-04-22 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967397', 'tblTempVendorCDR_20' ) start [2025-04-22 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967397', 'tblTempVendorCDR_20' ) end [2025-04-22 20:32:19] Production.INFO: ProcessCDR(1,14967397,1,1,2) [2025-04-22 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967397', 'tblTempUsageDetail_20' ) start [2025-04-22 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967397', 'tblTempUsageDetail_20' ) end [2025-04-22 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:32:23] Production.INFO: ==5362== Releasing lock... [2025-04-22 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:32:23] Production.INFO: 48 MB #Memory Used# [2025-04-22 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:33:05 [end_date_ymd] => 2025-04-22 20:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:33:05' and `end` < '2025-04-22 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-04-22 20:33:18] Production.INFO: count ==2634 [2025-04-22 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:33:05 - End Time 2025-04-22 20:33:05 [2025-04-22 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967402', 'tblTempUsageDetail_20' ) start [2025-04-22 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967402', 'tblTempUsageDetail_20' ) end [2025-04-22 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967402', 'tblTempVendorCDR_20' ) start [2025-04-22 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967402', 'tblTempVendorCDR_20' ) end [2025-04-22 20:33:19] Production.INFO: ProcessCDR(1,14967402,1,1,2) [2025-04-22 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967402', 'tblTempUsageDetail_20' ) start [2025-04-22 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967402', 'tblTempUsageDetail_20' ) end [2025-04-22 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:33:23] Production.INFO: ==5433== Releasing lock... [2025-04-22 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:33:23] Production.INFO: 48 MB #Memory Used# [2025-04-22 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:34:05 [end_date_ymd] => 2025-04-22 20:34:05 [RateCDR] => 1 ) [2025-04-22 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:34:05' and `end` < '2025-04-22 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:34:18] Production.INFO: count ==2633 [2025-04-22 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:34:05 - End Time 2025-04-22 20:34:05 [2025-04-22 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967407', 'tblTempUsageDetail_20' ) start [2025-04-22 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967407', 'tblTempUsageDetail_20' ) end [2025-04-22 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967407', 'tblTempVendorCDR_20' ) start [2025-04-22 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967407', 'tblTempVendorCDR_20' ) end [2025-04-22 20:34:19] Production.INFO: ProcessCDR(1,14967407,1,1,2) [2025-04-22 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967407', 'tblTempUsageDetail_20' ) start [2025-04-22 20:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967407', 'tblTempUsageDetail_20' ) end [2025-04-22 20:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:34:25] Production.INFO: ==5505== Releasing lock... [2025-04-22 20:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:34:25] Production.INFO: 48 MB #Memory Used# [2025-04-22 20:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:35:04 [end_date_ymd] => 2025-04-22 20:35:04 [RateCDR] => 1 ) [2025-04-22 20:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:35:04' and `end` < '2025-04-22 20:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:35:17] Production.INFO: count ==2631 [2025-04-22 20:35:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:35:04 - End Time 2025-04-22 20:35:04 [2025-04-22 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967412', 'tblTempUsageDetail_20' ) start [2025-04-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967412', 'tblTempUsageDetail_20' ) end [2025-04-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967412', 'tblTempVendorCDR_20' ) start [2025-04-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967412', 'tblTempVendorCDR_20' ) end [2025-04-22 20:35:18] Production.INFO: ProcessCDR(1,14967412,1,1,2) [2025-04-22 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967412', 'tblTempUsageDetail_20' ) start [2025-04-22 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967412', 'tblTempUsageDetail_20' ) end [2025-04-22 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:35:22] Production.INFO: ==5576== Releasing lock... [2025-04-22 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:35:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-22 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:36:05 [end_date_ymd] => 2025-04-22 20:36:05 [RateCDR] => 1 ) [2025-04-22 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:36:05' and `end` < '2025-04-22 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:36:18] Production.INFO: count ==2606 [2025-04-22 20:36:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:36:05 - End Time 2025-04-22 20:36:05 [2025-04-22 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967417', 'tblTempUsageDetail_20' ) start [2025-04-22 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967417', 'tblTempUsageDetail_20' ) end [2025-04-22 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967417', 'tblTempVendorCDR_20' ) start [2025-04-22 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967417', 'tblTempVendorCDR_20' ) end [2025-04-22 20:36:19] Production.INFO: ProcessCDR(1,14967417,1,1,2) [2025-04-22 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967417', 'tblTempUsageDetail_20' ) start [2025-04-22 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967417', 'tblTempUsageDetail_20' ) end [2025-04-22 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:36:22] Production.INFO: ==5650== Releasing lock... [2025-04-22 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:36:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-22 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:37:06 [end_date_ymd] => 2025-04-22 20:37:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:37:06' and `end` < '2025-04-22 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-04-22 20:37:18] Production.INFO: count ==2598 [2025-04-22 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:37:06 - End Time 2025-04-22 20:37:06 [2025-04-22 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967422', 'tblTempUsageDetail_20' ) start [2025-04-22 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967422', 'tblTempUsageDetail_20' ) end [2025-04-22 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967422', 'tblTempVendorCDR_20' ) start [2025-04-22 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967422', 'tblTempVendorCDR_20' ) end [2025-04-22 20:37:19] Production.INFO: ProcessCDR(1,14967422,1,1,2) [2025-04-22 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967422', 'tblTempUsageDetail_20' ) start [2025-04-22 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967422', 'tblTempUsageDetail_20' ) end [2025-04-22 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:37:23] Production.INFO: ==5720== Releasing lock... [2025-04-22 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:37:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-22 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:38:05 [end_date_ymd] => 2025-04-22 20:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:38:05' and `end` < '2025-04-22 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-04-22 20:38:18] Production.INFO: count ==2596 [2025-04-22 20:38:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:38:05 - End Time 2025-04-22 20:38:05 [2025-04-22 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967427', 'tblTempUsageDetail_20' ) start [2025-04-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967427', 'tblTempUsageDetail_20' ) end [2025-04-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967427', 'tblTempVendorCDR_20' ) start [2025-04-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967427', 'tblTempVendorCDR_20' ) end [2025-04-22 20:38:18] Production.INFO: ProcessCDR(1,14967427,1,1,2) [2025-04-22 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967427', 'tblTempUsageDetail_20' ) start [2025-04-22 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967427', 'tblTempUsageDetail_20' ) end [2025-04-22 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:38:22] Production.INFO: ==5791== Releasing lock... [2025-04-22 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:38:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-22 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:39:05 [end_date_ymd] => 2025-04-22 20:39:05 [RateCDR] => 1 ) [2025-04-22 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:39:05' and `end` < '2025-04-22 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:39:18] Production.INFO: count ==2589 [2025-04-22 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:39:05 - End Time 2025-04-22 20:39:05 [2025-04-22 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967432', 'tblTempUsageDetail_20' ) start [2025-04-22 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967432', 'tblTempUsageDetail_20' ) end [2025-04-22 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967432', 'tblTempVendorCDR_20' ) start [2025-04-22 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967432', 'tblTempVendorCDR_20' ) end [2025-04-22 20:39:19] Production.INFO: ProcessCDR(1,14967432,1,1,2) [2025-04-22 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967432', 'tblTempUsageDetail_20' ) start [2025-04-22 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967432', 'tblTempUsageDetail_20' ) end [2025-04-22 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:39:24] Production.INFO: ==5867== Releasing lock... [2025-04-22 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:39:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-22 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:40:05 [end_date_ymd] => 2025-04-22 20:40:05 [RateCDR] => 1 ) [2025-04-22 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:40:05' and `end` < '2025-04-22 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:40:18] Production.INFO: count ==2579 [2025-04-22 20:40:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:40:05 - End Time 2025-04-22 20:40:05 [2025-04-22 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967438', 'tblTempUsageDetail_20' ) start [2025-04-22 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967438', 'tblTempUsageDetail_20' ) end [2025-04-22 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967438', 'tblTempVendorCDR_20' ) start [2025-04-22 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967438', 'tblTempVendorCDR_20' ) end [2025-04-22 20:40:19] Production.INFO: ProcessCDR(1,14967438,1,1,2) [2025-04-22 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967438', 'tblTempUsageDetail_20' ) start [2025-04-22 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967438', 'tblTempUsageDetail_20' ) end [2025-04-22 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:40:23] Production.INFO: ==5980== Releasing lock... [2025-04-22 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:40:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-22 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:41:05 [end_date_ymd] => 2025-04-22 20:41:05 [RateCDR] => 1 ) [2025-04-22 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:41:05' and `end` < '2025-04-22 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:41:18] Production.INFO: count ==2504 [2025-04-22 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:41:05 - End Time 2025-04-22 20:41:05 [2025-04-22 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967443', 'tblTempUsageDetail_20' ) start [2025-04-22 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967443', 'tblTempUsageDetail_20' ) end [2025-04-22 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967443', 'tblTempVendorCDR_20' ) start [2025-04-22 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967443', 'tblTempVendorCDR_20' ) end [2025-04-22 20:41:19] Production.INFO: ProcessCDR(1,14967443,1,1,2) [2025-04-22 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967443', 'tblTempUsageDetail_20' ) start [2025-04-22 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967443', 'tblTempUsageDetail_20' ) end [2025-04-22 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:41:22] Production.INFO: ==6053== Releasing lock... [2025-04-22 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:41:22] Production.INFO: 47 MB #Memory Used# [2025-04-22 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:42:05 [end_date_ymd] => 2025-04-22 20:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:42:05' and `end` < '2025-04-22 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-04-22 20:42:18] Production.INFO: count ==2505 [2025-04-22 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:42:05 - End Time 2025-04-22 20:42:05 [2025-04-22 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967448', 'tblTempUsageDetail_20' ) start [2025-04-22 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967448', 'tblTempUsageDetail_20' ) end [2025-04-22 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967448', 'tblTempVendorCDR_20' ) start [2025-04-22 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967448', 'tblTempVendorCDR_20' ) end [2025-04-22 20:42:19] Production.INFO: ProcessCDR(1,14967448,1,1,2) [2025-04-22 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967448', 'tblTempUsageDetail_20' ) start [2025-04-22 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967448', 'tblTempUsageDetail_20' ) end [2025-04-22 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:42:22] Production.INFO: ==6127== Releasing lock... [2025-04-22 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:42:22] Production.INFO: 47 MB #Memory Used# [2025-04-22 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:43:05 [end_date_ymd] => 2025-04-22 20:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:43:05' and `end` < '2025-04-22 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-04-22 20:43:17] Production.INFO: count ==2499 [2025-04-22 20:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:43:05 - End Time 2025-04-22 20:43:05 [2025-04-22 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967453', 'tblTempUsageDetail_20' ) start [2025-04-22 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967453', 'tblTempUsageDetail_20' ) end [2025-04-22 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967453', 'tblTempVendorCDR_20' ) start [2025-04-22 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967453', 'tblTempVendorCDR_20' ) end [2025-04-22 20:43:18] Production.INFO: ProcessCDR(1,14967453,1,1,2) [2025-04-22 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967453', 'tblTempUsageDetail_20' ) start [2025-04-22 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967453', 'tblTempUsageDetail_20' ) end [2025-04-22 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:43:22] Production.INFO: ==6201== Releasing lock... [2025-04-22 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:43:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-22 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:44:06 [end_date_ymd] => 2025-04-22 20:44:06 [RateCDR] => 1 ) [2025-04-22 20: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-04-22 17:44:06' and `end` < '2025-04-22 20: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-04-22 20:44:19] Production.INFO: count ==2488 [2025-04-22 20:44:20] Production.ERROR: pbx CDR StartTime 2025-04-22 17:44:06 - End Time 2025-04-22 20:44:06 [2025-04-22 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967458', 'tblTempUsageDetail_20' ) start [2025-04-22 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967458', 'tblTempUsageDetail_20' ) end [2025-04-22 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967458', 'tblTempVendorCDR_20' ) start [2025-04-22 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967458', 'tblTempVendorCDR_20' ) end [2025-04-22 20:44:20] Production.INFO: ProcessCDR(1,14967458,1,1,2) [2025-04-22 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967458', 'tblTempUsageDetail_20' ) start [2025-04-22 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967458', 'tblTempUsageDetail_20' ) end [2025-04-22 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:44:23] Production.INFO: ==6272== Releasing lock... [2025-04-22 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:44:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-22 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:45:05 [end_date_ymd] => 2025-04-22 20:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:45:05' and `end` < '2025-04-22 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-04-22 20:45:18] Production.INFO: count ==2473 [2025-04-22 20:45:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:45:05 - End Time 2025-04-22 20:45:05 [2025-04-22 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967463', 'tblTempUsageDetail_20' ) start [2025-04-22 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967463', 'tblTempUsageDetail_20' ) end [2025-04-22 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967463', 'tblTempVendorCDR_20' ) start [2025-04-22 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967463', 'tblTempVendorCDR_20' ) end [2025-04-22 20:45:19] Production.INFO: ProcessCDR(1,14967463,1,1,2) [2025-04-22 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967463', 'tblTempUsageDetail_20' ) start [2025-04-22 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967463', 'tblTempUsageDetail_20' ) end [2025-04-22 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:45:23] Production.INFO: ==6342== Releasing lock... [2025-04-22 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:45:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-22 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:46:06 [end_date_ymd] => 2025-04-22 20:46:06 [RateCDR] => 1 ) [2025-04-22 20: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-04-22 17:46:06' and `end` < '2025-04-22 20: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-04-22 20:46:18] Production.INFO: count ==2473 [2025-04-22 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:46:06 - End Time 2025-04-22 20:46:06 [2025-04-22 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967468', 'tblTempUsageDetail_20' ) start [2025-04-22 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967468', 'tblTempUsageDetail_20' ) end [2025-04-22 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967468', 'tblTempVendorCDR_20' ) start [2025-04-22 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967468', 'tblTempVendorCDR_20' ) end [2025-04-22 20:46:19] Production.INFO: ProcessCDR(1,14967468,1,1,2) [2025-04-22 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967468', 'tblTempUsageDetail_20' ) start [2025-04-22 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967468', 'tblTempUsageDetail_20' ) end [2025-04-22 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:46:23] Production.INFO: ==6417== Releasing lock... [2025-04-22 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:46:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-22 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:47:05 [end_date_ymd] => 2025-04-22 20:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:47:05' and `end` < '2025-04-22 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-04-22 20:47:17] Production.INFO: count ==2478 [2025-04-22 20:47:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:47:05 - End Time 2025-04-22 20:47:05 [2025-04-22 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967473', 'tblTempUsageDetail_20' ) start [2025-04-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967473', 'tblTempUsageDetail_20' ) end [2025-04-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967473', 'tblTempVendorCDR_20' ) start [2025-04-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967473', 'tblTempVendorCDR_20' ) end [2025-04-22 20:47:18] Production.INFO: ProcessCDR(1,14967473,1,1,2) [2025-04-22 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967473', 'tblTempUsageDetail_20' ) start [2025-04-22 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967473', 'tblTempUsageDetail_20' ) end [2025-04-22 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:47:22] Production.INFO: ==6490== Releasing lock... [2025-04-22 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:47:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-22 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:48:05 [end_date_ymd] => 2025-04-22 20:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:48:05' and `end` < '2025-04-22 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-04-22 20:48:18] Production.INFO: count ==2469 [2025-04-22 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:48:05 - End Time 2025-04-22 20:48:05 [2025-04-22 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967478', 'tblTempUsageDetail_20' ) start [2025-04-22 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967478', 'tblTempUsageDetail_20' ) end [2025-04-22 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967478', 'tblTempVendorCDR_20' ) start [2025-04-22 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967478', 'tblTempVendorCDR_20' ) end [2025-04-22 20:48:19] Production.INFO: ProcessCDR(1,14967478,1,1,2) [2025-04-22 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967478', 'tblTempUsageDetail_20' ) start [2025-04-22 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967478', 'tblTempUsageDetail_20' ) end [2025-04-22 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:48:24] Production.INFO: ==6569== Releasing lock... [2025-04-22 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:48:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-22 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:49:05 [end_date_ymd] => 2025-04-22 20:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:49:05' and `end` < '2025-04-22 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-04-22 20:49:18] Production.INFO: count ==2462 [2025-04-22 20:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:49:05 - End Time 2025-04-22 20:49:05 [2025-04-22 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967483', 'tblTempUsageDetail_20' ) start [2025-04-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967483', 'tblTempUsageDetail_20' ) end [2025-04-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967483', 'tblTempVendorCDR_20' ) start [2025-04-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967483', 'tblTempVendorCDR_20' ) end [2025-04-22 20:49:18] Production.INFO: ProcessCDR(1,14967483,1,1,2) [2025-04-22 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967483', 'tblTempUsageDetail_20' ) start [2025-04-22 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967483', 'tblTempUsageDetail_20' ) end [2025-04-22 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:49:23] Production.INFO: ==6643== Releasing lock... [2025-04-22 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:49:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-22 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:50:06 [end_date_ymd] => 2025-04-22 20:50:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:50:06' and `end` < '2025-04-22 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-04-22 20:50:19] Production.INFO: count ==2456 [2025-04-22 20:50:20] Production.ERROR: pbx CDR StartTime 2025-04-22 17:50:06 - End Time 2025-04-22 20:50:06 [2025-04-22 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967489', 'tblTempUsageDetail_20' ) start [2025-04-22 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967489', 'tblTempUsageDetail_20' ) end [2025-04-22 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967489', 'tblTempVendorCDR_20' ) start [2025-04-22 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967489', 'tblTempVendorCDR_20' ) end [2025-04-22 20:50:20] Production.INFO: ProcessCDR(1,14967489,1,1,2) [2025-04-22 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967489', 'tblTempUsageDetail_20' ) start [2025-04-22 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967489', 'tblTempUsageDetail_20' ) end [2025-04-22 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:50:25] Production.INFO: ==6717== Releasing lock... [2025-04-22 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:50:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-22 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:51:05 [end_date_ymd] => 2025-04-22 20:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:51:05' and `end` < '2025-04-22 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-04-22 20:51:18] Production.INFO: count ==2397 [2025-04-22 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:51:05 - End Time 2025-04-22 20:51:05 [2025-04-22 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967494', 'tblTempUsageDetail_20' ) start [2025-04-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967494', 'tblTempUsageDetail_20' ) end [2025-04-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967494', 'tblTempVendorCDR_20' ) start [2025-04-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967494', 'tblTempVendorCDR_20' ) end [2025-04-22 20:51:19] Production.INFO: ProcessCDR(1,14967494,1,1,2) [2025-04-22 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967494', 'tblTempUsageDetail_20' ) start [2025-04-22 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967494', 'tblTempUsageDetail_20' ) end [2025-04-22 20:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:51:24] Production.INFO: ==6789== Releasing lock... [2025-04-22 20:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:51:24] Production.INFO: 46 MB #Memory Used# [2025-04-22 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:52:05 [end_date_ymd] => 2025-04-22 20:52:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:52:05' and `end` < '2025-04-22 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-04-22 20:52:18] Production.INFO: count ==2392 [2025-04-22 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:52:05 - End Time 2025-04-22 20:52:05 [2025-04-22 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967499', 'tblTempUsageDetail_20' ) start [2025-04-22 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967499', 'tblTempUsageDetail_20' ) end [2025-04-22 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967499', 'tblTempVendorCDR_20' ) start [2025-04-22 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967499', 'tblTempVendorCDR_20' ) end [2025-04-22 20:52:19] Production.INFO: ProcessCDR(1,14967499,1,1,2) [2025-04-22 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967499', 'tblTempUsageDetail_20' ) start [2025-04-22 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967499', 'tblTempUsageDetail_20' ) end [2025-04-22 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:52:24] Production.INFO: ==6865== Releasing lock... [2025-04-22 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:52:24] Production.INFO: 46 MB #Memory Used# [2025-04-22 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:53:06 [end_date_ymd] => 2025-04-22 20:53:06 [RateCDR] => 1 ) [2025-04-22 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:53:06' and `end` < '2025-04-22 20:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:53:18] Production.INFO: count ==2381 [2025-04-22 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:53:06 - End Time 2025-04-22 20:53:06 [2025-04-22 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967504', 'tblTempUsageDetail_20' ) start [2025-04-22 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967504', 'tblTempUsageDetail_20' ) end [2025-04-22 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967504', 'tblTempVendorCDR_20' ) start [2025-04-22 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967504', 'tblTempVendorCDR_20' ) end [2025-04-22 20:53:19] Production.INFO: ProcessCDR(1,14967504,1,1,2) [2025-04-22 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967504', 'tblTempUsageDetail_20' ) start [2025-04-22 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967504', 'tblTempUsageDetail_20' ) end [2025-04-22 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:53:24] Production.INFO: ==6938== Releasing lock... [2025-04-22 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:53:24] Production.INFO: 46 MB #Memory Used# [2025-04-22 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:54:04 [end_date_ymd] => 2025-04-22 20:54:04 [RateCDR] => 1 ) [2025-04-22 20:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 17:54:04' and `end` < '2025-04-22 20:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 20:54:17] Production.INFO: count ==2380 [2025-04-22 20:54:18] Production.ERROR: pbx CDR StartTime 2025-04-22 17:54:04 - End Time 2025-04-22 20:54:04 [2025-04-22 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967509', 'tblTempUsageDetail_20' ) start [2025-04-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967509', 'tblTempUsageDetail_20' ) end [2025-04-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967509', 'tblTempVendorCDR_20' ) start [2025-04-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967509', 'tblTempVendorCDR_20' ) end [2025-04-22 20:54:18] Production.INFO: ProcessCDR(1,14967509,1,1,2) [2025-04-22 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967509', 'tblTempUsageDetail_20' ) start [2025-04-22 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967509', 'tblTempUsageDetail_20' ) end [2025-04-22 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:54:21] Production.INFO: ==7009== Releasing lock... [2025-04-22 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:54:21] Production.INFO: 46.25 MB #Memory Used# [2025-04-22 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:55:05 [end_date_ymd] => 2025-04-22 20:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:55:05' and `end` < '2025-04-22 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-04-22 20:55:18] Production.INFO: count ==2379 [2025-04-22 20:55:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:55:05 - End Time 2025-04-22 20:55:05 [2025-04-22 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967514', 'tblTempUsageDetail_20' ) start [2025-04-22 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967514', 'tblTempUsageDetail_20' ) end [2025-04-22 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967514', 'tblTempVendorCDR_20' ) start [2025-04-22 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967514', 'tblTempVendorCDR_20' ) end [2025-04-22 20:55:19] Production.INFO: ProcessCDR(1,14967514,1,1,2) [2025-04-22 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967514', 'tblTempUsageDetail_20' ) start [2025-04-22 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967514', 'tblTempUsageDetail_20' ) end [2025-04-22 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:55:23] Production.INFO: ==7118== Releasing lock... [2025-04-22 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:55:23] Production.INFO: 46 MB #Memory Used# [2025-04-22 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:56:05 [end_date_ymd] => 2025-04-22 20:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:56:05' and `end` < '2025-04-22 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-04-22 20:56:18] Production.INFO: count ==2368 [2025-04-22 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:56:05 - End Time 2025-04-22 20:56:05 [2025-04-22 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967519', 'tblTempUsageDetail_20' ) start [2025-04-22 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967519', 'tblTempUsageDetail_20' ) end [2025-04-22 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967519', 'tblTempVendorCDR_20' ) start [2025-04-22 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967519', 'tblTempVendorCDR_20' ) end [2025-04-22 20:56:19] Production.INFO: ProcessCDR(1,14967519,1,1,2) [2025-04-22 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967519', 'tblTempUsageDetail_20' ) start [2025-04-22 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967519', 'tblTempUsageDetail_20' ) end [2025-04-22 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:56:23] Production.INFO: ==7192== Releasing lock... [2025-04-22 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:56:23] Production.INFO: 46 MB #Memory Used# [2025-04-22 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:57:05 [end_date_ymd] => 2025-04-22 20:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:57:05' and `end` < '2025-04-22 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-04-22 20:57:18] Production.INFO: count ==2360 [2025-04-22 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:57:05 - End Time 2025-04-22 20:57:05 [2025-04-22 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967524', 'tblTempUsageDetail_20' ) start [2025-04-22 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967524', 'tblTempUsageDetail_20' ) end [2025-04-22 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967524', 'tblTempVendorCDR_20' ) start [2025-04-22 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967524', 'tblTempVendorCDR_20' ) end [2025-04-22 20:57:19] Production.INFO: ProcessCDR(1,14967524,1,1,2) [2025-04-22 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967524', 'tblTempUsageDetail_20' ) start [2025-04-22 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967524', 'tblTempUsageDetail_20' ) end [2025-04-22 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:57:23] Production.INFO: ==7264== Releasing lock... [2025-04-22 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:57:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-22 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:58:05 [end_date_ymd] => 2025-04-22 20:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 17:58:05' and `end` < '2025-04-22 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-04-22 20:58:18] Production.INFO: count ==2354 [2025-04-22 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:58:05 - End Time 2025-04-22 20:58:05 [2025-04-22 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967529', 'tblTempUsageDetail_20' ) start [2025-04-22 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967529', 'tblTempUsageDetail_20' ) end [2025-04-22 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967529', 'tblTempVendorCDR_20' ) start [2025-04-22 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967529', 'tblTempVendorCDR_20' ) end [2025-04-22 20:58:19] Production.INFO: ProcessCDR(1,14967529,1,1,2) [2025-04-22 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967529', 'tblTempUsageDetail_20' ) start [2025-04-22 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967529', 'tblTempUsageDetail_20' ) end [2025-04-22 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:58:23] Production.INFO: ==7336== Releasing lock... [2025-04-22 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:58:23] Production.INFO: 46 MB #Memory Used# [2025-04-22 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 17:59:06 [end_date_ymd] => 2025-04-22 20:59:06 [RateCDR] => 1 ) [2025-04-22 20: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-04-22 17:59:06' and `end` < '2025-04-22 20: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-04-22 20:59:19] Production.INFO: count ==2334 [2025-04-22 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-22 17:59:06 - End Time 2025-04-22 20:59:06 [2025-04-22 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967534', 'tblTempUsageDetail_20' ) start [2025-04-22 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967534', 'tblTempUsageDetail_20' ) end [2025-04-22 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967534', 'tblTempVendorCDR_20' ) start [2025-04-22 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967534', 'tblTempVendorCDR_20' ) end [2025-04-22 20:59:19] Production.INFO: ProcessCDR(1,14967534,1,1,2) [2025-04-22 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967534', 'tblTempUsageDetail_20' ) start [2025-04-22 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967534', 'tblTempUsageDetail_20' ) end [2025-04-22 20:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 20:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 20:59:25] Production.INFO: ==7407== Releasing lock... [2025-04-22 20:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 20:59:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-22 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:00:06 [end_date_ymd] => 2025-04-22 21:00:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:00:06' and `end` < '2025-04-22 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-04-22 21:00:19] Production.INFO: count ==2328 [2025-04-22 21:00:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:00:06 - End Time 2025-04-22 21:00:06 [2025-04-22 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967540', 'tblTempUsageDetail_20' ) start [2025-04-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967540', 'tblTempUsageDetail_20' ) end [2025-04-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967540', 'tblTempVendorCDR_20' ) start [2025-04-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967540', 'tblTempVendorCDR_20' ) end [2025-04-22 21:00:19] Production.INFO: ProcessCDR(1,14967540,1,1,2) [2025-04-22 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967540', 'tblTempUsageDetail_20' ) start [2025-04-22 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967540', 'tblTempUsageDetail_20' ) end [2025-04-22 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:00:23] Production.INFO: ==7478== Releasing lock... [2025-04-22 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:00:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-22 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:01:05 [end_date_ymd] => 2025-04-22 21:01:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:01:05' and `end` < '2025-04-22 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-04-22 21:01:18] Production.INFO: count ==2248 [2025-04-22 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:01:05 - End Time 2025-04-22 21:01:05 [2025-04-22 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967545', 'tblTempUsageDetail_20' ) start [2025-04-22 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967545', 'tblTempUsageDetail_20' ) end [2025-04-22 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967545', 'tblTempVendorCDR_20' ) start [2025-04-22 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967545', 'tblTempVendorCDR_20' ) end [2025-04-22 21:01:19] Production.INFO: ProcessCDR(1,14967545,1,1,2) [2025-04-22 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967545', 'tblTempUsageDetail_20' ) start [2025-04-22 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967545', 'tblTempUsageDetail_20' ) end [2025-04-22 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:01:23] Production.INFO: ==7569== Releasing lock... [2025-04-22 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:01:23] Production.INFO: 45 MB #Memory Used# [2025-04-22 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:02:05 [end_date_ymd] => 2025-04-22 21:02:05 [RateCDR] => 1 ) [2025-04-22 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:02:05' and `end` < '2025-04-22 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:02:18] Production.INFO: count ==2235 [2025-04-22 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:02:05 - End Time 2025-04-22 21:02:05 [2025-04-22 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967550', 'tblTempUsageDetail_20' ) start [2025-04-22 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967550', 'tblTempUsageDetail_20' ) end [2025-04-22 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967550', 'tblTempVendorCDR_20' ) start [2025-04-22 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967550', 'tblTempVendorCDR_20' ) end [2025-04-22 21:02:19] Production.INFO: ProcessCDR(1,14967550,1,1,2) [2025-04-22 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967550', 'tblTempUsageDetail_20' ) start [2025-04-22 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967550', 'tblTempUsageDetail_20' ) end [2025-04-22 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:02:22] Production.INFO: ==7642== Releasing lock... [2025-04-22 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:02:22] Production.INFO: 45 MB #Memory Used# [2025-04-22 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:03:05 [end_date_ymd] => 2025-04-22 21:03:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:03:05' and `end` < '2025-04-22 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-04-22 21:03:18] Production.INFO: count ==2237 [2025-04-22 21:03:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:03:05 - End Time 2025-04-22 21:03:05 [2025-04-22 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967555', 'tblTempUsageDetail_20' ) start [2025-04-22 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967555', 'tblTempUsageDetail_20' ) end [2025-04-22 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967555', 'tblTempVendorCDR_20' ) start [2025-04-22 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967555', 'tblTempVendorCDR_20' ) end [2025-04-22 21:03:18] Production.INFO: ProcessCDR(1,14967555,1,1,2) [2025-04-22 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967555', 'tblTempUsageDetail_20' ) start [2025-04-22 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967555', 'tblTempUsageDetail_20' ) end [2025-04-22 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:03:22] Production.INFO: ==7713== Releasing lock... [2025-04-22 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:03:22] Production.INFO: 45 MB #Memory Used# [2025-04-22 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:04:05 [end_date_ymd] => 2025-04-22 21:04:05 [RateCDR] => 1 ) [2025-04-22 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:04:05' and `end` < '2025-04-22 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:04:18] Production.INFO: count ==2231 [2025-04-22 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:04:05 - End Time 2025-04-22 21:04:05 [2025-04-22 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967560', 'tblTempUsageDetail_20' ) start [2025-04-22 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967560', 'tblTempUsageDetail_20' ) end [2025-04-22 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967560', 'tblTempVendorCDR_20' ) start [2025-04-22 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967560', 'tblTempVendorCDR_20' ) end [2025-04-22 21:04:19] Production.INFO: ProcessCDR(1,14967560,1,1,2) [2025-04-22 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967560', 'tblTempUsageDetail_20' ) start [2025-04-22 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967560', 'tblTempUsageDetail_20' ) end [2025-04-22 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:04:22] Production.INFO: ==7788== Releasing lock... [2025-04-22 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:04:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-22 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:05:05 [end_date_ymd] => 2025-04-22 21:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:05:05' and `end` < '2025-04-22 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-04-22 21:05:18] Production.INFO: count ==2230 [2025-04-22 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:05:05 - End Time 2025-04-22 21:05:05 [2025-04-22 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967565', 'tblTempUsageDetail_20' ) start [2025-04-22 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967565', 'tblTempUsageDetail_20' ) end [2025-04-22 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967565', 'tblTempVendorCDR_20' ) start [2025-04-22 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967565', 'tblTempVendorCDR_20' ) end [2025-04-22 21:05:19] Production.INFO: ProcessCDR(1,14967565,1,1,2) [2025-04-22 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967565', 'tblTempUsageDetail_20' ) start [2025-04-22 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967565', 'tblTempUsageDetail_20' ) end [2025-04-22 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:05:22] Production.INFO: ==7860== Releasing lock... [2025-04-22 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:05:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-22 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:06:06 [end_date_ymd] => 2025-04-22 21:06:06 [RateCDR] => 1 ) [2025-04-22 21: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-04-22 18:06:06' and `end` < '2025-04-22 21: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-04-22 21:06:19] Production.INFO: count ==2225 [2025-04-22 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:06:06 - End Time 2025-04-22 21:06:06 [2025-04-22 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967570', 'tblTempUsageDetail_20' ) start [2025-04-22 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967570', 'tblTempUsageDetail_20' ) end [2025-04-22 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967570', 'tblTempVendorCDR_20' ) start [2025-04-22 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967570', 'tblTempVendorCDR_20' ) end [2025-04-22 21:06:20] Production.INFO: ProcessCDR(1,14967570,1,1,2) [2025-04-22 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967570', 'tblTempUsageDetail_20' ) start [2025-04-22 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967570', 'tblTempUsageDetail_20' ) end [2025-04-22 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:06:23] Production.INFO: ==7935== Releasing lock... [2025-04-22 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:06:23] Production.INFO: 45 MB #Memory Used# [2025-04-22 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:07:05 [end_date_ymd] => 2025-04-22 21:07:05 [RateCDR] => 1 ) [2025-04-22 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:07:05' and `end` < '2025-04-22 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:07:18] Production.INFO: count ==2214 [2025-04-22 21:07:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:07:05 - End Time 2025-04-22 21:07:05 [2025-04-22 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967575', 'tblTempUsageDetail_20' ) start [2025-04-22 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967575', 'tblTempUsageDetail_20' ) end [2025-04-22 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967575', 'tblTempVendorCDR_20' ) start [2025-04-22 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967575', 'tblTempVendorCDR_20' ) end [2025-04-22 21:07:19] Production.INFO: ProcessCDR(1,14967575,1,1,2) [2025-04-22 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967575', 'tblTempUsageDetail_20' ) start [2025-04-22 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967575', 'tblTempUsageDetail_20' ) end [2025-04-22 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:07:23] Production.INFO: ==8006== Releasing lock... [2025-04-22 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:07:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-22 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:08:06 [end_date_ymd] => 2025-04-22 21:08:06 [RateCDR] => 1 ) [2025-04-22 21: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-04-22 18:08:06' and `end` < '2025-04-22 21: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-04-22 21:08:19] Production.INFO: count ==2207 [2025-04-22 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:08:06 - End Time 2025-04-22 21:08:06 [2025-04-22 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967580', 'tblTempUsageDetail_20' ) start [2025-04-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967580', 'tblTempUsageDetail_20' ) end [2025-04-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967580', 'tblTempVendorCDR_20' ) start [2025-04-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967580', 'tblTempVendorCDR_20' ) end [2025-04-22 21:08:19] Production.INFO: ProcessCDR(1,14967580,1,1,2) [2025-04-22 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967580', 'tblTempUsageDetail_20' ) start [2025-04-22 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967580', 'tblTempUsageDetail_20' ) end [2025-04-22 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:08:23] Production.INFO: ==8078== Releasing lock... [2025-04-22 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:08:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-22 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:09:05 [end_date_ymd] => 2025-04-22 21:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:09:05' and `end` < '2025-04-22 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-04-22 21:09:18] Production.INFO: count ==2207 [2025-04-22 21:09:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:09:05 - End Time 2025-04-22 21:09:05 [2025-04-22 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967585', 'tblTempUsageDetail_20' ) start [2025-04-22 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967585', 'tblTempUsageDetail_20' ) end [2025-04-22 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967585', 'tblTempVendorCDR_20' ) start [2025-04-22 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967585', 'tblTempVendorCDR_20' ) end [2025-04-22 21:09:19] Production.INFO: ProcessCDR(1,14967585,1,1,2) [2025-04-22 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967585', 'tblTempUsageDetail_20' ) start [2025-04-22 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967585', 'tblTempUsageDetail_20' ) end [2025-04-22 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:09:23] Production.INFO: ==8152== Releasing lock... [2025-04-22 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:09:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-22 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:10:06 [end_date_ymd] => 2025-04-22 21:10:06 [RateCDR] => 1 ) [2025-04-22 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:10:06' and `end` < '2025-04-22 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:10:19] Production.INFO: count ==2201 [2025-04-22 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-22 18:10:06 - End Time 2025-04-22 21:10:06 [2025-04-22 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967590', 'tblTempUsageDetail_20' ) start [2025-04-22 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967590', 'tblTempUsageDetail_20' ) end [2025-04-22 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967590', 'tblTempVendorCDR_20' ) start [2025-04-22 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967590', 'tblTempVendorCDR_20' ) end [2025-04-22 21:10:20] Production.INFO: ProcessCDR(1,14967590,1,1,2) [2025-04-22 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967590', 'tblTempUsageDetail_20' ) start [2025-04-22 21:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967590', 'tblTempUsageDetail_20' ) end [2025-04-22 21:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:10:25] Production.INFO: ==8228== Releasing lock... [2025-04-22 21:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:10:25] Production.INFO: 45 MB #Memory Used# [2025-04-22 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:11:05 [end_date_ymd] => 2025-04-22 21:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:11:05' and `end` < '2025-04-22 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-04-22 21:11:18] Production.INFO: count ==2192 [2025-04-22 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:11:05 - End Time 2025-04-22 21:11:05 [2025-04-22 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967596', 'tblTempUsageDetail_20' ) start [2025-04-22 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967596', 'tblTempUsageDetail_20' ) end [2025-04-22 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967596', 'tblTempVendorCDR_20' ) start [2025-04-22 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967596', 'tblTempVendorCDR_20' ) end [2025-04-22 21:11:18] Production.INFO: ProcessCDR(1,14967596,1,1,2) [2025-04-22 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967596', 'tblTempUsageDetail_20' ) start [2025-04-22 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967596', 'tblTempUsageDetail_20' ) end [2025-04-22 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:11:22] Production.INFO: ==8339== Releasing lock... [2025-04-22 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:11:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-22 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:12:05 [end_date_ymd] => 2025-04-22 21:12:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:12:05' and `end` < '2025-04-22 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-04-22 21:12:18] Production.INFO: count ==2184 [2025-04-22 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:12:05 - End Time 2025-04-22 21:12:05 [2025-04-22 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967601', 'tblTempUsageDetail_20' ) start [2025-04-22 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967601', 'tblTempUsageDetail_20' ) end [2025-04-22 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967601', 'tblTempVendorCDR_20' ) start [2025-04-22 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967601', 'tblTempVendorCDR_20' ) end [2025-04-22 21:12:19] Production.INFO: ProcessCDR(1,14967601,1,1,2) [2025-04-22 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967601', 'tblTempUsageDetail_20' ) start [2025-04-22 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967601', 'tblTempUsageDetail_20' ) end [2025-04-22 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:12:22] Production.INFO: ==8409== Releasing lock... [2025-04-22 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:12:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-22 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:13:05 [end_date_ymd] => 2025-04-22 21:13:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:13:05' and `end` < '2025-04-22 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-04-22 21:13:18] Production.INFO: count ==2185 [2025-04-22 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:13:05 - End Time 2025-04-22 21:13:05 [2025-04-22 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967606', 'tblTempUsageDetail_20' ) start [2025-04-22 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967606', 'tblTempUsageDetail_20' ) end [2025-04-22 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967606', 'tblTempVendorCDR_20' ) start [2025-04-22 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967606', 'tblTempVendorCDR_20' ) end [2025-04-22 21:13:19] Production.INFO: ProcessCDR(1,14967606,1,1,2) [2025-04-22 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967606', 'tblTempUsageDetail_20' ) start [2025-04-22 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967606', 'tblTempUsageDetail_20' ) end [2025-04-22 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:13:22] Production.INFO: ==8486== Releasing lock... [2025-04-22 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:13:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-22 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:14:06 [end_date_ymd] => 2025-04-22 21:14:06 [RateCDR] => 1 ) [2025-04-22 21: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-04-22 18:14:06' and `end` < '2025-04-22 21: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-04-22 21:14:21] Production.INFO: count ==2168 [2025-04-22 21:14:22] Production.ERROR: pbx CDR StartTime 2025-04-22 18:14:06 - End Time 2025-04-22 21:14:06 [2025-04-22 21:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967611', 'tblTempUsageDetail_20' ) start [2025-04-22 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967611', 'tblTempUsageDetail_20' ) end [2025-04-22 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967611', 'tblTempVendorCDR_20' ) start [2025-04-22 21:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967611', 'tblTempVendorCDR_20' ) end [2025-04-22 21:14:22] Production.INFO: ProcessCDR(1,14967611,1,1,2) [2025-04-22 21:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967611', 'tblTempUsageDetail_20' ) start [2025-04-22 21:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967611', 'tblTempUsageDetail_20' ) end [2025-04-22 21:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:14:25] Production.INFO: ==8561== Releasing lock... [2025-04-22 21:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:14:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-22 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:15:05 [end_date_ymd] => 2025-04-22 21:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:15:05' and `end` < '2025-04-22 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-04-22 21:15:23] Production.INFO: count ==2166 [2025-04-22 21:15:23] Production.ERROR: pbx CDR StartTime 2025-04-22 18:15:05 - End Time 2025-04-22 21:15:05 [2025-04-22 21:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967616', 'tblTempUsageDetail_20' ) start [2025-04-22 21:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967616', 'tblTempUsageDetail_20' ) end [2025-04-22 21:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967616', 'tblTempVendorCDR_20' ) start [2025-04-22 21:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967616', 'tblTempVendorCDR_20' ) end [2025-04-22 21:15:23] Production.INFO: ProcessCDR(1,14967616,1,1,2) [2025-04-22 21:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967616', 'tblTempUsageDetail_20' ) start [2025-04-22 21:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967616', 'tblTempUsageDetail_20' ) end [2025-04-22 21:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:15:27] Production.INFO: ==8631== Releasing lock... [2025-04-22 21:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:15:27] Production.INFO: 44.25 MB #Memory Used# [2025-04-22 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:16:05 [end_date_ymd] => 2025-04-22 21:16:05 [RateCDR] => 1 ) [2025-04-22 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:16:05' and `end` < '2025-04-22 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:16:19] Production.INFO: count ==2161 [2025-04-22 21:16:20] Production.ERROR: pbx CDR StartTime 2025-04-22 18:16:05 - End Time 2025-04-22 21:16:05 [2025-04-22 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967621', 'tblTempUsageDetail_20' ) start [2025-04-22 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967621', 'tblTempUsageDetail_20' ) end [2025-04-22 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967621', 'tblTempVendorCDR_20' ) start [2025-04-22 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967621', 'tblTempVendorCDR_20' ) end [2025-04-22 21:16:20] Production.INFO: ProcessCDR(1,14967621,1,1,2) [2025-04-22 21:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967621', 'tblTempUsageDetail_20' ) start [2025-04-22 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967621', 'tblTempUsageDetail_20' ) end [2025-04-22 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:16:23] Production.INFO: ==8709== Releasing lock... [2025-04-22 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:16:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-22 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:17:05 [end_date_ymd] => 2025-04-22 21:17:05 [RateCDR] => 1 ) [2025-04-22 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:17:05' and `end` < '2025-04-22 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:17:18] Production.INFO: count ==2156 [2025-04-22 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:17:05 - End Time 2025-04-22 21:17:05 [2025-04-22 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967626', 'tblTempUsageDetail_20' ) start [2025-04-22 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967626', 'tblTempUsageDetail_20' ) end [2025-04-22 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967626', 'tblTempVendorCDR_20' ) start [2025-04-22 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967626', 'tblTempVendorCDR_20' ) end [2025-04-22 21:17:19] Production.INFO: ProcessCDR(1,14967626,1,1,2) [2025-04-22 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967626', 'tblTempUsageDetail_20' ) start [2025-04-22 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967626', 'tblTempUsageDetail_20' ) end [2025-04-22 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:17:22] Production.INFO: ==8781== Releasing lock... [2025-04-22 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:17:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-22 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:18:05 [end_date_ymd] => 2025-04-22 21:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:18:05' and `end` < '2025-04-22 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-04-22 21:18:18] Production.INFO: count ==2154 [2025-04-22 21:18:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:18:05 - End Time 2025-04-22 21:18:05 [2025-04-22 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967631', 'tblTempUsageDetail_20' ) start [2025-04-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967631', 'tblTempUsageDetail_20' ) end [2025-04-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967631', 'tblTempVendorCDR_20' ) start [2025-04-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967631', 'tblTempVendorCDR_20' ) end [2025-04-22 21:18:19] Production.INFO: ProcessCDR(1,14967631,1,1,2) [2025-04-22 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967631', 'tblTempUsageDetail_20' ) start [2025-04-22 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967631', 'tblTempUsageDetail_20' ) end [2025-04-22 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:18:22] Production.INFO: ==8864== Releasing lock... [2025-04-22 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:18:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-22 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:19:05 [end_date_ymd] => 2025-04-22 21:19:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:19:05' and `end` < '2025-04-22 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-04-22 21:19:18] Production.INFO: count ==2146 [2025-04-22 21:19:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:19:05 - End Time 2025-04-22 21:19:05 [2025-04-22 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967636', 'tblTempUsageDetail_20' ) start [2025-04-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967636', 'tblTempUsageDetail_20' ) end [2025-04-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967636', 'tblTempVendorCDR_20' ) start [2025-04-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967636', 'tblTempVendorCDR_20' ) end [2025-04-22 21:19:18] Production.INFO: ProcessCDR(1,14967636,1,1,2) [2025-04-22 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967636', 'tblTempUsageDetail_20' ) start [2025-04-22 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967636', 'tblTempUsageDetail_20' ) end [2025-04-22 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:19:22] Production.INFO: ==8939== Releasing lock... [2025-04-22 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:19:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-22 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:20:06 [end_date_ymd] => 2025-04-22 21:20:06 [RateCDR] => 1 ) [2025-04-22 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:20:06' and `end` < '2025-04-22 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:20:19] Production.INFO: count ==2140 [2025-04-22 21:20:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:20:06 - End Time 2025-04-22 21:20:06 [2025-04-22 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967642', 'tblTempUsageDetail_20' ) start [2025-04-22 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967642', 'tblTempUsageDetail_20' ) end [2025-04-22 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967642', 'tblTempVendorCDR_20' ) start [2025-04-22 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967642', 'tblTempVendorCDR_20' ) end [2025-04-22 21:20:19] Production.INFO: ProcessCDR(1,14967642,1,1,2) [2025-04-22 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967642', 'tblTempUsageDetail_20' ) start [2025-04-22 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967642', 'tblTempUsageDetail_20' ) end [2025-04-22 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:20:23] Production.INFO: ==9016== Releasing lock... [2025-04-22 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:20:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-22 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:21:05 [end_date_ymd] => 2025-04-22 21:21:05 [RateCDR] => 1 ) [2025-04-22 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:21:05' and `end` < '2025-04-22 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:21:18] Production.INFO: count ==2086 [2025-04-22 21:21:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:21:05 - End Time 2025-04-22 21:21:05 [2025-04-22 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967647', 'tblTempUsageDetail_20' ) start [2025-04-22 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967647', 'tblTempUsageDetail_20' ) end [2025-04-22 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967647', 'tblTempVendorCDR_20' ) start [2025-04-22 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967647', 'tblTempVendorCDR_20' ) end [2025-04-22 21:21:19] Production.INFO: ProcessCDR(1,14967647,1,1,2) [2025-04-22 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967647', 'tblTempUsageDetail_20' ) start [2025-04-22 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967647', 'tblTempUsageDetail_20' ) end [2025-04-22 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:21:22] Production.INFO: ==9089== Releasing lock... [2025-04-22 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:21:22] Production.INFO: 44 MB #Memory Used# [2025-04-22 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:22:05 [end_date_ymd] => 2025-04-22 21:22:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:22:05' and `end` < '2025-04-22 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-04-22 21:22:18] Production.INFO: count ==2090 [2025-04-22 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:22:05 - End Time 2025-04-22 21:22:05 [2025-04-22 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967652', 'tblTempUsageDetail_20' ) start [2025-04-22 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967652', 'tblTempUsageDetail_20' ) end [2025-04-22 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967652', 'tblTempVendorCDR_20' ) start [2025-04-22 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967652', 'tblTempVendorCDR_20' ) end [2025-04-22 21:22:19] Production.INFO: ProcessCDR(1,14967652,1,1,2) [2025-04-22 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967652', 'tblTempUsageDetail_20' ) start [2025-04-22 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967652', 'tblTempUsageDetail_20' ) end [2025-04-22 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:22:22] Production.INFO: ==9162== Releasing lock... [2025-04-22 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:22:22] Production.INFO: 44 MB #Memory Used# [2025-04-22 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:23:05 [end_date_ymd] => 2025-04-22 21:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:23:05' and `end` < '2025-04-22 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-04-22 21:23:18] Production.INFO: count ==2088 [2025-04-22 21:23:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:23:05 - End Time 2025-04-22 21:23:05 [2025-04-22 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967657', 'tblTempUsageDetail_20' ) start [2025-04-22 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967657', 'tblTempUsageDetail_20' ) end [2025-04-22 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967657', 'tblTempVendorCDR_20' ) start [2025-04-22 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967657', 'tblTempVendorCDR_20' ) end [2025-04-22 21:23:19] Production.INFO: ProcessCDR(1,14967657,1,1,2) [2025-04-22 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967657', 'tblTempUsageDetail_20' ) start [2025-04-22 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967657', 'tblTempUsageDetail_20' ) end [2025-04-22 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:23:22] Production.INFO: ==9238== Releasing lock... [2025-04-22 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:23:22] Production.INFO: 44 MB #Memory Used# [2025-04-22 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:24:05 [end_date_ymd] => 2025-04-22 21:24:05 [RateCDR] => 1 ) [2025-04-22 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:24:05' and `end` < '2025-04-22 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:24:18] Production.INFO: count ==2084 [2025-04-22 21:24:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:24:05 - End Time 2025-04-22 21:24:05 [2025-04-22 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967662', 'tblTempUsageDetail_20' ) start [2025-04-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967662', 'tblTempUsageDetail_20' ) end [2025-04-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967662', 'tblTempVendorCDR_20' ) start [2025-04-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967662', 'tblTempVendorCDR_20' ) end [2025-04-22 21:24:18] Production.INFO: ProcessCDR(1,14967662,1,1,2) [2025-04-22 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967662', 'tblTempUsageDetail_20' ) start [2025-04-22 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967662', 'tblTempUsageDetail_20' ) end [2025-04-22 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:24:22] Production.INFO: ==9315== Releasing lock... [2025-04-22 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:24:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-22 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:25:06 [end_date_ymd] => 2025-04-22 21:25:06 [RateCDR] => 1 ) [2025-04-22 21:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:25:06' and `end` < '2025-04-22 21:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:25:18] Production.INFO: count ==2070 [2025-04-22 21:25:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:25:06 - End Time 2025-04-22 21:25:06 [2025-04-22 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967667', 'tblTempUsageDetail_20' ) start [2025-04-22 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967667', 'tblTempUsageDetail_20' ) end [2025-04-22 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967667', 'tblTempVendorCDR_20' ) start [2025-04-22 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967667', 'tblTempVendorCDR_20' ) end [2025-04-22 21:25:19] Production.INFO: ProcessCDR(1,14967667,1,1,2) [2025-04-22 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967667', 'tblTempUsageDetail_20' ) start [2025-04-22 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967667', 'tblTempUsageDetail_20' ) end [2025-04-22 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:25:23] Production.INFO: ==9386== Releasing lock... [2025-04-22 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:25:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-22 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:26:05 [end_date_ymd] => 2025-04-22 21:26:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:26:05' and `end` < '2025-04-22 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-04-22 21:26:18] Production.INFO: count ==2071 [2025-04-22 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:26:05 - End Time 2025-04-22 21:26:05 [2025-04-22 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967672', 'tblTempUsageDetail_20' ) start [2025-04-22 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967672', 'tblTempUsageDetail_20' ) end [2025-04-22 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967672', 'tblTempVendorCDR_20' ) start [2025-04-22 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967672', 'tblTempVendorCDR_20' ) end [2025-04-22 21:26:19] Production.INFO: ProcessCDR(1,14967672,1,1,2) [2025-04-22 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967672', 'tblTempUsageDetail_20' ) start [2025-04-22 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967672', 'tblTempUsageDetail_20' ) end [2025-04-22 21:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:26:24] Production.INFO: ==9496== Releasing lock... [2025-04-22 21:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:26:24] Production.INFO: 44 MB #Memory Used# [2025-04-22 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:27:05 [end_date_ymd] => 2025-04-22 21:27:05 [RateCDR] => 1 ) [2025-04-22 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:27:05' and `end` < '2025-04-22 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-04-22 21:27:18] Production.INFO: count ==2062 [2025-04-22 21:27:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:27:05 - End Time 2025-04-22 21:27:05 [2025-04-22 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967677', 'tblTempUsageDetail_20' ) start [2025-04-22 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967677', 'tblTempUsageDetail_20' ) end [2025-04-22 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967677', 'tblTempVendorCDR_20' ) start [2025-04-22 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967677', 'tblTempVendorCDR_20' ) end [2025-04-22 21:27:19] Production.INFO: ProcessCDR(1,14967677,1,1,2) [2025-04-22 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967677', 'tblTempUsageDetail_20' ) start [2025-04-22 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967677', 'tblTempUsageDetail_20' ) end [2025-04-22 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:27:22] Production.INFO: ==9568== Releasing lock... [2025-04-22 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:27:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-22 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:28:05 [end_date_ymd] => 2025-04-22 21:28:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:28:05' and `end` < '2025-04-22 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-04-22 21:28:18] Production.INFO: count ==2058 [2025-04-22 21:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:28:05 - End Time 2025-04-22 21:28:05 [2025-04-22 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967682', 'tblTempUsageDetail_20' ) start [2025-04-22 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967682', 'tblTempUsageDetail_20' ) end [2025-04-22 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967682', 'tblTempVendorCDR_20' ) start [2025-04-22 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967682', 'tblTempVendorCDR_20' ) end [2025-04-22 21:28:18] Production.INFO: ProcessCDR(1,14967682,1,1,2) [2025-04-22 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967682', 'tblTempUsageDetail_20' ) start [2025-04-22 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967682', 'tblTempUsageDetail_20' ) end [2025-04-22 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:28:24] Production.INFO: ==9644== Releasing lock... [2025-04-22 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:28:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-22 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:29:05 [end_date_ymd] => 2025-04-22 21:29:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:29:05' and `end` < '2025-04-22 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-04-22 21:29:18] Production.INFO: count ==2056 [2025-04-22 21:29:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:29:05 - End Time 2025-04-22 21:29:05 [2025-04-22 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967687', 'tblTempUsageDetail_20' ) start [2025-04-22 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967687', 'tblTempUsageDetail_20' ) end [2025-04-22 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967687', 'tblTempVendorCDR_20' ) start [2025-04-22 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967687', 'tblTempVendorCDR_20' ) end [2025-04-22 21:29:19] Production.INFO: ProcessCDR(1,14967687,1,1,2) [2025-04-22 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967687', 'tblTempUsageDetail_20' ) start [2025-04-22 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967687', 'tblTempUsageDetail_20' ) end [2025-04-22 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:29:22] Production.INFO: ==9721== Releasing lock... [2025-04-22 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:29:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-22 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:30:05 [end_date_ymd] => 2025-04-22 21:30:05 [RateCDR] => 1 ) [2025-04-22 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:30:05' and `end` < '2025-04-22 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:30:18] Production.INFO: count ==2041 [2025-04-22 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:30:05 - End Time 2025-04-22 21:30:05 [2025-04-22 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967692', 'tblTempUsageDetail_20' ) start [2025-04-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967692', 'tblTempUsageDetail_20' ) end [2025-04-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967692', 'tblTempVendorCDR_20' ) start [2025-04-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967692', 'tblTempVendorCDR_20' ) end [2025-04-22 21:30:19] Production.INFO: ProcessCDR(1,14967692,1,1,2) [2025-04-22 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967692', 'tblTempUsageDetail_20' ) start [2025-04-22 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967692', 'tblTempUsageDetail_20' ) end [2025-04-22 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:30:22] Production.INFO: ==9795== Releasing lock... [2025-04-22 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:30:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-22 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:31:05 [end_date_ymd] => 2025-04-22 21:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:31:05' and `end` < '2025-04-22 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-04-22 21:31:18] Production.INFO: count ==1970 [2025-04-22 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:31:05 - End Time 2025-04-22 21:31:05 [2025-04-22 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967698', 'tblTempUsageDetail_20' ) start [2025-04-22 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967698', 'tblTempUsageDetail_20' ) end [2025-04-22 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967698', 'tblTempVendorCDR_20' ) start [2025-04-22 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967698', 'tblTempVendorCDR_20' ) end [2025-04-22 21:31:18] Production.INFO: ProcessCDR(1,14967698,1,1,2) [2025-04-22 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967698', 'tblTempUsageDetail_20' ) start [2025-04-22 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967698', 'tblTempUsageDetail_20' ) end [2025-04-22 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:31:22] Production.INFO: ==9871== Releasing lock... [2025-04-22 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:31:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-22 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:32:05 [end_date_ymd] => 2025-04-22 21:32:05 [RateCDR] => 1 ) [2025-04-22 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:32:05' and `end` < '2025-04-22 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:32:18] Production.INFO: count ==1963 [2025-04-22 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:32:05 - End Time 2025-04-22 21:32:05 [2025-04-22 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967703', 'tblTempUsageDetail_20' ) start [2025-04-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967703', 'tblTempUsageDetail_20' ) end [2025-04-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967703', 'tblTempVendorCDR_20' ) start [2025-04-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967703', 'tblTempVendorCDR_20' ) end [2025-04-22 21:32:18] Production.INFO: ProcessCDR(1,14967703,1,1,2) [2025-04-22 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967703', 'tblTempUsageDetail_20' ) start [2025-04-22 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967703', 'tblTempUsageDetail_20' ) end [2025-04-22 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:32:22] Production.INFO: ==9942== Releasing lock... [2025-04-22 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:32:22] Production.INFO: 43 MB #Memory Used# [2025-04-22 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:33:05 [end_date_ymd] => 2025-04-22 21:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:33:05' and `end` < '2025-04-22 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-04-22 21:33:18] Production.INFO: count ==1955 [2025-04-22 21:33:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:33:05 - End Time 2025-04-22 21:33:05 [2025-04-22 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967708', 'tblTempUsageDetail_20' ) start [2025-04-22 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967708', 'tblTempUsageDetail_20' ) end [2025-04-22 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967708', 'tblTempVendorCDR_20' ) start [2025-04-22 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967708', 'tblTempVendorCDR_20' ) end [2025-04-22 21:33:19] Production.INFO: ProcessCDR(1,14967708,1,1,2) [2025-04-22 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967708', 'tblTempUsageDetail_20' ) start [2025-04-22 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967708', 'tblTempUsageDetail_20' ) end [2025-04-22 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:33:23] Production.INFO: ==10019== Releasing lock... [2025-04-22 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:33:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-22 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:34:05 [end_date_ymd] => 2025-04-22 21:34:05 [RateCDR] => 1 ) [2025-04-22 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:34:05' and `end` < '2025-04-22 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:34:18] Production.INFO: count ==1948 [2025-04-22 21:34:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:34:05 - End Time 2025-04-22 21:34:05 [2025-04-22 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967713', 'tblTempUsageDetail_20' ) start [2025-04-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967713', 'tblTempUsageDetail_20' ) end [2025-04-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967713', 'tblTempVendorCDR_20' ) start [2025-04-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967713', 'tblTempVendorCDR_20' ) end [2025-04-22 21:34:18] Production.INFO: ProcessCDR(1,14967713,1,1,2) [2025-04-22 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967713', 'tblTempUsageDetail_20' ) start [2025-04-22 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967713', 'tblTempUsageDetail_20' ) end [2025-04-22 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:34:22] Production.INFO: ==10096== Releasing lock... [2025-04-22 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:34:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-22 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:35:05 [end_date_ymd] => 2025-04-22 21:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:35:05' and `end` < '2025-04-22 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-04-22 21:35:18] Production.INFO: count ==1950 [2025-04-22 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:35:05 - End Time 2025-04-22 21:35:05 [2025-04-22 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967718', 'tblTempUsageDetail_20' ) start [2025-04-22 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967718', 'tblTempUsageDetail_20' ) end [2025-04-22 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967718', 'tblTempVendorCDR_20' ) start [2025-04-22 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967718', 'tblTempVendorCDR_20' ) end [2025-04-22 21:35:19] Production.INFO: ProcessCDR(1,14967718,1,1,2) [2025-04-22 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967718', 'tblTempUsageDetail_20' ) start [2025-04-22 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967718', 'tblTempUsageDetail_20' ) end [2025-04-22 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:35:23] Production.INFO: ==10165== Releasing lock... [2025-04-22 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:35:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-22 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:36:06 [end_date_ymd] => 2025-04-22 21:36:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:36:06' and `end` < '2025-04-22 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-04-22 21:36:19] Production.INFO: count ==1947 [2025-04-22 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:36:06 - End Time 2025-04-22 21:36:06 [2025-04-22 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967723', 'tblTempUsageDetail_20' ) start [2025-04-22 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967723', 'tblTempUsageDetail_20' ) end [2025-04-22 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967723', 'tblTempVendorCDR_20' ) start [2025-04-22 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967723', 'tblTempVendorCDR_20' ) end [2025-04-22 21:36:19] Production.INFO: ProcessCDR(1,14967723,1,1,2) [2025-04-22 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967723', 'tblTempUsageDetail_20' ) start [2025-04-22 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967723', 'tblTempUsageDetail_20' ) end [2025-04-22 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:36:23] Production.INFO: ==10242== Releasing lock... [2025-04-22 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:36:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-22 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:37:05 [end_date_ymd] => 2025-04-22 21:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:37:05' and `end` < '2025-04-22 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-04-22 21:37:18] Production.INFO: count ==1945 [2025-04-22 21:37:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:37:05 - End Time 2025-04-22 21:37:05 [2025-04-22 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967728', 'tblTempUsageDetail_20' ) start [2025-04-22 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967728', 'tblTempUsageDetail_20' ) end [2025-04-22 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967728', 'tblTempVendorCDR_20' ) start [2025-04-22 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967728', 'tblTempVendorCDR_20' ) end [2025-04-22 21:37:19] Production.INFO: ProcessCDR(1,14967728,1,1,2) [2025-04-22 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967728', 'tblTempUsageDetail_20' ) start [2025-04-22 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967728', 'tblTempUsageDetail_20' ) end [2025-04-22 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:37:22] Production.INFO: ==10311== Releasing lock... [2025-04-22 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:37:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-22 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:38:06 [end_date_ymd] => 2025-04-22 21:38:06 [RateCDR] => 1 ) [2025-04-22 21:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:38:06' and `end` < '2025-04-22 21:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:38:19] Production.INFO: count ==1943 [2025-04-22 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:38:06 - End Time 2025-04-22 21:38:06 [2025-04-22 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967733', 'tblTempUsageDetail_20' ) start [2025-04-22 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967733', 'tblTempUsageDetail_20' ) end [2025-04-22 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967733', 'tblTempVendorCDR_20' ) start [2025-04-22 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967733', 'tblTempVendorCDR_20' ) end [2025-04-22 21:38:19] Production.INFO: ProcessCDR(1,14967733,1,1,2) [2025-04-22 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967733', 'tblTempUsageDetail_20' ) start [2025-04-22 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967733', 'tblTempUsageDetail_20' ) end [2025-04-22 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:38:23] Production.INFO: ==10389== Releasing lock... [2025-04-22 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:38:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-22 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:39:05 [end_date_ymd] => 2025-04-22 21:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:39:05' and `end` < '2025-04-22 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-04-22 21:39:18] Production.INFO: count ==1924 [2025-04-22 21:39:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:39:05 - End Time 2025-04-22 21:39:05 [2025-04-22 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967738', 'tblTempUsageDetail_20' ) start [2025-04-22 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967738', 'tblTempUsageDetail_20' ) end [2025-04-22 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967738', 'tblTempVendorCDR_20' ) start [2025-04-22 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967738', 'tblTempVendorCDR_20' ) end [2025-04-22 21:39:19] Production.INFO: ProcessCDR(1,14967738,1,1,2) [2025-04-22 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967738', 'tblTempUsageDetail_20' ) start [2025-04-22 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967738', 'tblTempUsageDetail_20' ) end [2025-04-22 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:39:22] Production.INFO: ==10461== Releasing lock... [2025-04-22 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:39:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-22 21:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:40:07 [end_date_ymd] => 2025-04-22 21:40:07 [RateCDR] => 1 ) [2025-04-22 21: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-04-22 18:40:07' and `end` < '2025-04-22 21: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-04-22 21:40:20] Production.INFO: count ==1919 [2025-04-22 21:40:20] Production.ERROR: pbx CDR StartTime 2025-04-22 18:40:07 - End Time 2025-04-22 21:40:07 [2025-04-22 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967744', 'tblTempUsageDetail_20' ) start [2025-04-22 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967744', 'tblTempUsageDetail_20' ) end [2025-04-22 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967744', 'tblTempVendorCDR_20' ) start [2025-04-22 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967744', 'tblTempVendorCDR_20' ) end [2025-04-22 21:40:20] Production.INFO: ProcessCDR(1,14967744,1,1,2) [2025-04-22 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967744', 'tblTempUsageDetail_20' ) start [2025-04-22 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967744', 'tblTempUsageDetail_20' ) end [2025-04-22 21:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:40:25] Production.INFO: ==10534== Releasing lock... [2025-04-22 21:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:40:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-22 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:41:05 [end_date_ymd] => 2025-04-22 21:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:41:05' and `end` < '2025-04-22 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-04-22 21:41:18] Production.INFO: count ==1897 [2025-04-22 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:41:05 - End Time 2025-04-22 21:41:05 [2025-04-22 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967749', 'tblTempUsageDetail_20' ) start [2025-04-22 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967749', 'tblTempUsageDetail_20' ) end [2025-04-22 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967749', 'tblTempVendorCDR_20' ) start [2025-04-22 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967749', 'tblTempVendorCDR_20' ) end [2025-04-22 21:41:19] Production.INFO: ProcessCDR(1,14967749,1,1,2) [2025-04-22 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967749', 'tblTempUsageDetail_20' ) start [2025-04-22 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967749', 'tblTempUsageDetail_20' ) end [2025-04-22 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:41:22] Production.INFO: ==10608== Releasing lock... [2025-04-22 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:41:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-22 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:42:05 [end_date_ymd] => 2025-04-22 21:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:42:05' and `end` < '2025-04-22 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-04-22 21:42:18] Production.INFO: count ==1895 [2025-04-22 21:42:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:42:05 - End Time 2025-04-22 21:42:05 [2025-04-22 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967754', 'tblTempUsageDetail_20' ) start [2025-04-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967754', 'tblTempUsageDetail_20' ) end [2025-04-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967754', 'tblTempVendorCDR_20' ) start [2025-04-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967754', 'tblTempVendorCDR_20' ) end [2025-04-22 21:42:18] Production.INFO: ProcessCDR(1,14967754,1,1,2) [2025-04-22 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967754', 'tblTempUsageDetail_20' ) start [2025-04-22 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967754', 'tblTempUsageDetail_20' ) end [2025-04-22 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:42:22] Production.INFO: ==10718== Releasing lock... [2025-04-22 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:42:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-22 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:43:06 [end_date_ymd] => 2025-04-22 21:43:06 [RateCDR] => 1 ) [2025-04-22 21:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:43:06' and `end` < '2025-04-22 21:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:43:18] Production.INFO: count ==1891 [2025-04-22 21:43:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:43:06 - End Time 2025-04-22 21:43:06 [2025-04-22 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967759', 'tblTempUsageDetail_20' ) start [2025-04-22 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967759', 'tblTempUsageDetail_20' ) end [2025-04-22 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967759', 'tblTempVendorCDR_20' ) start [2025-04-22 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967759', 'tblTempVendorCDR_20' ) end [2025-04-22 21:43:19] Production.INFO: ProcessCDR(1,14967759,1,1,2) [2025-04-22 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967759', 'tblTempUsageDetail_20' ) start [2025-04-22 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967759', 'tblTempUsageDetail_20' ) end [2025-04-22 21:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:43:24] Production.INFO: ==10790== Releasing lock... [2025-04-22 21:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:43:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-22 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:44:05 [end_date_ymd] => 2025-04-22 21:44:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:44:05' and `end` < '2025-04-22 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-04-22 21:44:18] Production.INFO: count ==1887 [2025-04-22 21:44:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:44:05 - End Time 2025-04-22 21:44:05 [2025-04-22 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967764', 'tblTempUsageDetail_20' ) start [2025-04-22 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967764', 'tblTempUsageDetail_20' ) end [2025-04-22 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967764', 'tblTempVendorCDR_20' ) start [2025-04-22 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967764', 'tblTempVendorCDR_20' ) end [2025-04-22 21:44:19] Production.INFO: ProcessCDR(1,14967764,1,1,2) [2025-04-22 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967764', 'tblTempUsageDetail_20' ) start [2025-04-22 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967764', 'tblTempUsageDetail_20' ) end [2025-04-22 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:44:22] Production.INFO: ==10870== Releasing lock... [2025-04-22 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:44:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-22 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:45:05 [end_date_ymd] => 2025-04-22 21:45:05 [RateCDR] => 1 ) [2025-04-22 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:45:05' and `end` < '2025-04-22 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:45:17] Production.INFO: count ==1878 [2025-04-22 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 18:45:05 - End Time 2025-04-22 21:45:05 [2025-04-22 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967769', 'tblTempUsageDetail_20' ) start [2025-04-22 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967769', 'tblTempUsageDetail_20' ) end [2025-04-22 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967769', 'tblTempVendorCDR_20' ) start [2025-04-22 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967769', 'tblTempVendorCDR_20' ) end [2025-04-22 21:45:18] Production.INFO: ProcessCDR(1,14967769,1,1,2) [2025-04-22 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967769', 'tblTempUsageDetail_20' ) start [2025-04-22 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967769', 'tblTempUsageDetail_20' ) end [2025-04-22 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:45:22] Production.INFO: ==10945== Releasing lock... [2025-04-22 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:45:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-22 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:46:06 [end_date_ymd] => 2025-04-22 21:46:06 [RateCDR] => 1 ) [2025-04-22 21: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-04-22 18:46:06' and `end` < '2025-04-22 21: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-04-22 21:46:19] Production.INFO: count ==1866 [2025-04-22 21:46:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:46:06 - End Time 2025-04-22 21:46:06 [2025-04-22 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967774', 'tblTempUsageDetail_20' ) start [2025-04-22 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967774', 'tblTempUsageDetail_20' ) end [2025-04-22 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967774', 'tblTempVendorCDR_20' ) start [2025-04-22 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967774', 'tblTempVendorCDR_20' ) end [2025-04-22 21:46:19] Production.INFO: ProcessCDR(1,14967774,1,1,2) [2025-04-22 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967774', 'tblTempUsageDetail_20' ) start [2025-04-22 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967774', 'tblTempUsageDetail_20' ) end [2025-04-22 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:46:23] Production.INFO: ==11021== Releasing lock... [2025-04-22 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:46:23] Production.INFO: 42 MB #Memory Used# [2025-04-22 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:47:06 [end_date_ymd] => 2025-04-22 21:47:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:47:06' and `end` < '2025-04-22 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-04-22 21:47:19] Production.INFO: count ==1863 [2025-04-22 21:47:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:47:06 - End Time 2025-04-22 21:47:06 [2025-04-22 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967779', 'tblTempUsageDetail_20' ) start [2025-04-22 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967779', 'tblTempUsageDetail_20' ) end [2025-04-22 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967779', 'tblTempVendorCDR_20' ) start [2025-04-22 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967779', 'tblTempVendorCDR_20' ) end [2025-04-22 21:47:19] Production.INFO: ProcessCDR(1,14967779,1,1,2) [2025-04-22 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967779', 'tblTempUsageDetail_20' ) start [2025-04-22 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967779', 'tblTempUsageDetail_20' ) end [2025-04-22 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:47:23] Production.INFO: ==11094== Releasing lock... [2025-04-22 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:47:23] Production.INFO: 42 MB #Memory Used# [2025-04-22 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:48:06 [end_date_ymd] => 2025-04-22 21:48:06 [RateCDR] => 1 ) [2025-04-22 21: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-04-22 18:48:06' and `end` < '2025-04-22 21: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-04-22 21:48:19] Production.INFO: count ==1855 [2025-04-22 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:48:06 - End Time 2025-04-22 21:48:06 [2025-04-22 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967784', 'tblTempUsageDetail_20' ) start [2025-04-22 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967784', 'tblTempUsageDetail_20' ) end [2025-04-22 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967784', 'tblTempVendorCDR_20' ) start [2025-04-22 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967784', 'tblTempVendorCDR_20' ) end [2025-04-22 21:48:20] Production.INFO: ProcessCDR(1,14967784,1,1,2) [2025-04-22 21:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967784', 'tblTempUsageDetail_20' ) start [2025-04-22 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967784', 'tblTempUsageDetail_20' ) end [2025-04-22 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:48:23] Production.INFO: ==11170== Releasing lock... [2025-04-22 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:48:23] Production.INFO: 42 MB #Memory Used# [2025-04-22 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:49:05 [end_date_ymd] => 2025-04-22 21:49:05 [RateCDR] => 1 ) [2025-04-22 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:49:05' and `end` < '2025-04-22 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:49:18] Production.INFO: count ==1852 [2025-04-22 21:49:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:49:05 - End Time 2025-04-22 21:49:05 [2025-04-22 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967789', 'tblTempUsageDetail_20' ) start [2025-04-22 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967789', 'tblTempUsageDetail_20' ) end [2025-04-22 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967789', 'tblTempVendorCDR_20' ) start [2025-04-22 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967789', 'tblTempVendorCDR_20' ) end [2025-04-22 21:49:19] Production.INFO: ProcessCDR(1,14967789,1,1,2) [2025-04-22 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967789', 'tblTempUsageDetail_20' ) start [2025-04-22 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967789', 'tblTempUsageDetail_20' ) end [2025-04-22 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:49:22] Production.INFO: ==11245== Releasing lock... [2025-04-22 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:49:22] Production.INFO: 42 MB #Memory Used# [2025-04-22 21:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:50:07 [end_date_ymd] => 2025-04-22 21:50:07 [RateCDR] => 1 ) [2025-04-22 21: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-04-22 18:50:07' and `end` < '2025-04-22 21: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-04-22 21:50:19] Production.INFO: count ==1847 [2025-04-22 21:50:20] Production.ERROR: pbx CDR StartTime 2025-04-22 18:50:07 - End Time 2025-04-22 21:50:07 [2025-04-22 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967795', 'tblTempUsageDetail_20' ) start [2025-04-22 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967795', 'tblTempUsageDetail_20' ) end [2025-04-22 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967795', 'tblTempVendorCDR_20' ) start [2025-04-22 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967795', 'tblTempVendorCDR_20' ) end [2025-04-22 21:50:20] Production.INFO: ProcessCDR(1,14967795,1,1,2) [2025-04-22 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967795', 'tblTempUsageDetail_20' ) start [2025-04-22 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967795', 'tblTempUsageDetail_20' ) end [2025-04-22 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:50:24] Production.INFO: ==11318== Releasing lock... [2025-04-22 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:50:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-22 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:51:05 [end_date_ymd] => 2025-04-22 21:51:05 [RateCDR] => 1 ) [2025-04-22 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:51:05' and `end` < '2025-04-22 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:51:18] Production.INFO: count ==1801 [2025-04-22 21:51:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:51:05 - End Time 2025-04-22 21:51:05 [2025-04-22 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967800', 'tblTempUsageDetail_20' ) start [2025-04-22 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967800', 'tblTempUsageDetail_20' ) end [2025-04-22 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967800', 'tblTempVendorCDR_20' ) start [2025-04-22 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967800', 'tblTempVendorCDR_20' ) end [2025-04-22 21:51:19] Production.INFO: ProcessCDR(1,14967800,1,1,2) [2025-04-22 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967800', 'tblTempUsageDetail_20' ) start [2025-04-22 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967800', 'tblTempUsageDetail_20' ) end [2025-04-22 21:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:51:24] Production.INFO: ==11389== Releasing lock... [2025-04-22 21:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:51:24] Production.INFO: 42 MB #Memory Used# [2025-04-22 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:52:06 [end_date_ymd] => 2025-04-22 21:52:06 [RateCDR] => 1 ) [2025-04-22 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:52:06' and `end` < '2025-04-22 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:52:19] Production.INFO: count ==1799 [2025-04-22 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:52:06 - End Time 2025-04-22 21:52:06 [2025-04-22 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967805', 'tblTempUsageDetail_20' ) start [2025-04-22 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967805', 'tblTempUsageDetail_20' ) end [2025-04-22 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967805', 'tblTempVendorCDR_20' ) start [2025-04-22 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967805', 'tblTempVendorCDR_20' ) end [2025-04-22 21:52:19] Production.INFO: ProcessCDR(1,14967805,1,1,2) [2025-04-22 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967805', 'tblTempUsageDetail_20' ) start [2025-04-22 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967805', 'tblTempUsageDetail_20' ) end [2025-04-22 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:52:23] Production.INFO: ==11458== Releasing lock... [2025-04-22 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:52:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-22 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:53:05 [end_date_ymd] => 2025-04-22 21:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:53:05' and `end` < '2025-04-22 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-04-22 21:53:18] Production.INFO: count ==1788 [2025-04-22 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:53:05 - End Time 2025-04-22 21:53:05 [2025-04-22 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967810', 'tblTempUsageDetail_20' ) start [2025-04-22 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967810', 'tblTempUsageDetail_20' ) end [2025-04-22 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967810', 'tblTempVendorCDR_20' ) start [2025-04-22 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967810', 'tblTempVendorCDR_20' ) end [2025-04-22 21:53:19] Production.INFO: ProcessCDR(1,14967810,1,1,2) [2025-04-22 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967810', 'tblTempUsageDetail_20' ) start [2025-04-22 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967810', 'tblTempUsageDetail_20' ) end [2025-04-22 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:53:22] Production.INFO: ==11534== Releasing lock... [2025-04-22 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:53:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-22 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:54:06 [end_date_ymd] => 2025-04-22 21:54:06 [RateCDR] => 1 ) [2025-04-22 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:54:06' and `end` < '2025-04-22 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:54:19] Production.INFO: count ==1786 [2025-04-22 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:54:06 - End Time 2025-04-22 21:54:06 [2025-04-22 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967815', 'tblTempUsageDetail_20' ) start [2025-04-22 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967815', 'tblTempUsageDetail_20' ) end [2025-04-22 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967815', 'tblTempVendorCDR_20' ) start [2025-04-22 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967815', 'tblTempVendorCDR_20' ) end [2025-04-22 21:54:19] Production.INFO: ProcessCDR(1,14967815,1,1,2) [2025-04-22 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967815', 'tblTempUsageDetail_20' ) start [2025-04-22 21:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967815', 'tblTempUsageDetail_20' ) end [2025-04-22 21:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:54:24] Production.INFO: ==11607== Releasing lock... [2025-04-22 21:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:54:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-22 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:55:05 [end_date_ymd] => 2025-04-22 21:55:05 [RateCDR] => 1 ) [2025-04-22 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:55:05' and `end` < '2025-04-22 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:55:18] Production.INFO: count ==1786 [2025-04-22 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:55:05 - End Time 2025-04-22 21:55:05 [2025-04-22 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967820', 'tblTempUsageDetail_20' ) start [2025-04-22 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967820', 'tblTempUsageDetail_20' ) end [2025-04-22 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967820', 'tblTempVendorCDR_20' ) start [2025-04-22 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967820', 'tblTempVendorCDR_20' ) end [2025-04-22 21:55:19] Production.INFO: ProcessCDR(1,14967820,1,1,2) [2025-04-22 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967820', 'tblTempUsageDetail_20' ) start [2025-04-22 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967820', 'tblTempUsageDetail_20' ) end [2025-04-22 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:55:22] Production.INFO: ==11683== Releasing lock... [2025-04-22 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:55:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-22 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:56:06 [end_date_ymd] => 2025-04-22 21:56:06 [RateCDR] => 1 ) [2025-04-22 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:56:06' and `end` < '2025-04-22 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:56:19] Production.INFO: count ==1775 [2025-04-22 21:56:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:56:06 - End Time 2025-04-22 21:56:06 [2025-04-22 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967825', 'tblTempUsageDetail_20' ) start [2025-04-22 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967825', 'tblTempUsageDetail_20' ) end [2025-04-22 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967825', 'tblTempVendorCDR_20' ) start [2025-04-22 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967825', 'tblTempVendorCDR_20' ) end [2025-04-22 21:56:19] Production.INFO: ProcessCDR(1,14967825,1,1,2) [2025-04-22 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967825', 'tblTempUsageDetail_20' ) start [2025-04-22 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967825', 'tblTempUsageDetail_20' ) end [2025-04-22 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:56:23] Production.INFO: ==11753== Releasing lock... [2025-04-22 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:56:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-22 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:57:05 [end_date_ymd] => 2025-04-22 21:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 18:57:05' and `end` < '2025-04-22 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-04-22 21:57:18] Production.INFO: count ==1768 [2025-04-22 21:57:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:57:05 - End Time 2025-04-22 21:57:05 [2025-04-22 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967830', 'tblTempUsageDetail_20' ) start [2025-04-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967830', 'tblTempUsageDetail_20' ) end [2025-04-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967830', 'tblTempVendorCDR_20' ) start [2025-04-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967830', 'tblTempVendorCDR_20' ) end [2025-04-22 21:57:19] Production.INFO: ProcessCDR(1,14967830,1,1,2) [2025-04-22 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967830', 'tblTempUsageDetail_20' ) start [2025-04-22 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967830', 'tblTempUsageDetail_20' ) end [2025-04-22 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:57:22] Production.INFO: ==11863== Releasing lock... [2025-04-22 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:57:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-22 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:58:05 [end_date_ymd] => 2025-04-22 21:58:05 [RateCDR] => 1 ) [2025-04-22 21:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:58:05' and `end` < '2025-04-22 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-04-22 21:58:18] Production.INFO: count ==1766 [2025-04-22 21:58:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:58:05 - End Time 2025-04-22 21:58:05 [2025-04-22 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967835', 'tblTempUsageDetail_20' ) start [2025-04-22 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967835', 'tblTempUsageDetail_20' ) end [2025-04-22 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967835', 'tblTempVendorCDR_20' ) start [2025-04-22 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967835', 'tblTempVendorCDR_20' ) end [2025-04-22 21:58:19] Production.INFO: ProcessCDR(1,14967835,1,1,2) [2025-04-22 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967835', 'tblTempUsageDetail_20' ) start [2025-04-22 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967835', 'tblTempUsageDetail_20' ) end [2025-04-22 21:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:58:24] Production.INFO: ==11937== Releasing lock... [2025-04-22 21:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:58:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-22 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 18:59:05 [end_date_ymd] => 2025-04-22 21:59:05 [RateCDR] => 1 ) [2025-04-22 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 18:59:05' and `end` < '2025-04-22 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 21:59:18] Production.INFO: count ==1765 [2025-04-22 21:59:19] Production.ERROR: pbx CDR StartTime 2025-04-22 18:59:05 - End Time 2025-04-22 21:59:05 [2025-04-22 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967840', 'tblTempUsageDetail_20' ) start [2025-04-22 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967840', 'tblTempUsageDetail_20' ) end [2025-04-22 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967840', 'tblTempVendorCDR_20' ) start [2025-04-22 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967840', 'tblTempVendorCDR_20' ) end [2025-04-22 21:59:19] Production.INFO: ProcessCDR(1,14967840,1,1,2) [2025-04-22 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967840', 'tblTempUsageDetail_20' ) start [2025-04-22 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967840', 'tblTempUsageDetail_20' ) end [2025-04-22 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 21:59:23] Production.INFO: ==12012== Releasing lock... [2025-04-22 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 21:59:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-22 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:00:07 [end_date_ymd] => 2025-04-22 22:00:07 [RateCDR] => 1 ) [2025-04-22 22:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:00:07' and `end` < '2025-04-22 22:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:00:20] Production.INFO: count ==1768 [2025-04-22 22:00:20] Production.ERROR: pbx CDR StartTime 2025-04-22 19:00:07 - End Time 2025-04-22 22:00:07 [2025-04-22 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967846', 'tblTempUsageDetail_20' ) start [2025-04-22 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967846', 'tblTempUsageDetail_20' ) end [2025-04-22 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967846', 'tblTempVendorCDR_20' ) start [2025-04-22 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967846', 'tblTempVendorCDR_20' ) end [2025-04-22 22:00:20] Production.INFO: ProcessCDR(1,14967846,1,1,2) [2025-04-22 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967846', 'tblTempUsageDetail_20' ) start [2025-04-22 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967846', 'tblTempUsageDetail_20' ) end [2025-04-22 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:00:24] Production.INFO: ==12092== Releasing lock... [2025-04-22 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:00:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-22 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:01:05 [end_date_ymd] => 2025-04-22 22:01:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:01:05' and `end` < '2025-04-22 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-04-22 22:01:18] Production.INFO: count ==1756 [2025-04-22 22:01:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:01:05 - End Time 2025-04-22 22:01:05 [2025-04-22 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967851', 'tblTempUsageDetail_20' ) start [2025-04-22 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967851', 'tblTempUsageDetail_20' ) end [2025-04-22 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967851', 'tblTempVendorCDR_20' ) start [2025-04-22 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967851', 'tblTempVendorCDR_20' ) end [2025-04-22 22:01:19] Production.INFO: ProcessCDR(1,14967851,1,1,2) [2025-04-22 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967851', 'tblTempUsageDetail_20' ) start [2025-04-22 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967851', 'tblTempUsageDetail_20' ) end [2025-04-22 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:01:22] Production.INFO: ==12183== Releasing lock... [2025-04-22 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:01:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-22 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:02:06 [end_date_ymd] => 2025-04-22 22:02:06 [RateCDR] => 1 ) [2025-04-22 22: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-04-22 19:02:06' and `end` < '2025-04-22 22: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-04-22 22:02:19] Production.INFO: count ==1751 [2025-04-22 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:02:06 - End Time 2025-04-22 22:02:06 [2025-04-22 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967856', 'tblTempUsageDetail_20' ) start [2025-04-22 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967856', 'tblTempUsageDetail_20' ) end [2025-04-22 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967856', 'tblTempVendorCDR_20' ) start [2025-04-22 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967856', 'tblTempVendorCDR_20' ) end [2025-04-22 22:02:19] Production.INFO: ProcessCDR(1,14967856,1,1,2) [2025-04-22 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967856', 'tblTempUsageDetail_20' ) start [2025-04-22 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967856', 'tblTempUsageDetail_20' ) end [2025-04-22 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:02:23] Production.INFO: ==12260== Releasing lock... [2025-04-22 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:02:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-22 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:03:05 [end_date_ymd] => 2025-04-22 22:03:05 [RateCDR] => 1 ) [2025-04-22 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:03:05' and `end` < '2025-04-22 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:03:18] Production.INFO: count ==1746 [2025-04-22 22:03:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:03:05 - End Time 2025-04-22 22:03:05 [2025-04-22 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967861', 'tblTempUsageDetail_20' ) start [2025-04-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967861', 'tblTempUsageDetail_20' ) end [2025-04-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967861', 'tblTempVendorCDR_20' ) start [2025-04-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967861', 'tblTempVendorCDR_20' ) end [2025-04-22 22:03:18] Production.INFO: ProcessCDR(1,14967861,1,1,2) [2025-04-22 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967861', 'tblTempUsageDetail_20' ) start [2025-04-22 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967861', 'tblTempUsageDetail_20' ) end [2025-04-22 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:03:22] Production.INFO: ==12336== Releasing lock... [2025-04-22 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:03:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-22 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:04:05 [end_date_ymd] => 2025-04-22 22:04:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:04:05' and `end` < '2025-04-22 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:04:18] Production.INFO: count ==1739 [2025-04-22 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:04:05 - End Time 2025-04-22 22:04:05 [2025-04-22 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967866', 'tblTempUsageDetail_20' ) start [2025-04-22 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967866', 'tblTempUsageDetail_20' ) end [2025-04-22 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967866', 'tblTempVendorCDR_20' ) start [2025-04-22 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967866', 'tblTempVendorCDR_20' ) end [2025-04-22 22:04:19] Production.INFO: ProcessCDR(1,14967866,1,1,2) [2025-04-22 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967866', 'tblTempUsageDetail_20' ) start [2025-04-22 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967866', 'tblTempUsageDetail_20' ) end [2025-04-22 22:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:04:24] Production.INFO: ==12411== Releasing lock... [2025-04-22 22:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:04:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-22 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:05:05 [end_date_ymd] => 2025-04-22 22:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:05:05' and `end` < '2025-04-22 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-04-22 22:05:18] Production.INFO: count ==1738 [2025-04-22 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:05:05 - End Time 2025-04-22 22:05:05 [2025-04-22 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967871', 'tblTempUsageDetail_20' ) start [2025-04-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967871', 'tblTempUsageDetail_20' ) end [2025-04-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967871', 'tblTempVendorCDR_20' ) start [2025-04-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967871', 'tblTempVendorCDR_20' ) end [2025-04-22 22:05:18] Production.INFO: ProcessCDR(1,14967871,1,1,2) [2025-04-22 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967871', 'tblTempUsageDetail_20' ) start [2025-04-22 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967871', 'tblTempUsageDetail_20' ) end [2025-04-22 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:05:22] Production.INFO: ==12482== Releasing lock... [2025-04-22 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:05:22] Production.INFO: 41 MB #Memory Used# [2025-04-22 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:06:05 [end_date_ymd] => 2025-04-22 22:06:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:06:05' and `end` < '2025-04-22 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-04-22 22:06:18] Production.INFO: count ==1732 [2025-04-22 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:06:05 - End Time 2025-04-22 22:06:05 [2025-04-22 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967876', 'tblTempUsageDetail_20' ) start [2025-04-22 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967876', 'tblTempUsageDetail_20' ) end [2025-04-22 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967876', 'tblTempVendorCDR_20' ) start [2025-04-22 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967876', 'tblTempVendorCDR_20' ) end [2025-04-22 22:06:19] Production.INFO: ProcessCDR(1,14967876,1,1,2) [2025-04-22 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967876', 'tblTempUsageDetail_20' ) start [2025-04-22 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967876', 'tblTempUsageDetail_20' ) end [2025-04-22 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:06:22] Production.INFO: ==12555== Releasing lock... [2025-04-22 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:06:22] Production.INFO: 41 MB #Memory Used# [2025-04-22 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:07:05 [end_date_ymd] => 2025-04-22 22:07:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:07:05' and `end` < '2025-04-22 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-04-22 22:07:18] Production.INFO: count ==1725 [2025-04-22 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:07:05 - End Time 2025-04-22 22:07:05 [2025-04-22 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967881', 'tblTempUsageDetail_20' ) start [2025-04-22 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967881', 'tblTempUsageDetail_20' ) end [2025-04-22 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967881', 'tblTempVendorCDR_20' ) start [2025-04-22 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967881', 'tblTempVendorCDR_20' ) end [2025-04-22 22:07:19] Production.INFO: ProcessCDR(1,14967881,1,1,2) [2025-04-22 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967881', 'tblTempUsageDetail_20' ) start [2025-04-22 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967881', 'tblTempUsageDetail_20' ) end [2025-04-22 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:07:22] Production.INFO: ==12630== Releasing lock... [2025-04-22 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:07:22] Production.INFO: 41 MB #Memory Used# [2025-04-22 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:08:06 [end_date_ymd] => 2025-04-22 22:08:06 [RateCDR] => 1 ) [2025-04-22 22:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:08:06' and `end` < '2025-04-22 22:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:08:18] Production.INFO: count ==1714 [2025-04-22 22:08:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:08:06 - End Time 2025-04-22 22:08:06 [2025-04-22 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967886', 'tblTempUsageDetail_20' ) start [2025-04-22 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967886', 'tblTempUsageDetail_20' ) end [2025-04-22 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967886', 'tblTempVendorCDR_20' ) start [2025-04-22 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967886', 'tblTempVendorCDR_20' ) end [2025-04-22 22:08:19] Production.INFO: ProcessCDR(1,14967886,1,1,2) [2025-04-22 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967886', 'tblTempUsageDetail_20' ) start [2025-04-22 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967886', 'tblTempUsageDetail_20' ) end [2025-04-22 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:08:23] Production.INFO: ==12704== Releasing lock... [2025-04-22 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:08:23] Production.INFO: 41 MB #Memory Used# [2025-04-22 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:09:05 [end_date_ymd] => 2025-04-22 22:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:09:05' and `end` < '2025-04-22 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-04-22 22:09:18] Production.INFO: count ==1713 [2025-04-22 22:09:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:09:05 - End Time 2025-04-22 22:09:05 [2025-04-22 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967891', 'tblTempUsageDetail_20' ) start [2025-04-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967891', 'tblTempUsageDetail_20' ) end [2025-04-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967891', 'tblTempVendorCDR_20' ) start [2025-04-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967891', 'tblTempVendorCDR_20' ) end [2025-04-22 22:09:18] Production.INFO: ProcessCDR(1,14967891,1,1,2) [2025-04-22 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967891', 'tblTempUsageDetail_20' ) start [2025-04-22 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967891', 'tblTempUsageDetail_20' ) end [2025-04-22 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:09:22] Production.INFO: ==12776== Releasing lock... [2025-04-22 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:09:22] Production.INFO: 41 MB #Memory Used# [2025-04-22 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:10:06 [end_date_ymd] => 2025-04-22 22:10:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:10:06' and `end` < '2025-04-22 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-04-22 22:10:19] Production.INFO: count ==1706 [2025-04-22 22:10:20] Production.ERROR: pbx CDR StartTime 2025-04-22 19:10:06 - End Time 2025-04-22 22:10:06 [2025-04-22 22:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967896', 'tblTempUsageDetail_20' ) start [2025-04-22 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967896', 'tblTempUsageDetail_20' ) end [2025-04-22 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967896', 'tblTempVendorCDR_20' ) start [2025-04-22 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967896', 'tblTempVendorCDR_20' ) end [2025-04-22 22:10:20] Production.INFO: ProcessCDR(1,14967896,1,1,2) [2025-04-22 22:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967896', 'tblTempUsageDetail_20' ) start [2025-04-22 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967896', 'tblTempUsageDetail_20' ) end [2025-04-22 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:10:23] Production.INFO: ==12849== Releasing lock... [2025-04-22 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:10:23] Production.INFO: 41 MB #Memory Used# [2025-04-22 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:11:05 [end_date_ymd] => 2025-04-22 22:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:11:05' and `end` < '2025-04-22 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-04-22 22:11:18] Production.INFO: count ==1711 [2025-04-22 22:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:11:05 - End Time 2025-04-22 22:11:05 [2025-04-22 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967902', 'tblTempUsageDetail_20' ) start [2025-04-22 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967902', 'tblTempUsageDetail_20' ) end [2025-04-22 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967902', 'tblTempVendorCDR_20' ) start [2025-04-22 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967902', 'tblTempVendorCDR_20' ) end [2025-04-22 22:11:18] Production.INFO: ProcessCDR(1,14967902,1,1,2) [2025-04-22 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967902', 'tblTempUsageDetail_20' ) start [2025-04-22 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967902', 'tblTempUsageDetail_20' ) end [2025-04-22 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:11:22] Production.INFO: ==12921== Releasing lock... [2025-04-22 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:11:22] Production.INFO: 41 MB #Memory Used# [2025-04-22 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:12:06 [end_date_ymd] => 2025-04-22 22:12:06 [RateCDR] => 1 ) [2025-04-22 22:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:12:06' and `end` < '2025-04-22 22:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:12:19] Production.INFO: count ==1698 [2025-04-22 22:12:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:12:06 - End Time 2025-04-22 22:12:06 [2025-04-22 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967907', 'tblTempUsageDetail_20' ) start [2025-04-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967907', 'tblTempUsageDetail_20' ) end [2025-04-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967907', 'tblTempVendorCDR_20' ) start [2025-04-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967907', 'tblTempVendorCDR_20' ) end [2025-04-22 22:12:19] Production.INFO: ProcessCDR(1,14967907,1,1,2) [2025-04-22 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967907', 'tblTempUsageDetail_20' ) start [2025-04-22 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967907', 'tblTempUsageDetail_20' ) end [2025-04-22 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:12:23] Production.INFO: ==13036== Releasing lock... [2025-04-22 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:12:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-22 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:13:05 [end_date_ymd] => 2025-04-22 22:13:05 [RateCDR] => 1 ) [2025-04-22 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:13:05' and `end` < '2025-04-22 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:13:18] Production.INFO: count ==1688 [2025-04-22 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:13:05 - End Time 2025-04-22 22:13:05 [2025-04-22 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967912', 'tblTempUsageDetail_20' ) start [2025-04-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967912', 'tblTempUsageDetail_20' ) end [2025-04-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967912', 'tblTempVendorCDR_20' ) start [2025-04-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967912', 'tblTempVendorCDR_20' ) end [2025-04-22 22:13:18] Production.INFO: ProcessCDR(1,14967912,1,1,2) [2025-04-22 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967912', 'tblTempUsageDetail_20' ) start [2025-04-22 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967912', 'tblTempUsageDetail_20' ) end [2025-04-22 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:13:22] Production.INFO: ==13107== Releasing lock... [2025-04-22 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:13:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-22 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:14:05 [end_date_ymd] => 2025-04-22 22:14:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:14:05' and `end` < '2025-04-22 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-04-22 22:14:18] Production.INFO: count ==1684 [2025-04-22 22:14:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:14:05 - End Time 2025-04-22 22:14:05 [2025-04-22 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967917', 'tblTempUsageDetail_20' ) start [2025-04-22 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967917', 'tblTempUsageDetail_20' ) end [2025-04-22 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967917', 'tblTempVendorCDR_20' ) start [2025-04-22 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967917', 'tblTempVendorCDR_20' ) end [2025-04-22 22:14:19] Production.INFO: ProcessCDR(1,14967917,1,1,2) [2025-04-22 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967917', 'tblTempUsageDetail_20' ) start [2025-04-22 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967917', 'tblTempUsageDetail_20' ) end [2025-04-22 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:14:22] Production.INFO: ==13189== Releasing lock... [2025-04-22 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:14:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-22 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:15:05 [end_date_ymd] => 2025-04-22 22:15:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:15:05' and `end` < '2025-04-22 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-04-22 22:15:17] Production.INFO: count ==1683 [2025-04-22 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:15:05 - End Time 2025-04-22 22:15:05 [2025-04-22 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967922', 'tblTempUsageDetail_20' ) start [2025-04-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967922', 'tblTempUsageDetail_20' ) end [2025-04-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967922', 'tblTempVendorCDR_20' ) start [2025-04-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967922', 'tblTempVendorCDR_20' ) end [2025-04-22 22:15:18] Production.INFO: ProcessCDR(1,14967922,1,1,2) [2025-04-22 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967922', 'tblTempUsageDetail_20' ) start [2025-04-22 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967922', 'tblTempUsageDetail_20' ) end [2025-04-22 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:15:23] Production.INFO: ==13264== Releasing lock... [2025-04-22 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:15:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:16:05 [end_date_ymd] => 2025-04-22 22:16:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:16:05' and `end` < '2025-04-22 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-04-22 22:16:18] Production.INFO: count ==1680 [2025-04-22 22:16:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:16:05 - End Time 2025-04-22 22:16:05 [2025-04-22 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967927', 'tblTempUsageDetail_20' ) start [2025-04-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967927', 'tblTempUsageDetail_20' ) end [2025-04-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967927', 'tblTempVendorCDR_20' ) start [2025-04-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967927', 'tblTempVendorCDR_20' ) end [2025-04-22 22:16:18] Production.INFO: ProcessCDR(1,14967927,1,1,2) [2025-04-22 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967927', 'tblTempUsageDetail_20' ) start [2025-04-22 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967927', 'tblTempUsageDetail_20' ) end [2025-04-22 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:16:22] Production.INFO: ==13336== Releasing lock... [2025-04-22 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:16:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:17:06 [end_date_ymd] => 2025-04-22 22:17:06 [RateCDR] => 1 ) [2025-04-22 22:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:17:06' and `end` < '2025-04-22 22:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:17:19] Production.INFO: count ==1676 [2025-04-22 22:17:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:17:06 - End Time 2025-04-22 22:17:06 [2025-04-22 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967932', 'tblTempUsageDetail_20' ) start [2025-04-22 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967932', 'tblTempUsageDetail_20' ) end [2025-04-22 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967932', 'tblTempVendorCDR_20' ) start [2025-04-22 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967932', 'tblTempVendorCDR_20' ) end [2025-04-22 22:17:19] Production.INFO: ProcessCDR(1,14967932,1,1,2) [2025-04-22 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967932', 'tblTempUsageDetail_20' ) start [2025-04-22 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967932', 'tblTempUsageDetail_20' ) end [2025-04-22 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:17:23] Production.INFO: ==13411== Releasing lock... [2025-04-22 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:17:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:18:05 [end_date_ymd] => 2025-04-22 22:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:18:05' and `end` < '2025-04-22 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-04-22 22:18:18] Production.INFO: count ==1661 [2025-04-22 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:18:05 - End Time 2025-04-22 22:18:05 [2025-04-22 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967937', 'tblTempUsageDetail_20' ) start [2025-04-22 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967937', 'tblTempUsageDetail_20' ) end [2025-04-22 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967937', 'tblTempVendorCDR_20' ) start [2025-04-22 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967937', 'tblTempVendorCDR_20' ) end [2025-04-22 22:18:19] Production.INFO: ProcessCDR(1,14967937,1,1,2) [2025-04-22 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967937', 'tblTempUsageDetail_20' ) start [2025-04-22 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967937', 'tblTempUsageDetail_20' ) end [2025-04-22 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:18:22] Production.INFO: ==13481== Releasing lock... [2025-04-22 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:18:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-22 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:19:06 [end_date_ymd] => 2025-04-22 22:19:06 [RateCDR] => 1 ) [2025-04-22 22:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:19:06' and `end` < '2025-04-22 22:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:19:19] Production.INFO: count ==1664 [2025-04-22 22:19:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:19:06 - End Time 2025-04-22 22:19:06 [2025-04-22 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967942', 'tblTempUsageDetail_20' ) start [2025-04-22 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967942', 'tblTempUsageDetail_20' ) end [2025-04-22 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967942', 'tblTempVendorCDR_20' ) start [2025-04-22 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967942', 'tblTempVendorCDR_20' ) end [2025-04-22 22:19:19] Production.INFO: ProcessCDR(1,14967942,1,1,2) [2025-04-22 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967942', 'tblTempUsageDetail_20' ) start [2025-04-22 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967942', 'tblTempUsageDetail_20' ) end [2025-04-22 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:19:23] Production.INFO: ==13553== Releasing lock... [2025-04-22 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:19:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:20:06 [end_date_ymd] => 2025-04-22 22:20:06 [RateCDR] => 1 ) [2025-04-22 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:20:06' and `end` < '2025-04-22 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:20:19] Production.INFO: count ==1659 [2025-04-22 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:20:06 - End Time 2025-04-22 22:20:06 [2025-04-22 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967948', 'tblTempUsageDetail_20' ) start [2025-04-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967948', 'tblTempUsageDetail_20' ) end [2025-04-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967948', 'tblTempVendorCDR_20' ) start [2025-04-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967948', 'tblTempVendorCDR_20' ) end [2025-04-22 22:20:19] Production.INFO: ProcessCDR(1,14967948,1,1,2) [2025-04-22 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967948', 'tblTempUsageDetail_20' ) start [2025-04-22 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967948', 'tblTempUsageDetail_20' ) end [2025-04-22 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:20:23] Production.INFO: ==13628== Releasing lock... [2025-04-22 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:20:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-22 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:21:05 [end_date_ymd] => 2025-04-22 22:21:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:21:05' and `end` < '2025-04-22 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-04-22 22:21:18] Production.INFO: count ==1644 [2025-04-22 22:21:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:21:05 - End Time 2025-04-22 22:21:05 [2025-04-22 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967953', 'tblTempUsageDetail_20' ) start [2025-04-22 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967953', 'tblTempUsageDetail_20' ) end [2025-04-22 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967953', 'tblTempVendorCDR_20' ) start [2025-04-22 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967953', 'tblTempVendorCDR_20' ) end [2025-04-22 22:21:19] Production.INFO: ProcessCDR(1,14967953,1,1,2) [2025-04-22 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967953', 'tblTempUsageDetail_20' ) start [2025-04-22 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967953', 'tblTempUsageDetail_20' ) end [2025-04-22 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:21:22] Production.INFO: ==13703== Releasing lock... [2025-04-22 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:21:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:22:05 [end_date_ymd] => 2025-04-22 22:22:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:22:05' and `end` < '2025-04-22 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-04-22 22:22:18] Production.INFO: count ==1640 [2025-04-22 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:22:05 - End Time 2025-04-22 22:22:05 [2025-04-22 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967958', 'tblTempUsageDetail_20' ) start [2025-04-22 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967958', 'tblTempUsageDetail_20' ) end [2025-04-22 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967958', 'tblTempVendorCDR_20' ) start [2025-04-22 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967958', 'tblTempVendorCDR_20' ) end [2025-04-22 22:22:19] Production.INFO: ProcessCDR(1,14967958,1,1,2) [2025-04-22 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967958', 'tblTempUsageDetail_20' ) start [2025-04-22 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967958', 'tblTempUsageDetail_20' ) end [2025-04-22 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:22:22] Production.INFO: ==13777== Releasing lock... [2025-04-22 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:22:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:23:05 [end_date_ymd] => 2025-04-22 22:23:05 [RateCDR] => 1 ) [2025-04-22 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:23:05' and `end` < '2025-04-22 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:23:18] Production.INFO: count ==1635 [2025-04-22 22:23:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:23:05 - End Time 2025-04-22 22:23:05 [2025-04-22 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967963', 'tblTempUsageDetail_20' ) start [2025-04-22 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967963', 'tblTempUsageDetail_20' ) end [2025-04-22 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967963', 'tblTempVendorCDR_20' ) start [2025-04-22 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967963', 'tblTempVendorCDR_20' ) end [2025-04-22 22:23:19] Production.INFO: ProcessCDR(1,14967963,1,1,2) [2025-04-22 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967963', 'tblTempUsageDetail_20' ) start [2025-04-22 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967963', 'tblTempUsageDetail_20' ) end [2025-04-22 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:23:22] Production.INFO: ==13851== Releasing lock... [2025-04-22 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:23:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:24:05 [end_date_ymd] => 2025-04-22 22:24:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:24:05' and `end` < '2025-04-22 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-04-22 22:24:18] Production.INFO: count ==1636 [2025-04-22 22:24:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:24:05 - End Time 2025-04-22 22:24:05 [2025-04-22 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967968', 'tblTempUsageDetail_20' ) start [2025-04-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967968', 'tblTempUsageDetail_20' ) end [2025-04-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967968', 'tblTempVendorCDR_20' ) start [2025-04-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967968', 'tblTempVendorCDR_20' ) end [2025-04-22 22:24:18] Production.INFO: ProcessCDR(1,14967968,1,1,2) [2025-04-22 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967968', 'tblTempUsageDetail_20' ) start [2025-04-22 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967968', 'tblTempUsageDetail_20' ) end [2025-04-22 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:24:22] Production.INFO: ==13925== Releasing lock... [2025-04-22 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:24:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-22 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:25:05 [end_date_ymd] => 2025-04-22 22:25:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:25:05' and `end` < '2025-04-22 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-04-22 22:25:18] Production.INFO: count ==1636 [2025-04-22 22:25:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:25:05 - End Time 2025-04-22 22:25:05 [2025-04-22 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967973', 'tblTempUsageDetail_20' ) start [2025-04-22 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967973', 'tblTempUsageDetail_20' ) end [2025-04-22 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967973', 'tblTempVendorCDR_20' ) start [2025-04-22 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967973', 'tblTempVendorCDR_20' ) end [2025-04-22 22:25:19] Production.INFO: ProcessCDR(1,14967973,1,1,2) [2025-04-22 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967973', 'tblTempUsageDetail_20' ) start [2025-04-22 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967973', 'tblTempUsageDetail_20' ) end [2025-04-22 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:25:22] Production.INFO: ==13997== Releasing lock... [2025-04-22 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:25:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:26:05 [end_date_ymd] => 2025-04-22 22:26:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:26:05' and `end` < '2025-04-22 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-04-22 22:26:18] Production.INFO: count ==1636 [2025-04-22 22:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:26:05 - End Time 2025-04-22 22:26:05 [2025-04-22 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967978', 'tblTempUsageDetail_20' ) start [2025-04-22 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967978', 'tblTempUsageDetail_20' ) end [2025-04-22 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967978', 'tblTempVendorCDR_20' ) start [2025-04-22 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967978', 'tblTempVendorCDR_20' ) end [2025-04-22 22:26:18] Production.INFO: ProcessCDR(1,14967978,1,1,2) [2025-04-22 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967978', 'tblTempUsageDetail_20' ) start [2025-04-22 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967978', 'tblTempUsageDetail_20' ) end [2025-04-22 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:26:23] Production.INFO: ==14070== Releasing lock... [2025-04-22 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:26:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:27:06 [end_date_ymd] => 2025-04-22 22:27:06 [RateCDR] => 1 ) [2025-04-22 22:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:27:06' and `end` < '2025-04-22 22:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:27:18] Production.INFO: count ==1639 [2025-04-22 22:27:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:27:06 - End Time 2025-04-22 22:27:06 [2025-04-22 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967983', 'tblTempUsageDetail_20' ) start [2025-04-22 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967983', 'tblTempUsageDetail_20' ) end [2025-04-22 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967983', 'tblTempVendorCDR_20' ) start [2025-04-22 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967983', 'tblTempVendorCDR_20' ) end [2025-04-22 22:27:19] Production.INFO: ProcessCDR(1,14967983,1,1,2) [2025-04-22 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967983', 'tblTempUsageDetail_20' ) start [2025-04-22 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967983', 'tblTempUsageDetail_20' ) end [2025-04-22 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:27:22] Production.INFO: ==14143== Releasing lock... [2025-04-22 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:27:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:28:05 [end_date_ymd] => 2025-04-22 22:28:05 [RateCDR] => 1 ) [2025-04-22 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:28:05' and `end` < '2025-04-22 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:28:18] Production.INFO: count ==1637 [2025-04-22 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:28:05 - End Time 2025-04-22 22:28:05 [2025-04-22 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967988', 'tblTempUsageDetail_20' ) start [2025-04-22 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967988', 'tblTempUsageDetail_20' ) end [2025-04-22 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967988', 'tblTempVendorCDR_20' ) start [2025-04-22 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967988', 'tblTempVendorCDR_20' ) end [2025-04-22 22:28:19] Production.INFO: ProcessCDR(1,14967988,1,1,2) [2025-04-22 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967988', 'tblTempUsageDetail_20' ) start [2025-04-22 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967988', 'tblTempUsageDetail_20' ) end [2025-04-22 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:28:22] Production.INFO: ==14263== Releasing lock... [2025-04-22 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:28:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-22 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:29:05 [end_date_ymd] => 2025-04-22 22:29:05 [RateCDR] => 1 ) [2025-04-22 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:29:05' and `end` < '2025-04-22 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:29:18] Production.INFO: count ==1632 [2025-04-22 22:29:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:29:05 - End Time 2025-04-22 22:29:05 [2025-04-22 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967993', 'tblTempUsageDetail_20' ) start [2025-04-22 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967993', 'tblTempUsageDetail_20' ) end [2025-04-22 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967993', 'tblTempVendorCDR_20' ) start [2025-04-22 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967993', 'tblTempVendorCDR_20' ) end [2025-04-22 22:29:19] Production.INFO: ProcessCDR(1,14967993,1,1,2) [2025-04-22 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967993', 'tblTempUsageDetail_20' ) start [2025-04-22 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967993', 'tblTempUsageDetail_20' ) end [2025-04-22 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:29:22] Production.INFO: ==14337== Releasing lock... [2025-04-22 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:29:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-22 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:30:06 [end_date_ymd] => 2025-04-22 22:30:06 [RateCDR] => 1 ) [2025-04-22 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:30:06' and `end` < '2025-04-22 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:30:19] Production.INFO: count ==1637 [2025-04-22 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:30:06 - End Time 2025-04-22 22:30:06 [2025-04-22 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967999', 'tblTempUsageDetail_20' ) start [2025-04-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14967999', 'tblTempUsageDetail_20' ) end [2025-04-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967999', 'tblTempVendorCDR_20' ) start [2025-04-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14967999', 'tblTempVendorCDR_20' ) end [2025-04-22 22:30:19] Production.INFO: ProcessCDR(1,14967999,1,1,2) [2025-04-22 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14967999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14967999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14967999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14967999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967999', 'tblTempUsageDetail_20' ) start [2025-04-22 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14967999', 'tblTempUsageDetail_20' ) end [2025-04-22 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:30:23] Production.INFO: ==14414== Releasing lock... [2025-04-22 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:30:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-22 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:31:05 [end_date_ymd] => 2025-04-22 22:31:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:31:05' and `end` < '2025-04-22 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-04-22 22:31:18] Production.INFO: count ==1580 [2025-04-22 22:31:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:31:05 - End Time 2025-04-22 22:31:05 [2025-04-22 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968004', 'tblTempUsageDetail_20' ) start [2025-04-22 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968004', 'tblTempUsageDetail_20' ) end [2025-04-22 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968004', 'tblTempVendorCDR_20' ) start [2025-04-22 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968004', 'tblTempVendorCDR_20' ) end [2025-04-22 22:31:19] Production.INFO: ProcessCDR(1,14968004,1,1,2) [2025-04-22 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968004', 'tblTempUsageDetail_20' ) start [2025-04-22 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968004', 'tblTempUsageDetail_20' ) end [2025-04-22 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:31:22] Production.INFO: ==14488== Releasing lock... [2025-04-22 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:31:22] Production.INFO: 40 MB #Memory Used# [2025-04-22 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:32:05 [end_date_ymd] => 2025-04-22 22:32:05 [RateCDR] => 1 ) [2025-04-22 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:32:05' and `end` < '2025-04-22 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:32:18] Production.INFO: count ==1572 [2025-04-22 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:32:05 - End Time 2025-04-22 22:32:05 [2025-04-22 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968009', 'tblTempUsageDetail_20' ) start [2025-04-22 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968009', 'tblTempUsageDetail_20' ) end [2025-04-22 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968009', 'tblTempVendorCDR_20' ) start [2025-04-22 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968009', 'tblTempVendorCDR_20' ) end [2025-04-22 22:32:19] Production.INFO: ProcessCDR(1,14968009,1,1,2) [2025-04-22 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968009', 'tblTempUsageDetail_20' ) start [2025-04-22 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968009', 'tblTempUsageDetail_20' ) end [2025-04-22 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:32:22] Production.INFO: ==14564== Releasing lock... [2025-04-22 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:32:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:33:06 [end_date_ymd] => 2025-04-22 22:33:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:33:06' and `end` < '2025-04-22 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-04-22 22:33:18] Production.INFO: count ==1566 [2025-04-22 22:33:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:33:06 - End Time 2025-04-22 22:33:06 [2025-04-22 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968014', 'tblTempUsageDetail_20' ) start [2025-04-22 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968014', 'tblTempUsageDetail_20' ) end [2025-04-22 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968014', 'tblTempVendorCDR_20' ) start [2025-04-22 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968014', 'tblTempVendorCDR_20' ) end [2025-04-22 22:33:19] Production.INFO: ProcessCDR(1,14968014,1,1,2) [2025-04-22 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968014', 'tblTempUsageDetail_20' ) start [2025-04-22 22:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968014', 'tblTempUsageDetail_20' ) end [2025-04-22 22:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:33:24] Production.INFO: ==14639== Releasing lock... [2025-04-22 22:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:33:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:34:06 [end_date_ymd] => 2025-04-22 22:34:06 [RateCDR] => 1 ) [2025-04-22 22:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:34:06' and `end` < '2025-04-22 22:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:34:19] Production.INFO: count ==1563 [2025-04-22 22:34:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:34:06 - End Time 2025-04-22 22:34:06 [2025-04-22 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968019', 'tblTempUsageDetail_20' ) start [2025-04-22 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968019', 'tblTempUsageDetail_20' ) end [2025-04-22 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968019', 'tblTempVendorCDR_20' ) start [2025-04-22 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968019', 'tblTempVendorCDR_20' ) end [2025-04-22 22:34:19] Production.INFO: ProcessCDR(1,14968019,1,1,2) [2025-04-22 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968019', 'tblTempUsageDetail_20' ) start [2025-04-22 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968019', 'tblTempUsageDetail_20' ) end [2025-04-22 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:34:23] Production.INFO: ==14717== Releasing lock... [2025-04-22 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:34:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:35:05 [end_date_ymd] => 2025-04-22 22:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:35:05' and `end` < '2025-04-22 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-04-22 22:35:18] Production.INFO: count ==1558 [2025-04-22 22:35:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:35:05 - End Time 2025-04-22 22:35:05 [2025-04-22 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968024', 'tblTempUsageDetail_20' ) start [2025-04-22 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968024', 'tblTempUsageDetail_20' ) end [2025-04-22 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968024', 'tblTempVendorCDR_20' ) start [2025-04-22 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968024', 'tblTempVendorCDR_20' ) end [2025-04-22 22:35:19] Production.INFO: ProcessCDR(1,14968024,1,1,2) [2025-04-22 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968024', 'tblTempUsageDetail_20' ) start [2025-04-22 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968024', 'tblTempUsageDetail_20' ) end [2025-04-22 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:35:22] Production.INFO: ==14789== Releasing lock... [2025-04-22 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:35:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-22 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:36:05 [end_date_ymd] => 2025-04-22 22:36:05 [RateCDR] => 1 ) [2025-04-22 22: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-04-22 19:36:05' and `end` < '2025-04-22 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-04-22 22:36:18] Production.INFO: count ==1560 [2025-04-22 22:36:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:36:05 - End Time 2025-04-22 22:36:05 [2025-04-22 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968029', 'tblTempUsageDetail_20' ) start [2025-04-22 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968029', 'tblTempUsageDetail_20' ) end [2025-04-22 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968029', 'tblTempVendorCDR_20' ) start [2025-04-22 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968029', 'tblTempVendorCDR_20' ) end [2025-04-22 22:36:19] Production.INFO: ProcessCDR(1,14968029,1,1,2) [2025-04-22 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968029', 'tblTempUsageDetail_20' ) start [2025-04-22 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968029', 'tblTempUsageDetail_20' ) end [2025-04-22 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:36:22] Production.INFO: ==14867== Releasing lock... [2025-04-22 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:36:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:37:05 [end_date_ymd] => 2025-04-22 22:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:37:05' and `end` < '2025-04-22 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-04-22 22:37:18] Production.INFO: count ==1553 [2025-04-22 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:37:05 - End Time 2025-04-22 22:37:05 [2025-04-22 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968034', 'tblTempUsageDetail_20' ) start [2025-04-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968034', 'tblTempUsageDetail_20' ) end [2025-04-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968034', 'tblTempVendorCDR_20' ) start [2025-04-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968034', 'tblTempVendorCDR_20' ) end [2025-04-22 22:37:18] Production.INFO: ProcessCDR(1,14968034,1,1,2) [2025-04-22 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968034', 'tblTempUsageDetail_20' ) start [2025-04-22 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968034', 'tblTempUsageDetail_20' ) end [2025-04-22 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:37:22] Production.INFO: ==14941== Releasing lock... [2025-04-22 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:37:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:38:06 [end_date_ymd] => 2025-04-22 22:38:06 [RateCDR] => 1 ) [2025-04-22 22: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-04-22 19:38:06' and `end` < '2025-04-22 22: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-04-22 22:38:18] Production.INFO: count ==1549 [2025-04-22 22:38:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:38:06 - End Time 2025-04-22 22:38:06 [2025-04-22 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968039', 'tblTempUsageDetail_20' ) start [2025-04-22 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968039', 'tblTempUsageDetail_20' ) end [2025-04-22 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968039', 'tblTempVendorCDR_20' ) start [2025-04-22 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968039', 'tblTempVendorCDR_20' ) end [2025-04-22 22:38:19] Production.INFO: ProcessCDR(1,14968039,1,1,2) [2025-04-22 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968039', 'tblTempUsageDetail_20' ) start [2025-04-22 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968039', 'tblTempUsageDetail_20' ) end [2025-04-22 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:38:22] Production.INFO: ==15013== Releasing lock... [2025-04-22 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:38:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:39:05 [end_date_ymd] => 2025-04-22 22:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:39:05' and `end` < '2025-04-22 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-04-22 22:39:17] Production.INFO: count ==1549 [2025-04-22 22:39:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:39:05 - End Time 2025-04-22 22:39:05 [2025-04-22 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968044', 'tblTempUsageDetail_20' ) start [2025-04-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968044', 'tblTempUsageDetail_20' ) end [2025-04-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968044', 'tblTempVendorCDR_20' ) start [2025-04-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968044', 'tblTempVendorCDR_20' ) end [2025-04-22 22:39:18] Production.INFO: ProcessCDR(1,14968044,1,1,2) [2025-04-22 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968044', 'tblTempUsageDetail_20' ) start [2025-04-22 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968044', 'tblTempUsageDetail_20' ) end [2025-04-22 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:39:22] Production.INFO: ==15089== Releasing lock... [2025-04-22 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:39:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:40:06 [end_date_ymd] => 2025-04-22 22:40:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:40:06' and `end` < '2025-04-22 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-04-22 22:40:19] Production.INFO: count ==1546 [2025-04-22 22:40:20] Production.ERROR: pbx CDR StartTime 2025-04-22 19:40:06 - End Time 2025-04-22 22:40:06 [2025-04-22 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968049', 'tblTempUsageDetail_20' ) start [2025-04-22 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968049', 'tblTempUsageDetail_20' ) end [2025-04-22 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968049', 'tblTempVendorCDR_20' ) start [2025-04-22 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968049', 'tblTempVendorCDR_20' ) end [2025-04-22 22:40:20] Production.INFO: ProcessCDR(1,14968049,1,1,2) [2025-04-22 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968049', 'tblTempUsageDetail_20' ) start [2025-04-22 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968049', 'tblTempUsageDetail_20' ) end [2025-04-22 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:40:23] Production.INFO: ==15164== Releasing lock... [2025-04-22 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:40:23] Production.INFO: 40 MB #Memory Used# [2025-04-22 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:41:05 [end_date_ymd] => 2025-04-22 22:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:41:05' and `end` < '2025-04-22 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-04-22 22:41:18] Production.INFO: count ==1532 [2025-04-22 22:41:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:41:05 - End Time 2025-04-22 22:41:05 [2025-04-22 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968055', 'tblTempUsageDetail_20' ) start [2025-04-22 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968055', 'tblTempUsageDetail_20' ) end [2025-04-22 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968055', 'tblTempVendorCDR_20' ) start [2025-04-22 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968055', 'tblTempVendorCDR_20' ) end [2025-04-22 22:41:19] Production.INFO: ProcessCDR(1,14968055,1,1,2) [2025-04-22 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968055', 'tblTempUsageDetail_20' ) start [2025-04-22 22:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968055', 'tblTempUsageDetail_20' ) end [2025-04-22 22:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:41:24] Production.INFO: ==15250== Releasing lock... [2025-04-22 22:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:41:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-22 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:42:05 [end_date_ymd] => 2025-04-22 22:42:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:42:05' and `end` < '2025-04-22 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-04-22 22:42:18] Production.INFO: count ==1533 [2025-04-22 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:42:05 - End Time 2025-04-22 22:42:05 [2025-04-22 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968060', 'tblTempUsageDetail_20' ) start [2025-04-22 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968060', 'tblTempUsageDetail_20' ) end [2025-04-22 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968060', 'tblTempVendorCDR_20' ) start [2025-04-22 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968060', 'tblTempVendorCDR_20' ) end [2025-04-22 22:42:19] Production.INFO: ProcessCDR(1,14968060,1,1,2) [2025-04-22 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968060', 'tblTempUsageDetail_20' ) start [2025-04-22 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968060', 'tblTempUsageDetail_20' ) end [2025-04-22 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:42:22] Production.INFO: ==15328== Releasing lock... [2025-04-22 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:42:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-22 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:43:05 [end_date_ymd] => 2025-04-22 22:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:43:05' and `end` < '2025-04-22 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-04-22 22:43:18] Production.INFO: count ==1519 [2025-04-22 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:43:05 - End Time 2025-04-22 22:43:05 [2025-04-22 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968065', 'tblTempUsageDetail_20' ) start [2025-04-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968065', 'tblTempUsageDetail_20' ) end [2025-04-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968065', 'tblTempVendorCDR_20' ) start [2025-04-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968065', 'tblTempVendorCDR_20' ) end [2025-04-22 22:43:18] Production.INFO: ProcessCDR(1,14968065,1,1,2) [2025-04-22 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968065', 'tblTempUsageDetail_20' ) start [2025-04-22 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968065', 'tblTempUsageDetail_20' ) end [2025-04-22 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:43:22] Production.INFO: ==15446== Releasing lock... [2025-04-22 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:43:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-22 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:44:05 [end_date_ymd] => 2025-04-22 22:44:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:44:05' and `end` < '2025-04-22 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-04-22 22:44:18] Production.INFO: count ==1515 [2025-04-22 22:44:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:44:05 - End Time 2025-04-22 22:44:05 [2025-04-22 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968070', 'tblTempUsageDetail_20' ) start [2025-04-22 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968070', 'tblTempUsageDetail_20' ) end [2025-04-22 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968070', 'tblTempVendorCDR_20' ) start [2025-04-22 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968070', 'tblTempVendorCDR_20' ) end [2025-04-22 22:44:19] Production.INFO: ProcessCDR(1,14968070,1,1,2) [2025-04-22 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968070', 'tblTempUsageDetail_20' ) start [2025-04-22 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968070', 'tblTempUsageDetail_20' ) end [2025-04-22 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:44:22] Production.INFO: ==15520== Releasing lock... [2025-04-22 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:44:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-22 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:45:05 [end_date_ymd] => 2025-04-22 22:45:05 [RateCDR] => 1 ) [2025-04-22 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:45:05' and `end` < '2025-04-22 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:45:18] Production.INFO: count ==1511 [2025-04-22 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:45:05 - End Time 2025-04-22 22:45:05 [2025-04-22 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968075', 'tblTempUsageDetail_20' ) start [2025-04-22 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968075', 'tblTempUsageDetail_20' ) end [2025-04-22 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968075', 'tblTempVendorCDR_20' ) start [2025-04-22 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968075', 'tblTempVendorCDR_20' ) end [2025-04-22 22:45:19] Production.INFO: ProcessCDR(1,14968075,1,1,2) [2025-04-22 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968075', 'tblTempUsageDetail_20' ) start [2025-04-22 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968075', 'tblTempUsageDetail_20' ) end [2025-04-22 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:45:22] Production.INFO: ==15589== Releasing lock... [2025-04-22 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:45:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-22 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:46:06 [end_date_ymd] => 2025-04-22 22:46:06 [RateCDR] => 1 ) [2025-04-22 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:46:06' and `end` < '2025-04-22 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:46:19] Production.INFO: count ==1501 [2025-04-22 22:46:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:46:06 - End Time 2025-04-22 22:46:06 [2025-04-22 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968080', 'tblTempUsageDetail_20' ) start [2025-04-22 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968080', 'tblTempUsageDetail_20' ) end [2025-04-22 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968080', 'tblTempVendorCDR_20' ) start [2025-04-22 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968080', 'tblTempVendorCDR_20' ) end [2025-04-22 22:46:19] Production.INFO: ProcessCDR(1,14968080,1,1,2) [2025-04-22 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968080', 'tblTempUsageDetail_20' ) start [2025-04-22 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968080', 'tblTempUsageDetail_20' ) end [2025-04-22 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:46:23] Production.INFO: ==15662== Releasing lock... [2025-04-22 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:46:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-22 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:47:05 [end_date_ymd] => 2025-04-22 22:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:47:05' and `end` < '2025-04-22 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-04-22 22:47:17] Production.INFO: count ==1493 [2025-04-22 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:47:05 - End Time 2025-04-22 22:47:05 [2025-04-22 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968085', 'tblTempUsageDetail_20' ) start [2025-04-22 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968085', 'tblTempUsageDetail_20' ) end [2025-04-22 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968085', 'tblTempVendorCDR_20' ) start [2025-04-22 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968085', 'tblTempVendorCDR_20' ) end [2025-04-22 22:47:18] Production.INFO: ProcessCDR(1,14968085,1,1,2) [2025-04-22 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968085', 'tblTempUsageDetail_20' ) start [2025-04-22 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968085', 'tblTempUsageDetail_20' ) end [2025-04-22 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:47:21] Production.INFO: ==15739== Releasing lock... [2025-04-22 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:47:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-22 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:48:06 [end_date_ymd] => 2025-04-22 22:48:06 [RateCDR] => 1 ) [2025-04-22 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:48:06' and `end` < '2025-04-22 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:48:19] Production.INFO: count ==1501 [2025-04-22 22:48:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:48:06 - End Time 2025-04-22 22:48:06 [2025-04-22 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968090', 'tblTempUsageDetail_20' ) start [2025-04-22 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968090', 'tblTempUsageDetail_20' ) end [2025-04-22 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968090', 'tblTempVendorCDR_20' ) start [2025-04-22 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968090', 'tblTempVendorCDR_20' ) end [2025-04-22 22:48:19] Production.INFO: ProcessCDR(1,14968090,1,1,2) [2025-04-22 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968090', 'tblTempUsageDetail_20' ) start [2025-04-22 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968090', 'tblTempUsageDetail_20' ) end [2025-04-22 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:48:23] Production.INFO: ==15818== Releasing lock... [2025-04-22 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:48:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-22 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:49:05 [end_date_ymd] => 2025-04-22 22:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:49:05' and `end` < '2025-04-22 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-04-22 22:49:18] Production.INFO: count ==1495 [2025-04-22 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:49:05 - End Time 2025-04-22 22:49:05 [2025-04-22 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968095', 'tblTempUsageDetail_20' ) start [2025-04-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968095', 'tblTempUsageDetail_20' ) end [2025-04-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968095', 'tblTempVendorCDR_20' ) start [2025-04-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968095', 'tblTempVendorCDR_20' ) end [2025-04-22 22:49:18] Production.INFO: ProcessCDR(1,14968095,1,1,2) [2025-04-22 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968095', 'tblTempUsageDetail_20' ) start [2025-04-22 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968095', 'tblTempUsageDetail_20' ) end [2025-04-22 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:49:21] Production.INFO: ==15895== Releasing lock... [2025-04-22 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:49:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-22 22:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:50:07 [end_date_ymd] => 2025-04-22 22:50:07 [RateCDR] => 1 ) [2025-04-22 22:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:50:07' and `end` < '2025-04-22 22:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:50:19] Production.INFO: count ==1476 [2025-04-22 22:50:20] Production.ERROR: pbx CDR StartTime 2025-04-22 19:50:07 - End Time 2025-04-22 22:50:07 [2025-04-22 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968100', 'tblTempUsageDetail_20' ) start [2025-04-22 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968100', 'tblTempUsageDetail_20' ) end [2025-04-22 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968100', 'tblTempVendorCDR_20' ) start [2025-04-22 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968100', 'tblTempVendorCDR_20' ) end [2025-04-22 22:50:20] Production.INFO: ProcessCDR(1,14968100,1,1,2) [2025-04-22 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968100', 'tblTempUsageDetail_20' ) start [2025-04-22 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968100', 'tblTempUsageDetail_20' ) end [2025-04-22 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:50:23] Production.INFO: ==15975== Releasing lock... [2025-04-22 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:50:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-22 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:51:05 [end_date_ymd] => 2025-04-22 22:51:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:51:05' and `end` < '2025-04-22 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-04-22 22:51:18] Production.INFO: count ==1402 [2025-04-22 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:51:05 - End Time 2025-04-22 22:51:05 [2025-04-22 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968106', 'tblTempUsageDetail_20' ) start [2025-04-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968106', 'tblTempUsageDetail_20' ) end [2025-04-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968106', 'tblTempVendorCDR_20' ) start [2025-04-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968106', 'tblTempVendorCDR_20' ) end [2025-04-22 22:51:18] Production.INFO: ProcessCDR(1,14968106,1,1,2) [2025-04-22 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968106', 'tblTempUsageDetail_20' ) start [2025-04-22 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968106', 'tblTempUsageDetail_20' ) end [2025-04-22 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:51:22] Production.INFO: ==16055== Releasing lock... [2025-04-22 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:51:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-22 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:52:05 [end_date_ymd] => 2025-04-22 22:52:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:52:05' and `end` < '2025-04-22 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-04-22 22:52:18] Production.INFO: count ==1395 [2025-04-22 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:52:05 - End Time 2025-04-22 22:52:05 [2025-04-22 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968111', 'tblTempUsageDetail_20' ) start [2025-04-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968111', 'tblTempUsageDetail_20' ) end [2025-04-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968111', 'tblTempVendorCDR_20' ) start [2025-04-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968111', 'tblTempVendorCDR_20' ) end [2025-04-22 22:52:18] Production.INFO: ProcessCDR(1,14968111,1,1,2) [2025-04-22 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968111', 'tblTempUsageDetail_20' ) start [2025-04-22 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968111', 'tblTempUsageDetail_20' ) end [2025-04-22 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:52:22] Production.INFO: ==16130== Releasing lock... [2025-04-22 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:52:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-22 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:53:05 [end_date_ymd] => 2025-04-22 22:53:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:53:05' and `end` < '2025-04-22 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-04-22 22:53:18] Production.INFO: count ==1390 [2025-04-22 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:53:05 - End Time 2025-04-22 22:53:05 [2025-04-22 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968116', 'tblTempUsageDetail_20' ) start [2025-04-22 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968116', 'tblTempUsageDetail_20' ) end [2025-04-22 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968116', 'tblTempVendorCDR_20' ) start [2025-04-22 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968116', 'tblTempVendorCDR_20' ) end [2025-04-22 22:53:18] Production.INFO: ProcessCDR(1,14968116,1,1,2) [2025-04-22 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968116', 'tblTempUsageDetail_20' ) start [2025-04-22 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968116', 'tblTempUsageDetail_20' ) end [2025-04-22 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:53:22] Production.INFO: ==16203== Releasing lock... [2025-04-22 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:53:22] Production.INFO: 39 MB #Memory Used# [2025-04-22 22:54:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:54:07 [end_date_ymd] => 2025-04-22 22:54:07 [RateCDR] => 1 ) [2025-04-22 22:54:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:54:07' and `end` < '2025-04-22 22:54:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:54:19] Production.INFO: count ==1384 [2025-04-22 22:54:20] Production.ERROR: pbx CDR StartTime 2025-04-22 19:54:07 - End Time 2025-04-22 22:54:07 [2025-04-22 22:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968121', 'tblTempUsageDetail_20' ) start [2025-04-22 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968121', 'tblTempUsageDetail_20' ) end [2025-04-22 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968121', 'tblTempVendorCDR_20' ) start [2025-04-22 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968121', 'tblTempVendorCDR_20' ) end [2025-04-22 22:54:20] Production.INFO: ProcessCDR(1,14968121,1,1,2) [2025-04-22 22:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968121', 'tblTempUsageDetail_20' ) start [2025-04-22 22:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968121', 'tblTempUsageDetail_20' ) end [2025-04-22 22:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:54:24] Production.INFO: ==16276== Releasing lock... [2025-04-22 22:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:54:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-22 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:55:06 [end_date_ymd] => 2025-04-22 22:55:06 [RateCDR] => 1 ) [2025-04-22 22:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 19:55:06' and `end` < '2025-04-22 22:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 22:55:18] Production.INFO: count ==1379 [2025-04-22 22:55:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:55:06 - End Time 2025-04-22 22:55:06 [2025-04-22 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968126', 'tblTempUsageDetail_20' ) start [2025-04-22 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968126', 'tblTempUsageDetail_20' ) end [2025-04-22 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968126', 'tblTempVendorCDR_20' ) start [2025-04-22 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968126', 'tblTempVendorCDR_20' ) end [2025-04-22 22:55:19] Production.INFO: ProcessCDR(1,14968126,1,1,2) [2025-04-22 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968126', 'tblTempUsageDetail_20' ) start [2025-04-22 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968126', 'tblTempUsageDetail_20' ) end [2025-04-22 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:55:22] Production.INFO: ==16355== Releasing lock... [2025-04-22 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:55:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-22 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:56:05 [end_date_ymd] => 2025-04-22 22:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:56:05' and `end` < '2025-04-22 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-04-22 22:56:18] Production.INFO: count ==1374 [2025-04-22 22:56:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:56:05 - End Time 2025-04-22 22:56:05 [2025-04-22 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968131', 'tblTempUsageDetail_20' ) start [2025-04-22 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968131', 'tblTempUsageDetail_20' ) end [2025-04-22 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968131', 'tblTempVendorCDR_20' ) start [2025-04-22 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968131', 'tblTempVendorCDR_20' ) end [2025-04-22 22:56:18] Production.INFO: ProcessCDR(1,14968131,1,1,2) [2025-04-22 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968131', 'tblTempUsageDetail_20' ) start [2025-04-22 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968131', 'tblTempUsageDetail_20' ) end [2025-04-22 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:56:22] Production.INFO: ==16431== Releasing lock... [2025-04-22 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:56:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-22 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:57:05 [end_date_ymd] => 2025-04-22 22:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:57:05' and `end` < '2025-04-22 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-04-22 22:57:18] Production.INFO: count ==1374 [2025-04-22 22:57:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:57:05 - End Time 2025-04-22 22:57:05 [2025-04-22 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968136', 'tblTempUsageDetail_20' ) start [2025-04-22 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968136', 'tblTempUsageDetail_20' ) end [2025-04-22 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968136', 'tblTempVendorCDR_20' ) start [2025-04-22 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968136', 'tblTempVendorCDR_20' ) end [2025-04-22 22:57:19] Production.INFO: ProcessCDR(1,14968136,1,1,2) [2025-04-22 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968136', 'tblTempUsageDetail_20' ) start [2025-04-22 22:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968136', 'tblTempUsageDetail_20' ) end [2025-04-22 22:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:57:24] Production.INFO: ==16509== Releasing lock... [2025-04-22 22:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:57:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-22 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:58:05 [end_date_ymd] => 2025-04-22 22:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:58:05' and `end` < '2025-04-22 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-04-22 22:58:18] Production.INFO: count ==1354 [2025-04-22 22:58:19] Production.ERROR: pbx CDR StartTime 2025-04-22 19:58:05 - End Time 2025-04-22 22:58:05 [2025-04-22 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968141', 'tblTempUsageDetail_20' ) start [2025-04-22 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968141', 'tblTempUsageDetail_20' ) end [2025-04-22 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968141', 'tblTempVendorCDR_20' ) start [2025-04-22 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968141', 'tblTempVendorCDR_20' ) end [2025-04-22 22:58:19] Production.INFO: ProcessCDR(1,14968141,1,1,2) [2025-04-22 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968141', 'tblTempUsageDetail_20' ) start [2025-04-22 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968141', 'tblTempUsageDetail_20' ) end [2025-04-22 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:58:22] Production.INFO: ==16581== Releasing lock... [2025-04-22 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:58:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-22 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 19:59:05 [end_date_ymd] => 2025-04-22 22:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 19:59:05' and `end` < '2025-04-22 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-04-22 22:59:18] Production.INFO: count ==1337 [2025-04-22 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-22 19:59:05 - End Time 2025-04-22 22:59:05 [2025-04-22 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968146', 'tblTempUsageDetail_20' ) start [2025-04-22 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968146', 'tblTempUsageDetail_20' ) end [2025-04-22 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968146', 'tblTempVendorCDR_20' ) start [2025-04-22 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968146', 'tblTempVendorCDR_20' ) end [2025-04-22 22:59:18] Production.INFO: ProcessCDR(1,14968146,1,1,2) [2025-04-22 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968146', 'tblTempUsageDetail_20' ) start [2025-04-22 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968146', 'tblTempUsageDetail_20' ) end [2025-04-22 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 22:59:22] Production.INFO: ==16695== Releasing lock... [2025-04-22 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 22:59:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-22 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:00:05 [end_date_ymd] => 2025-04-22 23:00:05 [RateCDR] => 1 ) [2025-04-22 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:00:05' and `end` < '2025-04-22 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:00:18] Production.INFO: count ==1334 [2025-04-22 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:00:05 - End Time 2025-04-22 23:00:05 [2025-04-22 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968152', 'tblTempUsageDetail_20' ) start [2025-04-22 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968152', 'tblTempUsageDetail_20' ) end [2025-04-22 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968152', 'tblTempVendorCDR_20' ) start [2025-04-22 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968152', 'tblTempVendorCDR_20' ) end [2025-04-22 23:00:19] Production.INFO: ProcessCDR(1,14968152,1,1,2) [2025-04-22 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968152', 'tblTempUsageDetail_20' ) start [2025-04-22 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968152', 'tblTempUsageDetail_20' ) end [2025-04-22 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:00:23] Production.INFO: ==16768== Releasing lock... [2025-04-22 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:00:23] Production.INFO: 38 MB #Memory Used# [2025-04-22 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:01:05 [end_date_ymd] => 2025-04-22 23:01:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:01:05' and `end` < '2025-04-22 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-04-22 23:01:18] Production.INFO: count ==1272 [2025-04-22 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:01:05 - End Time 2025-04-22 23:01:05 [2025-04-22 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968157', 'tblTempUsageDetail_20' ) start [2025-04-22 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968157', 'tblTempUsageDetail_20' ) end [2025-04-22 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968157', 'tblTempVendorCDR_20' ) start [2025-04-22 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968157', 'tblTempVendorCDR_20' ) end [2025-04-22 23:01:19] Production.INFO: ProcessCDR(1,14968157,1,1,2) [2025-04-22 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968157', 'tblTempUsageDetail_20' ) start [2025-04-22 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968157', 'tblTempUsageDetail_20' ) end [2025-04-22 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:01:22] Production.INFO: ==16935== Releasing lock... [2025-04-22 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:01:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-22 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:02:05 [end_date_ymd] => 2025-04-22 23:02:05 [RateCDR] => 1 ) [2025-04-22 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:02:05' and `end` < '2025-04-22 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:02:18] Production.INFO: count ==1264 [2025-04-22 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:02:05 - End Time 2025-04-22 23:02:05 [2025-04-22 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968162', 'tblTempUsageDetail_20' ) start [2025-04-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968162', 'tblTempUsageDetail_20' ) end [2025-04-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968162', 'tblTempVendorCDR_20' ) start [2025-04-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968162', 'tblTempVendorCDR_20' ) end [2025-04-22 23:02:18] Production.INFO: ProcessCDR(1,14968162,1,1,2) [2025-04-22 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968162', 'tblTempUsageDetail_20' ) start [2025-04-22 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968162', 'tblTempUsageDetail_20' ) end [2025-04-22 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:02:22] Production.INFO: ==17010== Releasing lock... [2025-04-22 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:02:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:03:05 [end_date_ymd] => 2025-04-22 23:03:05 [RateCDR] => 1 ) [2025-04-22 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:03:05' and `end` < '2025-04-22 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:03:18] Production.INFO: count ==1264 [2025-04-22 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:03:05 - End Time 2025-04-22 23:03:05 [2025-04-22 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968167', 'tblTempUsageDetail_20' ) start [2025-04-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968167', 'tblTempUsageDetail_20' ) end [2025-04-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968167', 'tblTempVendorCDR_20' ) start [2025-04-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968167', 'tblTempVendorCDR_20' ) end [2025-04-22 23:03:18] Production.INFO: ProcessCDR(1,14968167,1,1,2) [2025-04-22 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968167', 'tblTempUsageDetail_20' ) start [2025-04-22 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968167', 'tblTempUsageDetail_20' ) end [2025-04-22 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:03:22] Production.INFO: ==17086== Releasing lock... [2025-04-22 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:03:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:04:05 [end_date_ymd] => 2025-04-22 23:04:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:04:05' and `end` < '2025-04-22 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-04-22 23:04:18] Production.INFO: count ==1258 [2025-04-22 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:04:05 - End Time 2025-04-22 23:04:05 [2025-04-22 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968172', 'tblTempUsageDetail_20' ) start [2025-04-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968172', 'tblTempUsageDetail_20' ) end [2025-04-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968172', 'tblTempVendorCDR_20' ) start [2025-04-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968172', 'tblTempVendorCDR_20' ) end [2025-04-22 23:04:18] Production.INFO: ProcessCDR(1,14968172,1,1,2) [2025-04-22 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968172', 'tblTempUsageDetail_20' ) start [2025-04-22 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968172', 'tblTempUsageDetail_20' ) end [2025-04-22 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:04:21] Production.INFO: ==17159== Releasing lock... [2025-04-22 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:04:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:05:05 [end_date_ymd] => 2025-04-22 23:05:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:05:05' and `end` < '2025-04-22 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-04-22 23:05:18] Production.INFO: count ==1255 [2025-04-22 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:05:05 - End Time 2025-04-22 23:05:05 [2025-04-22 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968177', 'tblTempUsageDetail_20' ) start [2025-04-22 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968177', 'tblTempUsageDetail_20' ) end [2025-04-22 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968177', 'tblTempVendorCDR_20' ) start [2025-04-22 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968177', 'tblTempVendorCDR_20' ) end [2025-04-22 23:05:18] Production.INFO: ProcessCDR(1,14968177,1,1,2) [2025-04-22 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968177', 'tblTempUsageDetail_20' ) start [2025-04-22 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968177', 'tblTempUsageDetail_20' ) end [2025-04-22 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:05:22] Production.INFO: ==17308== Releasing lock... [2025-04-22 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:05:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:06:06 [end_date_ymd] => 2025-04-22 23:06:06 [RateCDR] => 1 ) [2025-04-22 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:06:06' and `end` < '2025-04-22 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:06:18] Production.INFO: count ==1257 [2025-04-22 23:06:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:06:06 - End Time 2025-04-22 23:06:06 [2025-04-22 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968182', 'tblTempUsageDetail_20' ) start [2025-04-22 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968182', 'tblTempUsageDetail_20' ) end [2025-04-22 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968182', 'tblTempVendorCDR_20' ) start [2025-04-22 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968182', 'tblTempVendorCDR_20' ) end [2025-04-22 23:06:19] Production.INFO: ProcessCDR(1,14968182,1,1,2) [2025-04-22 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968182', 'tblTempUsageDetail_20' ) start [2025-04-22 23:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968182', 'tblTempUsageDetail_20' ) end [2025-04-22 23:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:06:24] Production.INFO: ==17381== Releasing lock... [2025-04-22 23:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:06:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:07:05 [end_date_ymd] => 2025-04-22 23:07:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:07:05' and `end` < '2025-04-22 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-04-22 23:07:18] Production.INFO: count ==1253 [2025-04-22 23:07:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:07:05 - End Time 2025-04-22 23:07:05 [2025-04-22 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968187', 'tblTempUsageDetail_20' ) start [2025-04-22 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968187', 'tblTempUsageDetail_20' ) end [2025-04-22 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968187', 'tblTempVendorCDR_20' ) start [2025-04-22 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968187', 'tblTempVendorCDR_20' ) end [2025-04-22 23:07:19] Production.INFO: ProcessCDR(1,14968187,1,1,2) [2025-04-22 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968187', 'tblTempUsageDetail_20' ) start [2025-04-22 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968187', 'tblTempUsageDetail_20' ) end [2025-04-22 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:07:22] Production.INFO: ==17457== Releasing lock... [2025-04-22 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:07:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:08:04 [end_date_ymd] => 2025-04-22 23:08:04 [RateCDR] => 1 ) [2025-04-22 23:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:08:04' and `end` < '2025-04-22 23:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:08:17] Production.INFO: count ==1246 [2025-04-22 23:08:17] Production.ERROR: pbx CDR StartTime 2025-04-22 20:08:04 - End Time 2025-04-22 23:08:04 [2025-04-22 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968192', 'tblTempUsageDetail_20' ) start [2025-04-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968192', 'tblTempUsageDetail_20' ) end [2025-04-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968192', 'tblTempVendorCDR_20' ) start [2025-04-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968192', 'tblTempVendorCDR_20' ) end [2025-04-22 23:08:17] Production.INFO: ProcessCDR(1,14968192,1,1,2) [2025-04-22 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968192', 'tblTempUsageDetail_20' ) start [2025-04-22 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968192', 'tblTempUsageDetail_20' ) end [2025-04-22 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:08:21] Production.INFO: ==17609== Releasing lock... [2025-04-22 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:08:21] Production.INFO: 38 MB #Memory Used# [2025-04-22 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:09:05 [end_date_ymd] => 2025-04-22 23:09:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:09:05' and `end` < '2025-04-22 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-04-22 23:09:18] Production.INFO: count ==1245 [2025-04-22 23:09:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:09:05 - End Time 2025-04-22 23:09:05 [2025-04-22 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968197', 'tblTempUsageDetail_20' ) start [2025-04-22 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968197', 'tblTempUsageDetail_20' ) end [2025-04-22 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968197', 'tblTempVendorCDR_20' ) start [2025-04-22 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968197', 'tblTempVendorCDR_20' ) end [2025-04-22 23:09:19] Production.INFO: ProcessCDR(1,14968197,1,1,2) [2025-04-22 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968197', 'tblTempUsageDetail_20' ) start [2025-04-22 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968197', 'tblTempUsageDetail_20' ) end [2025-04-22 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:09:22] Production.INFO: ==17686== Releasing lock... [2025-04-22 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:09:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-22 23:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:10:07 [end_date_ymd] => 2025-04-22 23:10:07 [RateCDR] => 1 ) [2025-04-22 23: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-04-22 20:10:07' and `end` < '2025-04-22 23: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-04-22 23:10:20] Production.INFO: count ==1241 [2025-04-22 23:10:20] Production.ERROR: pbx CDR StartTime 2025-04-22 20:10:07 - End Time 2025-04-22 23:10:07 [2025-04-22 23:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968203', 'tblTempUsageDetail_20' ) start [2025-04-22 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968203', 'tblTempUsageDetail_20' ) end [2025-04-22 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968203', 'tblTempVendorCDR_20' ) start [2025-04-22 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968203', 'tblTempVendorCDR_20' ) end [2025-04-22 23:10:20] Production.INFO: ProcessCDR(1,14968203,1,1,2) [2025-04-22 23:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968203', 'tblTempUsageDetail_20' ) start [2025-04-22 23:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968203', 'tblTempUsageDetail_20' ) end [2025-04-22 23:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:10:25] Production.INFO: ==17762== Releasing lock... [2025-04-22 23:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:10:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:11:05 [end_date_ymd] => 2025-04-22 23:11:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:11:05' and `end` < '2025-04-22 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-04-22 23:11:18] Production.INFO: count ==1243 [2025-04-22 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:11:05 - End Time 2025-04-22 23:11:05 [2025-04-22 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968208', 'tblTempUsageDetail_20' ) start [2025-04-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968208', 'tblTempUsageDetail_20' ) end [2025-04-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968208', 'tblTempVendorCDR_20' ) start [2025-04-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968208', 'tblTempVendorCDR_20' ) end [2025-04-22 23:11:18] Production.INFO: ProcessCDR(1,14968208,1,1,2) [2025-04-22 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968208', 'tblTempUsageDetail_20' ) start [2025-04-22 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968208', 'tblTempUsageDetail_20' ) end [2025-04-22 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:11:23] Production.INFO: ==17833== Releasing lock... [2025-04-22 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:11:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:12:06 [end_date_ymd] => 2025-04-22 23:12:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:12:06' and `end` < '2025-04-22 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-04-22 23:12:18] Production.INFO: count ==1237 [2025-04-22 23:12:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:12:06 - End Time 2025-04-22 23:12:06 [2025-04-22 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968213', 'tblTempUsageDetail_20' ) start [2025-04-22 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968213', 'tblTempUsageDetail_20' ) end [2025-04-22 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968213', 'tblTempVendorCDR_20' ) start [2025-04-22 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968213', 'tblTempVendorCDR_20' ) end [2025-04-22 23:12:19] Production.INFO: ProcessCDR(1,14968213,1,1,2) [2025-04-22 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968213', 'tblTempUsageDetail_20' ) start [2025-04-22 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968213', 'tblTempUsageDetail_20' ) end [2025-04-22 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:12:22] Production.INFO: ==17986== Releasing lock... [2025-04-22 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:12:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:13:05 [end_date_ymd] => 2025-04-22 23:13:05 [RateCDR] => 1 ) [2025-04-22 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:13:05' and `end` < '2025-04-22 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:13:18] Production.INFO: count ==1237 [2025-04-22 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:13:05 - End Time 2025-04-22 23:13:05 [2025-04-22 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968218', 'tblTempUsageDetail_20' ) start [2025-04-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968218', 'tblTempUsageDetail_20' ) end [2025-04-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968218', 'tblTempVendorCDR_20' ) start [2025-04-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968218', 'tblTempVendorCDR_20' ) end [2025-04-22 23:13:18] Production.INFO: ProcessCDR(1,14968218,1,1,2) [2025-04-22 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968218', 'tblTempUsageDetail_20' ) start [2025-04-22 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968218', 'tblTempUsageDetail_20' ) end [2025-04-22 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:13:21] Production.INFO: ==18056== Releasing lock... [2025-04-22 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:13:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:14:06 [end_date_ymd] => 2025-04-22 23:14:06 [RateCDR] => 1 ) [2025-04-22 23:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:14:06' and `end` < '2025-04-22 23:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:14:18] Production.INFO: count ==1230 [2025-04-22 23:14:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:14:06 - End Time 2025-04-22 23:14:06 [2025-04-22 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968223', 'tblTempUsageDetail_20' ) start [2025-04-22 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968223', 'tblTempUsageDetail_20' ) end [2025-04-22 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968223', 'tblTempVendorCDR_20' ) start [2025-04-22 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968223', 'tblTempVendorCDR_20' ) end [2025-04-22 23:14:19] Production.INFO: ProcessCDR(1,14968223,1,1,2) [2025-04-22 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968223', 'tblTempUsageDetail_20' ) start [2025-04-22 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968223', 'tblTempUsageDetail_20' ) end [2025-04-22 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:14:22] Production.INFO: ==18170== Releasing lock... [2025-04-22 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:14:22] Production.INFO: 38 MB #Memory Used# [2025-04-22 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:15:05 [end_date_ymd] => 2025-04-22 23:15:05 [RateCDR] => 1 ) [2025-04-22 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:15:05' and `end` < '2025-04-22 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:15:18] Production.INFO: count ==1231 [2025-04-22 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:15:05 - End Time 2025-04-22 23:15:05 [2025-04-22 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968228', 'tblTempUsageDetail_20' ) start [2025-04-22 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968228', 'tblTempUsageDetail_20' ) end [2025-04-22 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968228', 'tblTempVendorCDR_20' ) start [2025-04-22 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968228', 'tblTempVendorCDR_20' ) end [2025-04-22 23:15:18] Production.INFO: ProcessCDR(1,14968228,1,1,2) [2025-04-22 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968228', 'tblTempUsageDetail_20' ) start [2025-04-22 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968228', 'tblTempUsageDetail_20' ) end [2025-04-22 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:15:22] Production.INFO: ==18326== Releasing lock... [2025-04-22 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:15:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:16:06 [end_date_ymd] => 2025-04-22 23:16:06 [RateCDR] => 1 ) [2025-04-22 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:16:06' and `end` < '2025-04-22 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:16:18] Production.INFO: count ==1230 [2025-04-22 23:16:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:16:06 - End Time 2025-04-22 23:16:06 [2025-04-22 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968233', 'tblTempUsageDetail_20' ) start [2025-04-22 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968233', 'tblTempUsageDetail_20' ) end [2025-04-22 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968233', 'tblTempVendorCDR_20' ) start [2025-04-22 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968233', 'tblTempVendorCDR_20' ) end [2025-04-22 23:16:19] Production.INFO: ProcessCDR(1,14968233,1,1,2) [2025-04-22 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968233', 'tblTempUsageDetail_20' ) start [2025-04-22 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968233', 'tblTempUsageDetail_20' ) end [2025-04-22 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:16:22] Production.INFO: ==18397== Releasing lock... [2025-04-22 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:16:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:17:05 [end_date_ymd] => 2025-04-22 23:17:05 [RateCDR] => 1 ) [2025-04-22 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:17:05' and `end` < '2025-04-22 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:17:18] Production.INFO: count ==1235 [2025-04-22 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:17:05 - End Time 2025-04-22 23:17:05 [2025-04-22 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968238', 'tblTempUsageDetail_20' ) start [2025-04-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968238', 'tblTempUsageDetail_20' ) end [2025-04-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968238', 'tblTempVendorCDR_20' ) start [2025-04-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968238', 'tblTempVendorCDR_20' ) end [2025-04-22 23:17:18] Production.INFO: ProcessCDR(1,14968238,1,1,2) [2025-04-22 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968238', 'tblTempUsageDetail_20' ) start [2025-04-22 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968238', 'tblTempUsageDetail_20' ) end [2025-04-22 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:17:21] Production.INFO: ==18472== Releasing lock... [2025-04-22 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:17:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:18:05 [end_date_ymd] => 2025-04-22 23:18:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:18:05' and `end` < '2025-04-22 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-04-22 23:18:18] Production.INFO: count ==1236 [2025-04-22 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:18:05 - End Time 2025-04-22 23:18:05 [2025-04-22 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968243', 'tblTempUsageDetail_20' ) start [2025-04-22 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968243', 'tblTempUsageDetail_20' ) end [2025-04-22 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968243', 'tblTempVendorCDR_20' ) start [2025-04-22 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968243', 'tblTempVendorCDR_20' ) end [2025-04-22 23:18:18] Production.INFO: ProcessCDR(1,14968243,1,1,2) [2025-04-22 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968243', 'tblTempUsageDetail_20' ) start [2025-04-22 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968243', 'tblTempUsageDetail_20' ) end [2025-04-22 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:18:22] Production.INFO: ==18544== Releasing lock... [2025-04-22 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:18:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:19:04 [end_date_ymd] => 2025-04-22 23:19:04 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:19:04' and `end` < '2025-04-22 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-04-22 23:19:17] Production.INFO: count ==1225 [2025-04-22 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:19:04 - End Time 2025-04-22 23:19:04 [2025-04-22 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968248', 'tblTempUsageDetail_20' ) start [2025-04-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968248', 'tblTempUsageDetail_20' ) end [2025-04-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968248', 'tblTempVendorCDR_20' ) start [2025-04-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968248', 'tblTempVendorCDR_20' ) end [2025-04-22 23:19:18] Production.INFO: ProcessCDR(1,14968248,1,1,2) [2025-04-22 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968248', 'tblTempUsageDetail_20' ) start [2025-04-22 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968248', 'tblTempUsageDetail_20' ) end [2025-04-22 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:19:21] Production.INFO: ==18623== Releasing lock... [2025-04-22 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:19:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:20:06 [end_date_ymd] => 2025-04-22 23:20:06 [RateCDR] => 1 ) [2025-04-22 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:20:06' and `end` < '2025-04-22 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:20:19] Production.INFO: count ==1224 [2025-04-22 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:20:06 - End Time 2025-04-22 23:20:06 [2025-04-22 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968253', 'tblTempUsageDetail_20' ) start [2025-04-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968253', 'tblTempUsageDetail_20' ) end [2025-04-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968253', 'tblTempVendorCDR_20' ) start [2025-04-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968253', 'tblTempVendorCDR_20' ) end [2025-04-22 23:20:19] Production.INFO: ProcessCDR(1,14968253,1,1,2) [2025-04-22 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968253', 'tblTempUsageDetail_20' ) start [2025-04-22 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968253', 'tblTempUsageDetail_20' ) end [2025-04-22 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:20:22] Production.INFO: ==18699== Releasing lock... [2025-04-22 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:20:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:21:06 [end_date_ymd] => 2025-04-22 23:21:06 [RateCDR] => 1 ) [2025-04-22 23: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-04-22 20:21:06' and `end` < '2025-04-22 23: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-04-22 23:21:18] Production.INFO: count ==1222 [2025-04-22 23:21:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:21:06 - End Time 2025-04-22 23:21:06 [2025-04-22 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968259', 'tblTempUsageDetail_20' ) start [2025-04-22 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968259', 'tblTempUsageDetail_20' ) end [2025-04-22 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968259', 'tblTempVendorCDR_20' ) start [2025-04-22 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968259', 'tblTempVendorCDR_20' ) end [2025-04-22 23:21:19] Production.INFO: ProcessCDR(1,14968259,1,1,2) [2025-04-22 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968259', 'tblTempUsageDetail_20' ) start [2025-04-22 23:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968259', 'tblTempUsageDetail_20' ) end [2025-04-22 23:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:21:24] Production.INFO: ==18774== Releasing lock... [2025-04-22 23:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:21:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:22:05 [end_date_ymd] => 2025-04-22 23:22:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:22:05' and `end` < '2025-04-22 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-04-22 23:22:18] Production.INFO: count ==1219 [2025-04-22 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:22:05 - End Time 2025-04-22 23:22:05 [2025-04-22 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968264', 'tblTempUsageDetail_20' ) start [2025-04-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968264', 'tblTempUsageDetail_20' ) end [2025-04-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968264', 'tblTempVendorCDR_20' ) start [2025-04-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968264', 'tblTempVendorCDR_20' ) end [2025-04-22 23:22:18] Production.INFO: ProcessCDR(1,14968264,1,1,2) [2025-04-22 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968264', 'tblTempUsageDetail_20' ) start [2025-04-22 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968264', 'tblTempUsageDetail_20' ) end [2025-04-22 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:22:21] Production.INFO: ==18856== Releasing lock... [2025-04-22 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:22:21] Production.INFO: 38 MB #Memory Used# [2025-04-22 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:23:05 [end_date_ymd] => 2025-04-22 23:23:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:23:05' and `end` < '2025-04-22 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-04-22 23:23:18] Production.INFO: count ==1217 [2025-04-22 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:23:05 - End Time 2025-04-22 23:23:05 [2025-04-22 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968269', 'tblTempUsageDetail_20' ) start [2025-04-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968269', 'tblTempUsageDetail_20' ) end [2025-04-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968269', 'tblTempVendorCDR_20' ) start [2025-04-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968269', 'tblTempVendorCDR_20' ) end [2025-04-22 23:23:18] Production.INFO: ProcessCDR(1,14968269,1,1,2) [2025-04-22 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968269', 'tblTempUsageDetail_20' ) start [2025-04-22 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968269', 'tblTempUsageDetail_20' ) end [2025-04-22 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:23:22] Production.INFO: ==18927== Releasing lock... [2025-04-22 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:23:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:24:05 [end_date_ymd] => 2025-04-22 23:24:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:24:05' and `end` < '2025-04-22 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-04-22 23:24:18] Production.INFO: count ==1214 [2025-04-22 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:24:05 - End Time 2025-04-22 23:24:05 [2025-04-22 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968274', 'tblTempUsageDetail_20' ) start [2025-04-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968274', 'tblTempUsageDetail_20' ) end [2025-04-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968274', 'tblTempVendorCDR_20' ) start [2025-04-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968274', 'tblTempVendorCDR_20' ) end [2025-04-22 23:24:18] Production.INFO: ProcessCDR(1,14968274,1,1,2) [2025-04-22 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968274', 'tblTempUsageDetail_20' ) start [2025-04-22 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968274', 'tblTempUsageDetail_20' ) end [2025-04-22 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:24:22] Production.INFO: ==19003== Releasing lock... [2025-04-22 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:24:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:25:06 [end_date_ymd] => 2025-04-22 23:25:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:25:06' and `end` < '2025-04-22 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-04-22 23:25:18] Production.INFO: count ==1209 [2025-04-22 23:25:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:25:06 - End Time 2025-04-22 23:25:06 [2025-04-22 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968279', 'tblTempUsageDetail_20' ) start [2025-04-22 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968279', 'tblTempUsageDetail_20' ) end [2025-04-22 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968279', 'tblTempVendorCDR_20' ) start [2025-04-22 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968279', 'tblTempVendorCDR_20' ) end [2025-04-22 23:25:19] Production.INFO: ProcessCDR(1,14968279,1,1,2) [2025-04-22 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968279', 'tblTempUsageDetail_20' ) start [2025-04-22 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968279', 'tblTempUsageDetail_20' ) end [2025-04-22 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:25:22] Production.INFO: ==19073== Releasing lock... [2025-04-22 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:25:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:26:05 [end_date_ymd] => 2025-04-22 23:26:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:26:05' and `end` < '2025-04-22 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-04-22 23:26:18] Production.INFO: count ==1207 [2025-04-22 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:26:05 - End Time 2025-04-22 23:26:05 [2025-04-22 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968284', 'tblTempUsageDetail_20' ) start [2025-04-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968284', 'tblTempUsageDetail_20' ) end [2025-04-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968284', 'tblTempVendorCDR_20' ) start [2025-04-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968284', 'tblTempVendorCDR_20' ) end [2025-04-22 23:26:18] Production.INFO: ProcessCDR(1,14968284,1,1,2) [2025-04-22 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968284', 'tblTempUsageDetail_20' ) start [2025-04-22 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968284', 'tblTempUsageDetail_20' ) end [2025-04-22 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:26:21] Production.INFO: ==19148== Releasing lock... [2025-04-22 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:26:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:27:05 [end_date_ymd] => 2025-04-22 23:27:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:27:05' and `end` < '2025-04-22 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-04-22 23:27:18] Production.INFO: count ==1203 [2025-04-22 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:27:05 - End Time 2025-04-22 23:27:05 [2025-04-22 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968289', 'tblTempUsageDetail_20' ) start [2025-04-22 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968289', 'tblTempUsageDetail_20' ) end [2025-04-22 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968289', 'tblTempVendorCDR_20' ) start [2025-04-22 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968289', 'tblTempVendorCDR_20' ) end [2025-04-22 23:27:18] Production.INFO: ProcessCDR(1,14968289,1,1,2) [2025-04-22 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968289', 'tblTempUsageDetail_20' ) start [2025-04-22 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968289', 'tblTempUsageDetail_20' ) end [2025-04-22 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:27:22] Production.INFO: ==19219== Releasing lock... [2025-04-22 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:27:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:28:05 [end_date_ymd] => 2025-04-22 23:28:05 [RateCDR] => 1 ) [2025-04-22 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:28:05' and `end` < '2025-04-22 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:28:17] Production.INFO: count ==1205 [2025-04-22 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:28:05 - End Time 2025-04-22 23:28:05 [2025-04-22 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968294', 'tblTempUsageDetail_20' ) start [2025-04-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968294', 'tblTempUsageDetail_20' ) end [2025-04-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968294', 'tblTempVendorCDR_20' ) start [2025-04-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968294', 'tblTempVendorCDR_20' ) end [2025-04-22 23:28:18] Production.INFO: ProcessCDR(1,14968294,1,1,2) [2025-04-22 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968294', 'tblTempUsageDetail_20' ) start [2025-04-22 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968294', 'tblTempUsageDetail_20' ) end [2025-04-22 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:28:21] Production.INFO: ==19292== Releasing lock... [2025-04-22 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:28:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:29:06 [end_date_ymd] => 2025-04-22 23:29:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:29:06' and `end` < '2025-04-22 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-04-22 23:29:19] Production.INFO: count ==1206 [2025-04-22 23:29:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:29:06 - End Time 2025-04-22 23:29:06 [2025-04-22 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968299', 'tblTempUsageDetail_20' ) start [2025-04-22 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968299', 'tblTempUsageDetail_20' ) end [2025-04-22 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968299', 'tblTempVendorCDR_20' ) start [2025-04-22 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968299', 'tblTempVendorCDR_20' ) end [2025-04-22 23:29:19] Production.INFO: ProcessCDR(1,14968299,1,1,2) [2025-04-22 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968299', 'tblTempUsageDetail_20' ) start [2025-04-22 23:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968299', 'tblTempUsageDetail_20' ) end [2025-04-22 23:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:29:24] Production.INFO: ==19369== Releasing lock... [2025-04-22 23:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:29:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-22 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:30:05 [end_date_ymd] => 2025-04-22 23:30:05 [RateCDR] => 1 ) [2025-04-22 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:30:05' and `end` < '2025-04-22 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:30:18] Production.INFO: count ==1204 [2025-04-22 23:30:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:30:05 - End Time 2025-04-22 23:30:05 [2025-04-22 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968304', 'tblTempUsageDetail_20' ) start [2025-04-22 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968304', 'tblTempUsageDetail_20' ) end [2025-04-22 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968304', 'tblTempVendorCDR_20' ) start [2025-04-22 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968304', 'tblTempVendorCDR_20' ) end [2025-04-22 23:30:18] Production.INFO: ProcessCDR(1,14968304,1,1,2) [2025-04-22 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968304', 'tblTempUsageDetail_20' ) start [2025-04-22 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968304', 'tblTempUsageDetail_20' ) end [2025-04-22 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:30:22] Production.INFO: ==19482== Releasing lock... [2025-04-22 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:30:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-22 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:31:06 [end_date_ymd] => 2025-04-22 23:31:06 [RateCDR] => 1 ) [2025-04-22 23: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-04-22 20:31:06' and `end` < '2025-04-22 23: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-04-22 23:31:19] Production.INFO: count ==1188 [2025-04-22 23:31:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:31:06 - End Time 2025-04-22 23:31:06 [2025-04-22 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968310', 'tblTempUsageDetail_20' ) start [2025-04-22 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968310', 'tblTempUsageDetail_20' ) end [2025-04-22 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968310', 'tblTempVendorCDR_20' ) start [2025-04-22 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968310', 'tblTempVendorCDR_20' ) end [2025-04-22 23:31:19] Production.INFO: ProcessCDR(1,14968310,1,1,2) [2025-04-22 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968310', 'tblTempUsageDetail_20' ) start [2025-04-22 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968310', 'tblTempUsageDetail_20' ) end [2025-04-22 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:31:22] Production.INFO: ==19557== Releasing lock... [2025-04-22 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:31:22] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:32:06 [end_date_ymd] => 2025-04-22 23:32:06 [RateCDR] => 1 ) [2025-04-22 23: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-04-22 20:32:06' and `end` < '2025-04-22 23: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-04-22 23:32:18] Production.INFO: count ==1187 [2025-04-22 23:32:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:32:06 - End Time 2025-04-22 23:32:06 [2025-04-22 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968315', 'tblTempUsageDetail_20' ) start [2025-04-22 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968315', 'tblTempUsageDetail_20' ) end [2025-04-22 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968315', 'tblTempVendorCDR_20' ) start [2025-04-22 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968315', 'tblTempVendorCDR_20' ) end [2025-04-22 23:32:19] Production.INFO: ProcessCDR(1,14968315,1,1,2) [2025-04-22 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968315', 'tblTempUsageDetail_20' ) start [2025-04-22 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968315', 'tblTempUsageDetail_20' ) end [2025-04-22 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:32:22] Production.INFO: ==19626== Releasing lock... [2025-04-22 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:32:22] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:33:05 [end_date_ymd] => 2025-04-22 23:33:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:33:05' and `end` < '2025-04-22 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-04-22 23:33:18] Production.INFO: count ==1185 [2025-04-22 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:33:05 - End Time 2025-04-22 23:33:05 [2025-04-22 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968320', 'tblTempUsageDetail_20' ) start [2025-04-22 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968320', 'tblTempUsageDetail_20' ) end [2025-04-22 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968320', 'tblTempVendorCDR_20' ) start [2025-04-22 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968320', 'tblTempVendorCDR_20' ) end [2025-04-22 23:33:18] Production.INFO: ProcessCDR(1,14968320,1,1,2) [2025-04-22 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968320', 'tblTempUsageDetail_20' ) start [2025-04-22 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968320', 'tblTempUsageDetail_20' ) end [2025-04-22 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:33:22] Production.INFO: ==19704== Releasing lock... [2025-04-22 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:33:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:34:06 [end_date_ymd] => 2025-04-22 23:34:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:34:06' and `end` < '2025-04-22 23: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-04-22 23:34:19] Production.INFO: count ==1173 [2025-04-22 23:34:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:34:06 - End Time 2025-04-22 23:34:06 [2025-04-22 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968325', 'tblTempUsageDetail_20' ) start [2025-04-22 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968325', 'tblTempUsageDetail_20' ) end [2025-04-22 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968325', 'tblTempVendorCDR_20' ) start [2025-04-22 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968325', 'tblTempVendorCDR_20' ) end [2025-04-22 23:34:19] Production.INFO: ProcessCDR(1,14968325,1,1,2) [2025-04-22 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968325', 'tblTempUsageDetail_20' ) start [2025-04-22 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968325', 'tblTempUsageDetail_20' ) end [2025-04-22 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:34:22] Production.INFO: ==19783== Releasing lock... [2025-04-22 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:34:22] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:35:05 [end_date_ymd] => 2025-04-22 23:35:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:35:05' and `end` < '2025-04-22 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-04-22 23:35:18] Production.INFO: count ==1167 [2025-04-22 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:35:05 - End Time 2025-04-22 23:35:05 [2025-04-22 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968330', 'tblTempUsageDetail_20' ) start [2025-04-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968330', 'tblTempUsageDetail_20' ) end [2025-04-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968330', 'tblTempVendorCDR_20' ) start [2025-04-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968330', 'tblTempVendorCDR_20' ) end [2025-04-22 23:35:18] Production.INFO: ProcessCDR(1,14968330,1,1,2) [2025-04-22 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968330', 'tblTempUsageDetail_20' ) start [2025-04-22 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968330', 'tblTempUsageDetail_20' ) end [2025-04-22 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:35:22] Production.INFO: ==19856== Releasing lock... [2025-04-22 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:36:06 [end_date_ymd] => 2025-04-22 23:36:06 [RateCDR] => 1 ) [2025-04-22 23: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-04-22 20:36:06' and `end` < '2025-04-22 23: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-04-22 23:36:19] Production.INFO: count ==1168 [2025-04-22 23:36:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:36:06 - End Time 2025-04-22 23:36:06 [2025-04-22 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968335', 'tblTempUsageDetail_20' ) start [2025-04-22 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968335', 'tblTempUsageDetail_20' ) end [2025-04-22 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968335', 'tblTempVendorCDR_20' ) start [2025-04-22 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968335', 'tblTempVendorCDR_20' ) end [2025-04-22 23:36:19] Production.INFO: ProcessCDR(1,14968335,1,1,2) [2025-04-22 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968335', 'tblTempUsageDetail_20' ) start [2025-04-22 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968335', 'tblTempUsageDetail_20' ) end [2025-04-22 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:36:22] Production.INFO: ==19935== Releasing lock... [2025-04-22 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:36:22] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:37:05 [end_date_ymd] => 2025-04-22 23:37:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:37:05' and `end` < '2025-04-22 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-04-22 23:37:18] Production.INFO: count ==1168 [2025-04-22 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:37:05 - End Time 2025-04-22 23:37:05 [2025-04-22 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968340', 'tblTempUsageDetail_20' ) start [2025-04-22 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968340', 'tblTempUsageDetail_20' ) end [2025-04-22 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968340', 'tblTempVendorCDR_20' ) start [2025-04-22 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968340', 'tblTempVendorCDR_20' ) end [2025-04-22 23:37:19] Production.INFO: ProcessCDR(1,14968340,1,1,2) [2025-04-22 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968340', 'tblTempUsageDetail_20' ) start [2025-04-22 23:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968340', 'tblTempUsageDetail_20' ) end [2025-04-22 23:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:37:24] Production.INFO: ==20012== Releasing lock... [2025-04-22 23:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:37:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-22 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:38:05 [end_date_ymd] => 2025-04-22 23:38:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:38:05' and `end` < '2025-04-22 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-04-22 23:38:18] Production.INFO: count ==1170 [2025-04-22 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:38:05 - End Time 2025-04-22 23:38:05 [2025-04-22 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968345', 'tblTempUsageDetail_20' ) start [2025-04-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968345', 'tblTempUsageDetail_20' ) end [2025-04-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968345', 'tblTempVendorCDR_20' ) start [2025-04-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968345', 'tblTempVendorCDR_20' ) end [2025-04-22 23:38:18] Production.INFO: ProcessCDR(1,14968345,1,1,2) [2025-04-22 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968345', 'tblTempUsageDetail_20' ) start [2025-04-22 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968345', 'tblTempUsageDetail_20' ) end [2025-04-22 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:38:22] Production.INFO: ==20091== Releasing lock... [2025-04-22 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:38:22] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:39:05 [end_date_ymd] => 2025-04-22 23:39:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:39:05' and `end` < '2025-04-22 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-04-22 23:39:17] Production.INFO: count ==1170 [2025-04-22 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:39:05 - End Time 2025-04-22 23:39:05 [2025-04-22 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968350', 'tblTempUsageDetail_20' ) start [2025-04-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968350', 'tblTempUsageDetail_20' ) end [2025-04-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968350', 'tblTempVendorCDR_20' ) start [2025-04-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968350', 'tblTempVendorCDR_20' ) end [2025-04-22 23:39:18] Production.INFO: ProcessCDR(1,14968350,1,1,2) [2025-04-22 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968350', 'tblTempUsageDetail_20' ) start [2025-04-22 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968350', 'tblTempUsageDetail_20' ) end [2025-04-22 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:39:21] Production.INFO: ==20164== Releasing lock... [2025-04-22 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:39:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:40:06 [end_date_ymd] => 2025-04-22 23:40:06 [RateCDR] => 1 ) [2025-04-22 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:40:06' and `end` < '2025-04-22 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:40:19] Production.INFO: count ==1170 [2025-04-22 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:40:06 - End Time 2025-04-22 23:40:06 [2025-04-22 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968356', 'tblTempUsageDetail_20' ) start [2025-04-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968356', 'tblTempUsageDetail_20' ) end [2025-04-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968356', 'tblTempVendorCDR_20' ) start [2025-04-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968356', 'tblTempVendorCDR_20' ) end [2025-04-22 23:40:19] Production.INFO: ProcessCDR(1,14968356,1,1,2) [2025-04-22 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968356', 'tblTempUsageDetail_20' ) start [2025-04-22 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968356', 'tblTempUsageDetail_20' ) end [2025-04-22 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:40:23] Production.INFO: ==20240== Releasing lock... [2025-04-22 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:40:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:41:05 [end_date_ymd] => 2025-04-22 23:41:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:41:05' and `end` < '2025-04-22 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-04-22 23:41:18] Production.INFO: count ==1135 [2025-04-22 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:41:05 - End Time 2025-04-22 23:41:05 [2025-04-22 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968361', 'tblTempUsageDetail_20' ) start [2025-04-22 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968361', 'tblTempUsageDetail_20' ) end [2025-04-22 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968361', 'tblTempVendorCDR_20' ) start [2025-04-22 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968361', 'tblTempVendorCDR_20' ) end [2025-04-22 23:41:18] Production.INFO: ProcessCDR(1,14968361,1,1,2) [2025-04-22 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968361', 'tblTempUsageDetail_20' ) start [2025-04-22 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968361', 'tblTempUsageDetail_20' ) end [2025-04-22 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:41:21] Production.INFO: ==20311== Releasing lock... [2025-04-22 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:41:21] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:42:06 [end_date_ymd] => 2025-04-22 23:42:06 [RateCDR] => 1 ) [2025-04-22 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:42:06' and `end` < '2025-04-22 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:42:19] Production.INFO: count ==1123 [2025-04-22 23:42:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:42:06 - End Time 2025-04-22 23:42:06 [2025-04-22 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968366', 'tblTempUsageDetail_20' ) start [2025-04-22 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968366', 'tblTempUsageDetail_20' ) end [2025-04-22 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968366', 'tblTempVendorCDR_20' ) start [2025-04-22 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968366', 'tblTempVendorCDR_20' ) end [2025-04-22 23:42:19] Production.INFO: ProcessCDR(1,14968366,1,1,2) [2025-04-22 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968366', 'tblTempUsageDetail_20' ) start [2025-04-22 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968366', 'tblTempUsageDetail_20' ) end [2025-04-22 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:42:22] Production.INFO: ==20381== Releasing lock... [2025-04-22 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:43:05 [end_date_ymd] => 2025-04-22 23:43:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:43:05' and `end` < '2025-04-22 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-04-22 23:43:18] Production.INFO: count ==1115 [2025-04-22 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:43:05 - End Time 2025-04-22 23:43:05 [2025-04-22 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968371', 'tblTempUsageDetail_20' ) start [2025-04-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968371', 'tblTempUsageDetail_20' ) end [2025-04-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968371', 'tblTempVendorCDR_20' ) start [2025-04-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968371', 'tblTempVendorCDR_20' ) end [2025-04-22 23:43:18] Production.INFO: ProcessCDR(1,14968371,1,1,2) [2025-04-22 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968371', 'tblTempUsageDetail_20' ) start [2025-04-22 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968371', 'tblTempUsageDetail_20' ) end [2025-04-22 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:43:22] Production.INFO: ==20459== Releasing lock... [2025-04-22 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:43:22] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:44:05 [end_date_ymd] => 2025-04-22 23:44:05 [RateCDR] => 1 ) [2025-04-22 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:44:05' and `end` < '2025-04-22 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:44:18] Production.INFO: count ==1116 [2025-04-22 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:44:05 - End Time 2025-04-22 23:44:05 [2025-04-22 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968376', 'tblTempUsageDetail_20' ) start [2025-04-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968376', 'tblTempUsageDetail_20' ) end [2025-04-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968376', 'tblTempVendorCDR_20' ) start [2025-04-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968376', 'tblTempVendorCDR_20' ) end [2025-04-22 23:44:18] Production.INFO: ProcessCDR(1,14968376,1,1,2) [2025-04-22 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968376', 'tblTempUsageDetail_20' ) start [2025-04-22 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968376', 'tblTempUsageDetail_20' ) end [2025-04-22 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:44:22] Production.INFO: ==20531== Releasing lock... [2025-04-22 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:44:22] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:45:05 [end_date_ymd] => 2025-04-22 23:45:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:45:05' and `end` < '2025-04-22 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-04-22 23:45:18] Production.INFO: count ==1116 [2025-04-22 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:45:05 - End Time 2025-04-22 23:45:05 [2025-04-22 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968381', 'tblTempUsageDetail_20' ) start [2025-04-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968381', 'tblTempUsageDetail_20' ) end [2025-04-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968381', 'tblTempVendorCDR_20' ) start [2025-04-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968381', 'tblTempVendorCDR_20' ) end [2025-04-22 23:45:18] Production.INFO: ProcessCDR(1,14968381,1,1,2) [2025-04-22 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968381', 'tblTempUsageDetail_20' ) start [2025-04-22 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968381', 'tblTempUsageDetail_20' ) end [2025-04-22 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:45:21] Production.INFO: ==20641== Releasing lock... [2025-04-22 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:45:21] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:46:05 [end_date_ymd] => 2025-04-22 23:46:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:46:05' and `end` < '2025-04-22 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-04-22 23:46:18] Production.INFO: count ==1112 [2025-04-22 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:46:05 - End Time 2025-04-22 23:46:05 [2025-04-22 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968386', 'tblTempUsageDetail_20' ) start [2025-04-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968386', 'tblTempUsageDetail_20' ) end [2025-04-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968386', 'tblTempVendorCDR_20' ) start [2025-04-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968386', 'tblTempVendorCDR_20' ) end [2025-04-22 23:46:18] Production.INFO: ProcessCDR(1,14968386,1,1,2) [2025-04-22 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968386', 'tblTempUsageDetail_20' ) start [2025-04-22 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968386', 'tblTempUsageDetail_20' ) end [2025-04-22 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:46:21] Production.INFO: ==20716== Releasing lock... [2025-04-22 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:46:21] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:47:05 [end_date_ymd] => 2025-04-22 23:47:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:47:05' and `end` < '2025-04-22 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-04-22 23:47:17] Production.INFO: count ==1110 [2025-04-22 23:47:17] Production.ERROR: pbx CDR StartTime 2025-04-22 20:47:05 - End Time 2025-04-22 23:47:05 [2025-04-22 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968391', 'tblTempUsageDetail_20' ) start [2025-04-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968391', 'tblTempUsageDetail_20' ) end [2025-04-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968391', 'tblTempVendorCDR_20' ) start [2025-04-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968391', 'tblTempVendorCDR_20' ) end [2025-04-22 23:47:18] Production.INFO: ProcessCDR(1,14968391,1,1,2) [2025-04-22 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968391', 'tblTempUsageDetail_20' ) start [2025-04-22 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968391', 'tblTempUsageDetail_20' ) end [2025-04-22 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:47:21] Production.INFO: ==20788== Releasing lock... [2025-04-22 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:47:21] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:48:05 [end_date_ymd] => 2025-04-22 23:48:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:48:05' and `end` < '2025-04-22 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-04-22 23:48:18] Production.INFO: count ==1105 [2025-04-22 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:48:05 - End Time 2025-04-22 23:48:05 [2025-04-22 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968396', 'tblTempUsageDetail_20' ) start [2025-04-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968396', 'tblTempUsageDetail_20' ) end [2025-04-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968396', 'tblTempVendorCDR_20' ) start [2025-04-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968396', 'tblTempVendorCDR_20' ) end [2025-04-22 23:48:18] Production.INFO: ProcessCDR(1,14968396,1,1,2) [2025-04-22 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968396', 'tblTempUsageDetail_20' ) start [2025-04-22 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968396', 'tblTempUsageDetail_20' ) end [2025-04-22 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:48:21] Production.INFO: ==20867== Releasing lock... [2025-04-22 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:48:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-22 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:49:05 [end_date_ymd] => 2025-04-22 23:49:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:49:05' and `end` < '2025-04-22 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-04-22 23:49:18] Production.INFO: count ==1101 [2025-04-22 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:49:05 - End Time 2025-04-22 23:49:05 [2025-04-22 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968401', 'tblTempUsageDetail_20' ) start [2025-04-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968401', 'tblTempUsageDetail_20' ) end [2025-04-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968401', 'tblTempVendorCDR_20' ) start [2025-04-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968401', 'tblTempVendorCDR_20' ) end [2025-04-22 23:49:18] Production.INFO: ProcessCDR(1,14968401,1,1,2) [2025-04-22 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968401', 'tblTempUsageDetail_20' ) start [2025-04-22 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968401', 'tblTempUsageDetail_20' ) end [2025-04-22 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:49:21] Production.INFO: ==20948== Releasing lock... [2025-04-22 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:49:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-22 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:50:06 [end_date_ymd] => 2025-04-22 23:50:06 [RateCDR] => 1 ) [2025-04-22 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:50:06' and `end` < '2025-04-22 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:50:19] Production.INFO: count ==1086 [2025-04-22 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:50:06 - End Time 2025-04-22 23:50:06 [2025-04-22 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968407', 'tblTempUsageDetail_20' ) start [2025-04-22 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968407', 'tblTempUsageDetail_20' ) end [2025-04-22 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968407', 'tblTempVendorCDR_20' ) start [2025-04-22 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968407', 'tblTempVendorCDR_20' ) end [2025-04-22 23:50:19] Production.INFO: ProcessCDR(1,14968407,1,1,2) [2025-04-22 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968407', 'tblTempUsageDetail_20' ) start [2025-04-22 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968407', 'tblTempUsageDetail_20' ) end [2025-04-22 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:50:23] Production.INFO: ==21024== Releasing lock... [2025-04-22 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:50:23] Production.INFO: 37 MB #Memory Used# [2025-04-22 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:51:06 [end_date_ymd] => 2025-04-22 23:51:06 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:51:06' and `end` < '2025-04-22 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-04-22 23:51:19] Production.INFO: count ==1065 [2025-04-22 23:51:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:51:06 - End Time 2025-04-22 23:51:06 [2025-04-22 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968412', 'tblTempUsageDetail_20' ) start [2025-04-22 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968412', 'tblTempUsageDetail_20' ) end [2025-04-22 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968412', 'tblTempVendorCDR_20' ) start [2025-04-22 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968412', 'tblTempVendorCDR_20' ) end [2025-04-22 23:51:19] Production.INFO: ProcessCDR(1,14968412,1,1,2) [2025-04-22 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968412', 'tblTempUsageDetail_20' ) start [2025-04-22 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968412', 'tblTempUsageDetail_20' ) end [2025-04-22 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:51:22] Production.INFO: ==21100== Releasing lock... [2025-04-22 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:51:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-22 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:52:06 [end_date_ymd] => 2025-04-22 23:52:06 [RateCDR] => 1 ) [2025-04-22 23:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:52:06' and `end` < '2025-04-22 23:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:52:18] Production.INFO: count ==1061 [2025-04-22 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:52:06 - End Time 2025-04-22 23:52:06 [2025-04-22 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968417', 'tblTempUsageDetail_20' ) start [2025-04-22 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968417', 'tblTempUsageDetail_20' ) end [2025-04-22 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968417', 'tblTempVendorCDR_20' ) start [2025-04-22 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968417', 'tblTempVendorCDR_20' ) end [2025-04-22 23:52:18] Production.INFO: ProcessCDR(1,14968417,1,1,2) [2025-04-22 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968417', 'tblTempUsageDetail_20' ) start [2025-04-22 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968417', 'tblTempUsageDetail_20' ) end [2025-04-22 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:52:22] Production.INFO: ==21174== Releasing lock... [2025-04-22 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:52:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-22 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:53:04 [end_date_ymd] => 2025-04-22 23:53:04 [RateCDR] => 1 ) [2025-04-22 23: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-04-22 20:53:04' and `end` < '2025-04-22 23: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-04-22 23:53:17] Production.INFO: count ==1057 [2025-04-22 23:53:17] Production.ERROR: pbx CDR StartTime 2025-04-22 20:53:04 - End Time 2025-04-22 23:53:04 [2025-04-22 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968422', 'tblTempUsageDetail_20' ) start [2025-04-22 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968422', 'tblTempUsageDetail_20' ) end [2025-04-22 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968422', 'tblTempVendorCDR_20' ) start [2025-04-22 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968422', 'tblTempVendorCDR_20' ) end [2025-04-22 23:53:17] Production.INFO: ProcessCDR(1,14968422,1,1,2) [2025-04-22 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968422', 'tblTempUsageDetail_20' ) start [2025-04-22 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968422', 'tblTempUsageDetail_20' ) end [2025-04-22 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:53:21] Production.INFO: ==21245== Releasing lock... [2025-04-22 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:53:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-22 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:54:04 [end_date_ymd] => 2025-04-22 23:54:04 [RateCDR] => 1 ) [2025-04-22 23:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-22 20:54:04' and `end` < '2025-04-22 23:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-22 23:54:17] Production.INFO: count ==1052 [2025-04-22 23:54:17] Production.ERROR: pbx CDR StartTime 2025-04-22 20:54:04 - End Time 2025-04-22 23:54:04 [2025-04-22 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968427', 'tblTempUsageDetail_20' ) start [2025-04-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968427', 'tblTempUsageDetail_20' ) end [2025-04-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968427', 'tblTempVendorCDR_20' ) start [2025-04-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968427', 'tblTempVendorCDR_20' ) end [2025-04-22 23:54:17] Production.INFO: ProcessCDR(1,14968427,1,1,2) [2025-04-22 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968427', 'tblTempUsageDetail_20' ) start [2025-04-22 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968427', 'tblTempUsageDetail_20' ) end [2025-04-22 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:54:21] Production.INFO: ==21318== Releasing lock... [2025-04-22 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:54:21] Production.INFO: 36 MB #Memory Used# [2025-04-22 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:55:05 [end_date_ymd] => 2025-04-22 23:55:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:55:05' and `end` < '2025-04-22 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-04-22 23:55:18] Production.INFO: count ==1046 [2025-04-22 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:55:05 - End Time 2025-04-22 23:55:05 [2025-04-22 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968432', 'tblTempUsageDetail_20' ) start [2025-04-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968432', 'tblTempUsageDetail_20' ) end [2025-04-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968432', 'tblTempVendorCDR_20' ) start [2025-04-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968432', 'tblTempVendorCDR_20' ) end [2025-04-22 23:55:18] Production.INFO: ProcessCDR(1,14968432,1,1,2) [2025-04-22 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968432', 'tblTempUsageDetail_20' ) start [2025-04-22 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968432', 'tblTempUsageDetail_20' ) end [2025-04-22 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:55:21] Production.INFO: ==21391== Releasing lock... [2025-04-22 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:55:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-22 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:56:05 [end_date_ymd] => 2025-04-22 23:56:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:56:05' and `end` < '2025-04-22 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-04-22 23:56:18] Production.INFO: count ==1044 [2025-04-22 23:56:19] Production.ERROR: pbx CDR StartTime 2025-04-22 20:56:05 - End Time 2025-04-22 23:56:05 [2025-04-22 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968437', 'tblTempUsageDetail_20' ) start [2025-04-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968437', 'tblTempUsageDetail_20' ) end [2025-04-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968437', 'tblTempVendorCDR_20' ) start [2025-04-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968437', 'tblTempVendorCDR_20' ) end [2025-04-22 23:56:19] Production.INFO: ProcessCDR(1,14968437,1,1,2) [2025-04-22 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968437', 'tblTempUsageDetail_20' ) start [2025-04-22 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968437', 'tblTempUsageDetail_20' ) end [2025-04-22 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:56:22] Production.INFO: ==21460== Releasing lock... [2025-04-22 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:56:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-22 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:57:05 [end_date_ymd] => 2025-04-22 23:57:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:57:05' and `end` < '2025-04-22 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-04-22 23:57:18] Production.INFO: count ==1041 [2025-04-22 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:57:05 - End Time 2025-04-22 23:57:05 [2025-04-22 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968442', 'tblTempUsageDetail_20' ) start [2025-04-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968442', 'tblTempUsageDetail_20' ) end [2025-04-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968442', 'tblTempVendorCDR_20' ) start [2025-04-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968442', 'tblTempVendorCDR_20' ) end [2025-04-22 23:57:18] Production.INFO: ProcessCDR(1,14968442,1,1,2) [2025-04-22 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968442', 'tblTempUsageDetail_20' ) start [2025-04-22 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968442', 'tblTempUsageDetail_20' ) end [2025-04-22 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:57:23] Production.INFO: ==21531== Releasing lock... [2025-04-22 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:57:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-22 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:58:05 [end_date_ymd] => 2025-04-22 23:58:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:58:05' and `end` < '2025-04-22 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-04-22 23:58:18] Production.INFO: count ==1038 [2025-04-22 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:58:05 - End Time 2025-04-22 23:58:05 [2025-04-22 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968447', 'tblTempUsageDetail_20' ) start [2025-04-22 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968447', 'tblTempUsageDetail_20' ) end [2025-04-22 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968447', 'tblTempVendorCDR_20' ) start [2025-04-22 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968447', 'tblTempVendorCDR_20' ) end [2025-04-22 23:58:18] Production.INFO: ProcessCDR(1,14968447,1,1,2) [2025-04-22 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968447', 'tblTempUsageDetail_20' ) start [2025-04-22 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968447', 'tblTempUsageDetail_20' ) end [2025-04-22 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:58:21] Production.INFO: ==21606== Releasing lock... [2025-04-22 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:58:21] Production.INFO: 36 MB #Memory Used# [2025-04-22 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-22 20:59:05 [end_date_ymd] => 2025-04-22 23:59:05 [RateCDR] => 1 ) [2025-04-22 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-04-22 20:59:05' and `end` < '2025-04-22 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-04-22 23:59:18] Production.INFO: count ==1036 [2025-04-22 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-22 20:59:05 - End Time 2025-04-22 23:59:05 [2025-04-22 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-22 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968452', 'tblTempUsageDetail_20' ) start [2025-04-22 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14968452', 'tblTempUsageDetail_20' ) end [2025-04-22 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968452', 'tblTempVendorCDR_20' ) start [2025-04-22 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14968452', 'tblTempVendorCDR_20' ) end [2025-04-22 23:59:18] Production.INFO: ProcessCDR(1,14968452,1,1,2) [2025-04-22 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14968452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14968452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-22 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14968452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14968452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-22 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968452', 'tblTempUsageDetail_20' ) start [2025-04-22 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14968452', 'tblTempUsageDetail_20' ) end [2025-04-22 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-22 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-22 23:59:22] Production.INFO: ==21682== Releasing lock... [2025-04-22 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-22 23:59:22] Production.INFO: 36 MB #Memory Used#